function CourseList::set_has_been_assigned

7.x CourseList.php CourseList::set_has_been_assigned($bool_has_been_assigned = true)
6.x CourseList.php CourseList::set_has_been_assigned($bool_has_been_assigned = true)

Sets the bool_has_been_assigned property of every course in the list.

Parameters

bool $bool_has_been_assigned:

  • What to set each course's->boolhasBeenAssigned property to.

File

classes/CourseList.php, line 2442

Class

CourseList

Code

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

}