5.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.


classes/_Course.php, line 307




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);