function CourseList::get_group_requirement_id_array

6.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 1481

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