22 $query =
'SELECT grp_id FROM cal_ch_group ' .
23 'WHERE usr_id = ' . $ilDB->quote($a_user_id,
'integer');
27 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
43 $query =
'SELECT COUNT(grp_id) num FROM cal_ch_group ' .
44 'WHERE usr_id = ' . $ilDB->quote($a_user_id,
'integer') .
' ' .
49 return (
int)
$row->num;
69 $query =
'SELECT title from cal_ch_group ' .
70 'WHERE grp_id = ' . $ilDB->quote($a_group_id,
'integer');
88 $query =
'SELECT multiple_assignments from cal_ch_group ' .
89 'WHERE grp_id = ' . $ilDB->quote($a_group_id,
'integer');
92 return $row->multiple_assignments;
106 $groups = self::getGroupsOfUser($a_user_id);
107 if (!count($groups)) {
111 foreach ($groups as $group) {
115 $sorted_options =
array();
116 $sorted_options[0] = $lng->txt(
'cal_ch_grp_no_assignment');
118 $sorted_options[
$key] = $opt;
120 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.
Create styles array
The data for the language used.
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.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options