function _CourseList::set_has_been_assigned
Search API
4.x _CourseList.php | _CourseList::set_has_been_assigned($bool_has_been_assigned = true) |
5.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 2410
Class
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;
}
}