25 include_once
'./Services/Language/classes/class.ilLanguageFactory.php';
27 $cal_lang->loadLanguageModule(
'dateplaner');
29 include_once
'./Services/Calendar/classes/class.ilCalendarUtil.php';
30 include_once
'./Services/Calendar/classes/class.ilCalendarCategory.php';
34 $cal_lang->txt(
'cal_ch_personal_ch'),
39 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
41 $personal_app = clone $app;
42 $personal_app->save();
45 include_once
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
50 include_once
'./Services/Booking/classes/class.ilBookingEntry.php';
52 $booking->
book($app->getEntryId(),$a_usr_id);
62 public static function cancelBooking($a_usr_id,$a_app_id, $a_send_notification =
true)
65 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
68 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourAppointments.php';
76 foreach($user_apps as $uapp_id)
81 include_once
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
90 if($a_send_notification)
96 $booking->deleteBooking($a_app_id, $a_usr_id);
109 $query =
'SELECT user_id FROM cal_ch_settings '.
110 'WHERE admin_id = '.$ilDB->quote($a_usr_id,
'integer');
116 $users[] =
$row->user_id;