function _CourseList::set_course_substitution
Search API
4.x _CourseList.php | _CourseList::set_course_substitution(Course $course_s, $sub_remarks = "") |
5.x _CourseList.php | _CourseList::set_course_substitution(Course $course_s, $sub_remarks = "", $degree_id = 0) |
Sets each course's $course_substitution value to the supplied Course object.
Parameters
Course $course_s:
string $sub_remarks:
File
- classes/
_CourseList.php, line 2484
Class
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;
}
}