function _GroupList::contains_group_requirement_id
Search API
4.x _GroupList.php | _GroupList::contains_group_requirement_id($group_requirement_id) |
5.x _GroupList.php | _GroupList::contains_group_requirement_id($group_requirement_id) |
File
- classes/
_GroupList.php, line 27
Class
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;
}