_CourseList::assign_group_id

4.x _CourseList.php _CourseList::assign_group_id($group_id)

Assign a groupID to every course in the list.

Parameters

int $group_id:

File

classes/_CourseList.php, line 1815

Class

_CourseList

Code

function assign_group_id($group_id) {
  for ($t = 0; $t < $this->count; $t++) {
    $course = $this->array_list[$t];
    $course->assigned_to_group_id = $group_id;
  }
}