function GroupList::contains_group_requirement_id

7.x GroupList.php GroupList::contains_group_requirement_id($group_requirement_id)
6.x GroupList.php GroupList::contains_group_requirement_id($group_requirement_id)

File

classes/GroupList.php, line 27

Class

GroupList

Code

function contains_group_requirement_id($group_requirement_id) 
 {
  // Returns true if any of the lists of courses in these groups
  // contain the group requirement ID.
  for ($t = 0; $t < count($this->array_list); $t++) 
   {
    $group = $this->array_list [$t];
    if ($group->list_courses->contains_group_requirement_id($group_requirement_id)) 
     {
      return true;
    }
  }

  return false;

}