_CourseList::set_course_substitution

5.x _CourseList.php _CourseList::set_course_substitution(Course $course_s, $sub_remarks = "", $degree_id = 0)
4.x _CourseList.php _CourseList::set_course_substitution(Course $course_s, $sub_remarks = "")

Sets each course's $course_substitution value to the supplied Course object.

Parameters

Course $course_s:

string $sub_remarks:

File

classes/_CourseList.php, line 1886

Class

_CourseList

Code

function set_course_substitution(Course $course_s, $sub_remarks = "") {
  for ($t = 0; $t < $this->count; $t++) {
    $course = $this->array_list[$t];
    $course->course_substitution = $course_s;
    $course->sub_remarks = $sub_remarks;
  }

}