function _CourseList::assign_group_id

4.x _CourseList.php _CourseList::assign_group_id($group_id)
5.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 2376

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;
    $course->assigned_to_group_ids_array [$group_id] = $group_id;
  }
}