function GroupList::find_match_with_degree_id
Search API
7.x GroupList.php | GroupList::find_match_with_degree_id($group, $degree_id) |
6.x GroupList.php | GroupList::find_match_with_degree_id($group, $degree_id) |
Return back the matching group object, if it's degree_id matches. Otherwise, FALSE
File
- classes/
GroupList.php, line 78
Class
Code
function find_match_with_degree_id($group, $degree_id) {
for ($t = 0; $t < $this->count; $t++)
{
$g = $this->array_list [$t];
if ($g->group_id == $group->group_id && $g->req_by_degree_id == $degree_id) {
return $g;
}
}
return FALSE;
}