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;
109 $groups = self::getGroupsOfUser($a_user_id);
115 foreach($groups as $group)
120 $sorted_options =
array();
121 $sorted_options[0] = $lng->txt(
'cal_ch_grp_no_assignment');
124 $sorted_options[$key] = $opt;
126 return $sorted_options;
static lookupTitle($a_group_id)
Lookup group title.
Add rich text string
The name of the decorator.
static getGroupSelectOptions($a_user_id)
Get group selection options.
static getGroupsOfUser($a_user_id)
Get a all groups of an user.
if(!is_array($argv)) $options
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.