_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 2480

Class

_CourseList

Code

function set_course_substitution(Course $course_s, $sub_remarks = "", $degree_id = 0) {
  for ($t = 0; $t < $this->count; $t++) {
    $course = $this->array_list[$t];
    $course->set_course_substitution($degree_id, $course_s);
    $course->req_by_degree_id = $course_s->req_by_degree_id; // match it up to the degree its being subbed for
    $course->sub_remarks = $sub_remarks;
  }

}