22 $query =
'SELECT grp_id FROM cal_ch_group '.
23 'WHERE usr_id = '.$ilDB->quote($a_user_id,
'integer');
28 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
44 $query =
'SELECT COUNT(grp_id) num FROM cal_ch_group '.
45 'WHERE usr_id = '.$ilDB->quote($a_user_id,
'integer').
' '.
50 return (
int)
$row->num;
70 $query =
'SELECT title from cal_ch_group '.
71 'WHERE grp_id = '.$ilDB->quote($a_group_id,
'integer');
90 $query =
'SELECT multiple_assignments from cal_ch_group '.
91 'WHERE grp_id = '.$ilDB->quote($a_group_id,
'integer');
95 return $row->multiple_assignments;
115 foreach($groups as $group)
117 $options[(string) $group->getGroupId()] = $group->getTitle();
120 $sorted_options = array();
121 $sorted_options[0] = $lng->txt(
'cal_ch_grp_no_assignment');
124 $sorted_options[$key] = $opt;
126 return $sorted_options;