24 $query =
'SELECT grp_id FROM cal_ch_group ' .
25 'WHERE usr_id = ' .
$ilDB->quote($a_user_id,
'integer');
29 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
47 $query =
'SELECT COUNT(grp_id) num FROM cal_ch_group ' .
48 'WHERE usr_id = ' .
$ilDB->quote($a_user_id,
'integer') .
' ' .
53 return (
int) $row->num;
77 $query =
'SELECT title from cal_ch_group ' .
78 'WHERE grp_id = ' .
$ilDB->quote($a_group_id,
'integer');
98 $query =
'SELECT multiple_assignments from cal_ch_group ' .
99 'WHERE grp_id = ' .
$ilDB->quote($a_group_id,
'integer');
102 return $row->multiple_assignments;
118 $groups = self::getGroupsOfUser($a_user_id);
119 if (!count($groups)) {
123 foreach ($groups as $group) {
124 $options[(string) $group->getGroupId()] = $group->getTitle();
126 asort($options, SORT_STRING);
127 $sorted_options = array();
128 $sorted_options[0] =
$lng->txt(
'cal_ch_grp_no_assignment');
129 foreach ($options as $key => $opt) {
130 $sorted_options[$key] = $opt;
132 return $sorted_options;
static lookupTitle($a_group_id)
Lookup group title.
static getGroupSelectOptions($a_user_id)
Get group selection options.
static getGroupsOfUser($a_user_id)
Get a all groups of an user.
foreach($_POST as $key=> $value) $res
static lookupAssignedAppointments()
Lookup number of assigned appointments.
static lookupMaxBookings($a_group_id)
Lookup max number of bookings for group type $ilDB.
static getCountGroupsOfUser($a_user_id)
Get number of consultation hour groups type $ilDB.