function CourseList::assign_group_id

7.x CourseList.php CourseList::assign_group_id($group_id)
6.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 2408

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;
  }
}