_GroupList::get_group_course_id_array

5.x _GroupList.php _GroupList::get_group_course_id_array()

Return an array of course_id's for all the groups in this list. will look like: $rtn[group_id][course_id] = TRUE

File

classes/_GroupList.php, line 95

Class

_GroupList

Code

function get_group_course_id_array() {
  $rtn = array();
  $this->reset_counter();

  for ($t = 0; $t < $this->count; $t++) {
    $g = $this->array_list[$t];

    $rtn[$g->group_id] = $g->get_course_id_array();
  }


  return $rtn;

}