function Course::set_course_substitution

7.x Course.php Course::set_course_substitution($degree_id = 0, Course $course)
6.x Course.php Course::set_course_substitution($degree_id = 0, Course $course)
1 call to Course::set_course_substitution()
Course::load_course_from_data_string in classes/Course.php
This will take a data string, as created by the function to_data_string(), and make $this object match the original object. It is a poor man's unserialize. See to_data_string()'s description for a fuller picture of what is going on.

File

classes/Course.php, line 297

Class

Course

Code

function set_course_substitution($degree_id = 0, Course $course) {
  // If degree_id is zero, then use the course's currently req_by_degree_id.    
  if ($degree_id == 0) {
    $degree_id = $this->req_by_degree_id;
  }

  //$this->course_substitution_by_degree_array[$degree_id] = $course;
  $this->set_details_by_degree($degree_id, "course_substitution", $course);

}