_CourseList::set_bool_substitution

5.x _CourseList.php _CourseList::set_bool_substitution($degree_id = 0, $bool_s = true)
4.x _CourseList.php _CourseList::set_bool_substitution($bool_s = true)

Set's each course's bool_substitution value.

Parameters

bool $bool_s:

  • What to set each course's bool_substitution value to.

File

classes/_CourseList.php, line 2425

Class

_CourseList

Code

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

}