function _CourseList::set_req_by_degree_id

5.x _CourseList.php _CourseList::set_req_by_degree_id($degree_id = 0)

Set all the courses in this list to have the same "req_by_degree_id" value.

File

classes/_CourseList.php, line 2445

Class

_CourseList

Code

function set_req_by_degree_id($degree_id = 0) 
 {
  // Set the bool_substitution for all items
  // in this list.
  for ($t = 0; $t < $this->count; $t++) 
   {
    $course = $this->array_list [$t];
    $course->req_by_degree_id = $degree_id;
  }

}