function _CourseList::get_group_requirement_id_array

4.x _CourseList.php _CourseList::get_group_requirement_id_array()
5.x _CourseList.php _CourseList::get_group_requirement_id_array()

Returns an array of db_group_requirement_id's from the courses in this list.

Return value

array

File

classes/_CourseList.php, line 1462

Class

_CourseList

Code

function get_group_requirement_id_array() 
 {
  // Return an array of db_group_requirement_id's
  // from the courses in this list, indexed by the
  // id's.

  $rtn_array = array();
  for ($t = 0; $t < $this->count; $t++) 
   {
    $course = $this->array_list [$t];
    $rtn_array [$course->db_group_requirement_id] = true;
  }

  return $rtn_array;
}