4 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
23 function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
26 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
27 $this->lng->loadLanguageModule(
"book");
35 global
$tpl, $ilTabs, $ilNavigationHistory;
37 $next_class = $this->ctrl->getNextClass($this);
38 $cmd = $this->ctrl->getCmd();
40 if(!$next_class &&
$cmd ==
'render')
42 $this->ctrl->setCmdClass(
'ilBookingObjectGUI');
43 $next_class = $this->ctrl->getNextClass($this);
46 if(substr(
$cmd, 0, 4) ==
'book')
51 $ilNavigationHistory->addItem($this->ref_id,
52 "./goto.php?target=book_".$this->ref_id,
"book");
58 case 'ilpermissiongui':
59 $this->tabs_gui->setTabActive(
'perm_settings');
60 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
62 $ret =& $this->ctrl->forwardCommand($perm_gui);
65 case 'ilbookingobjectgui':
66 $this->tabs_gui->setTabActive(
'render');
67 include_once(
"Modules/BookingManager/classes/class.ilBookingObjectGUI.php");
69 $ret =& $this->ctrl->forwardCommand($object_gui);
72 case 'ilbookingschedulegui':
73 $this->tabs_gui->setTabActive(
'schedules');
74 include_once(
"Modules/BookingManager/classes/class.ilBookingScheduleGUI.php");
76 $ret =& $this->ctrl->forwardCommand($schedule_gui);
79 case 'ilpublicuserprofilegui':
80 $ilTabs->clearTargets();
81 include_once(
"Services/User/classes/class.ilPublicUserProfileGUI.php");
83 $profile->setBackUrl($this->ctrl->getLinkTarget($this,
'log'));
84 $ret = $this->ctrl->forwardCommand($profile);
85 $tpl->setContent(
$ret);
88 case 'ilinfoscreengui':
92 case "ilcommonactiondispatchergui":
93 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
95 $this->ctrl->forwardCommand($gui);
98 case "ilobjectcopygui":
99 include_once
"./Services/Object/classes/class.ilObjectCopyGUI.php";
101 $cp->setType(
"book");
102 $this->ctrl->forwardCommand($cp);
106 $cmd = $this->ctrl->getCmd();
119 unset($forms[self::CFORM_IMPORT]);
126 $a_new_object->setOffline(
true);
131 $this->ctrl->setParameter($this,
"ref_id", $a_new_object->
getRefId());
132 $this->ctrl->redirect($this,
"edit");
138 include_once
"Modules/BookingManager/classes/class.ilBookingSchedule.php";
158 include_once
"Modules/BookingManager/classes/class.ilBookingObject.php";
161 $type->setDisabled(
true);
165 $fixed->
setInfo($this->lng->txt(
"book_schedule_type_fixed_info"));
166 $type->addOption($fixed);
169 $none->
setInfo($this->lng->txt(
"book_schedule_type_none_info"));
170 $type->addOption($none);
173 $public->
setInfo($this->lng->txt(
"book_public_log_info"));
179 $a_values[
"online"] = !$this->
object->isOffline();
180 $a_values[
"public"] = $this->
object->hasPublicLog();
181 $a_values[
"stype"] = $this->
object->getScheduleType();
186 $this->
object->setOffline(!$a_form->
getInput(
'online'));
187 $this->
object->setPublicLog($a_form->
getInput(
'public'));
188 $this->
object->setScheduleType($a_form->
getInput(
'stype'));
196 global $ilAccess, $ilHelp;
198 if (in_array($this->ctrl->getCmd(), array(
"create",
"save")) && !$this->ctrl->getNextClass())
203 $ilHelp->setScreenIdComponent(
"book");
205 $this->tabs_gui->addTab(
"render",
206 $this->lng->txt(
"book_booking_types"),
207 $this->ctrl->getLinkTarget($this,
"render"));
209 $this->tabs_gui->addTab(
"info",
210 $this->lng->txt(
"info_short"),
211 $this->ctrl->getLinkTarget($this,
"infoscreen"));
213 $this->tabs_gui->addTab(
"log",
214 $this->lng->txt(
"book_log"),
215 $this->ctrl->getLinkTarget($this,
"log"));
217 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
221 $this->tabs_gui->addTab(
"schedules",
222 $this->lng->txt(
"book_schedules"),
223 $this->ctrl->getLinkTargetByClass(
"ilbookingschedulegui",
"render"));
226 $this->tabs_gui->addTab(
"settings",
227 $this->lng->txt(
"settings"),
228 $this->ctrl->getLinkTarget($this,
"edit"));
231 if($ilAccess->checkAccess(
'edit_permission',
'', $this->object->getRefId()))
233 $this->tabs_gui->addTab(
"perm_settings",
234 $this->lng->txt(
"perm_settings"),
235 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"));
246 $this->tabs_gui->clearTargets();
247 $this->tabs_gui->setBackTarget($this->lng->txt(
'book_back_to_list'), $this->ctrl->getLinkTarget($this,
'render'));
249 include_once
'Modules/BookingManager/classes/class.ilBookingObject.php';
252 $this->lng->loadLanguageModule(
"dateplaner");
253 $this->ctrl->setParameter($this,
'object_id', $obj->getId());
257 include_once
'Modules/BookingManager/classes/class.ilBookingSchedule.php';
260 $tpl->setContent($this->
renderSlots($schedule, array($obj->getId()), $obj->getTitle()));
264 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
266 $cgui->setHeaderText($this->lng->txt(
"book_confirm_booking_no_schedule"));
268 $cgui->setFormAction($this->ctrl->getFormAction($this));
269 $cgui->setCancel($this->lng->txt(
"cancel"),
"render");
270 $cgui->setConfirm($this->lng->txt(
"confirm"),
"confirmedBooking");
272 $cgui->addItem(
"object_id", $obj->getId(), $obj->getTitle());
274 $tpl->setContent($cgui->getHTML());
285 $mytpl =
new ilTemplate(
'tpl.booking_reservation_fix.html',
true,
true,
'Modules/BookingManager');
287 $mytpl->setVariable(
'FORM_ACTION', $this->ctrl->getFormAction($this));
288 $mytpl->setVariable(
'TXT_TITLE', $this->lng->txt(
'book_reservation_title'));
289 $mytpl->setVariable(
'TXT_INFO', $this->lng->txt(
'book_reservation_fix_info'));
290 $mytpl->setVariable(
'TXT_OBJECT', $title);
291 $mytpl->setVariable(
'TXT_CMD_BOOK', $this->lng->txt(
'book_confirm_booking'));
292 $mytpl->setVariable(
'TXT_CMD_CANCEL', $this->lng->txt(
'cancel'));
294 include_once
'Services/Calendar/classes/class.ilCalendarUserSettings.php';
298 $morning_aggr = $user_settings->getDayStart();
299 $evening_aggr = $user_settings->getDayEnd();
301 for($i = $morning_aggr;$i <= $evening_aggr;$i++)
303 switch($user_settings->getTimeFormat())
306 if ($morning_aggr > 0 && $i == $morning_aggr)
308 $hours[$i] = sprintf(
'%02d:00',0).
"-";
310 $hours[$i].= sprintf(
'%02d:00',$i);
311 if ($evening_aggr < 23 && $i == $evening_aggr)
313 $hours[$i].=
"-".sprintf(
'%02d:00',23);
318 if ($morning_aggr > 0 && $i == $morning_aggr)
320 $hours[$i] = date(
'h a',mktime(0,0,0,1,1,2000)).
"-";
322 $hours[$i].= date(
'h a',mktime($i,0,0,1,1,2000));
323 if ($evening_aggr < 23 && $i == $evening_aggr)
325 $hours[$i].=
"-".date(
'h a',mktime(23,0,0,1,1,2000));
331 if(isset(
$_GET[
'seed']))
333 $find_first_open =
false;
338 $find_first_open =
true;
342 include_once
'Services/Calendar/classes/class.ilCalendarUtil.php';
343 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
344 $week_start = $user_settings->getWeekStart();
346 if(!$find_first_open)
354 $has_open_slot = $this->
buildDatesBySchedule($week_start, $hours, $schedule, $object_ids, $seed, $dates);
360 $limit = clone($seed);
364 while(!$has_open_slot && $seed->get(
IL_CAL_UNIX) < $limit)
369 $has_open_slot = $this->
buildDatesBySchedule($week_start, $hours, $schedule, $object_ids, $seed, $dates);
374 include_once
'Services/Calendar/classes/class.ilCalendarHeaderNavigationGUI.php';
376 $mytpl->setVariable(
'NAVIGATION', $navigation->getHTML());
382 $mytpl->setCurrentBlock(
'weekdays');
385 $mytpl->parseCurrentBlock();
388 include_once
'Services/Calendar/classes/class.ilCalendarAppointmentColors.php';
389 include_once
'Services/Calendar/classes/class.ilCalendarUtil.php';
392 for($loop = 0; $loop < 7; $loop++)
396 $color[$loop+1] =
'border-bottom: 1px solid '.$col.
'; background-color: '.$col.
'; color: '.$fnt;
400 foreach($dates as $hour => $days)
403 $caption = array_shift($caption);
405 for($loop = 1; $loop < 8; $loop++)
407 if(!isset($days[$loop]))
409 $mytpl->setCurrentBlock(
'dates');
410 $mytpl->setVariable(
'DUMMY',
' ');
411 $mytpl->parseCurrentBlock();
415 if(isset($days[$loop][
'captions']))
417 foreach($days[$loop][
'captions'] as $slot_id => $slot_caption)
419 $mytpl->setCurrentBlock(
'choice');
420 $mytpl->setVariable(
'TXT_DATE', $slot_caption);
421 $mytpl->setVariable(
'VALUE_DATE', $slot_id);
422 $mytpl->setVariable(
'DATE_COLOR', $color[$loop]);
423 $mytpl->setVariable(
'TXT_AVAILABLE',
424 sprintf($this->lng->txt(
'book_reservation_available'),
425 $days[$loop][
'available'][$slot_id]));
426 $mytpl->parseCurrentBlock();
429 $mytpl->setCurrentBlock(
'dates');
430 $mytpl->setVariable(
'DUMMY',
'');
431 $mytpl->parseCurrentBlock();
433 else if(isset($days[$loop][
'in_slot']))
435 $mytpl->setCurrentBlock(
'dates');
436 $mytpl->setVariable(
'DATE_COLOR', $color[$loop]);
437 $mytpl->parseCurrentBlock();
441 $mytpl->setCurrentBlock(
'dates');
442 $mytpl->setVariable(
'DUMMY',
' ');
443 $mytpl->parseCurrentBlock();
448 $mytpl->setCurrentBlock(
'slots');
449 $mytpl->setVariable(
'TXT_HOUR', $caption);
452 $mytpl->setVariable(
'CSS_ROW',
'tblrow1');
456 $mytpl->setVariable(
'CSS_ROW',
'tblrow2');
458 $mytpl->parseCurrentBlock();
469 return $mytpl->get();
472 protected function buildDatesBySchedule($week_start, array $hours, $schedule, array $object_ids, $seed, array &$dates)
476 include_once
'Services/Calendar/classes/class.ilCalendarUserSettings.php';
479 $map = array(
'mo',
'tu',
'we',
'th',
'fr',
'sa',
'su');
480 $definition = $schedule->getDefinition();
482 $has_open_slot =
false;
488 if(isset($definition[$map[$date_info[
'isoday']-1]]))
491 foreach($definition[$map[$date_info[
'isoday']-1]] as $slot)
493 $slot = explode(
'-', $slot);
494 $slots[] = array(
'from'=>str_replace(
':',
'', $slot[0]),
495 'to'=>str_replace(
':',
'', $slot[1]));
499 $last = array_pop(array_keys($hours));
500 $slot_captions = array();
501 foreach($hours as $hour => $period)
503 $dates[$hour][0] = $period;
505 $period = explode(
"-", $period);
510 if(stristr($period[0],
"pm"))
512 $period[0] = (int)$period[0]+12;
516 $period[0] = (int)$period[0];
522 if(
sizeof($period) == 2)
524 if(stristr($period[1],
"pm"))
526 $period[1] = (int)$period[1]+12;
530 $period[1] = (int)$period[1];
539 if(
sizeof($period) == 1)
541 $period_from = (int)substr($period[0], 0, 2).
"00";
542 $period_to = (int)substr($period[0], 0, 2).
"59";
546 $period_from = (int)substr($period[0], 0, 2).
"00";
547 $period_to = (int)substr($period[1], 0, 2).
"59";
550 $column = $date_info[
'isoday'];
566 foreach($slots as $slot)
568 $slot_from = mktime(substr($slot[
'from'], 0, 2), substr($slot[
'from'], 2, 2), 0, $date_info[
"mon"], $date_info[
"mday"], $date_info[
"year"]);
569 $slot_to = mktime(substr($slot[
'to'], 0, 2), substr($slot[
'to'], 2, 2), 0, $date_info[
"mon"], $date_info[
"mday"], $date_info[
"year"]);
575 if($slot_from < (time()+$schedule->getDeadline()*60*60) || !array_sum($nr_available))
581 if((
int)$slot[
'from'] < $period_to && (int)$slot[
'to'] > $period_from)
584 $from = array_pop(explode(
' ', $from));
586 $to = array_pop(explode(
' ', $to));
589 $id = $slot_from.
'_'.$slot_to;
590 if(!in_array($id, $slot_captions))
592 $dates[$hour][$column][
'captions'][$id] = $from.
'-'.$to;
593 $dates[$hour][$column][
'available'][$id] = array_sum($nr_available);
594 $slot_captions[] = $id;
603 $has_open_slot =
true;
604 $dates[$hour][$column][
'in_slot'] =
$in;
610 return $has_open_slot;
618 include_once
'Modules/BookingManager/classes/class.ilBookingObject.php';
619 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
627 $object_id =
$_POST[
'object_id'];
639 $this->ctrl->redirect($this,
'render');
646 if(!isset(
$_POST[
'date']))
653 if(isset(
$_GET[
'object_id']))
657 $object_id = (int)
$_GET[
'object_id'];
662 if($nr[$object_id] > 1 ||
sizeof(
$_POST[
'date']) > 1)
666 foreach(
$_POST[
'date'] as $date)
668 $fromto = explode(
'_', $date);
672 $counter = $counter[$object_id];
677 $confirm[$object_id.
"_".$fromto[0].
"_".($fromto[1]+1)] = $counter;
681 $this->
processBooking($object_id, $fromto[0], $fromto[1], $group_id);
752 $this->ctrl->redirect($this,
'book');
761 include_once
'Modules/BookingManager/classes/class.ilBookingObject.php';
763 $pfile = $obj->getPostFile();
764 $ptext = $obj->getPostText();
765 if(trim($ptext) || $pfile)
767 $this->ctrl->setParameterByClass(
'ilbookingobjectgui',
'object_id', $obj->getId());
768 $this->ctrl->redirectByClass(
'ilbookingobjectgui',
'displayPostInfo');
772 $this->ctrl->redirect($this,
'render');
778 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
780 $form->setFormAction($this->ctrl->getFormAction($this,
"confirmedBooking"));
781 $form->setTitle($this->lng->txt(
"book_confirm_booking_schedule_number_of_objects"));
782 $form->setDescription($this->lng->txt(
"book_confirm_booking_schedule_number_of_objects_info"));
784 include_once
'Modules/BookingManager/classes/class.ilBookingObject.php';
786 foreach($a_objects_counter as $id => $counter)
788 $id = explode(
"_", $id);
789 $book_id = $id[0].
"_".$id[1].
"_".$id[2].
"_".$counter;
796 $section->setTitle($obj->getTitle());
808 $nr_field->setValue(1);
809 $nr_field->setSize(3);
810 $nr_field->setMaxValue($counter);
811 $nr_field->setMinValue(1);
812 $nr_field->setRequired(
true);
813 $form->addItem($nr_field);
819 $grp->setValue($a_group_id);
820 $form->addItem($grp);
823 $form->addCommandButton(
"confirmedBookingNumbers", $this->lng->txt(
"confirm"));
824 $form->addCommandButton(
"render", $this->lng->txt(
"cancel"));
833 $this->tabs_gui->clearTargets();
834 $this->tabs_gui->setBackTarget($this->lng->txt(
'book_back_to_list'), $this->ctrl->getLinkTarget($this,
'render'));
841 $tpl->setContent($a_form->getHTML());
848 foreach(array_keys(
$_POST) as $id)
850 if(substr($id, 0, 9) ==
"conf_nr__")
852 $id = explode(
"_", substr($id, 9));
853 $counter[$id[0].
"_".$id[1].
"_".$id[2]] = $id[3];
857 $group_id =
$_POST[
"grp_id"];
860 if($form->checkInput())
862 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
865 foreach($counter as $id => $all_nr)
867 $book_nr = $form->getInput(
"conf_nr__".$id.
"_".$all_nr);
868 $parts = explode(
"_", $id);
879 $book_nr = min($book_nr, $counter);
880 for($loop = 0; $loop < $book_nr; $loop++)
894 $this->ctrl->redirect($this,
'render');
899 $form->setValuesByPost();
912 function processBooking($a_object_id, $a_from = null, $a_to = null, $a_group_id = null)
917 if(!$ilAccess->checkAccess(
'read',
'', $this->object->getRefId()))
919 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
922 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
924 $reservation->setObjectId($a_object_id);
925 $reservation->setUserId($ilUser->getID());
926 $reservation->setFrom($a_from);
927 $reservation->setTo($a_to);
928 $reservation->setGroupId($a_group_id);
929 $reservation->save();
933 $this->lng->loadLanguageModule(
'dateplaner');
934 include_once
'Services/Calendar/classes/class.ilCalendarUtil.php';
935 include_once
'Services/Calendar/classes/class.ilCalendarCategory.php';
938 include_once
'Modules/BookingManager/classes/class.ilBookingObject.php';
941 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
945 $entry->setTitle($this->lng->txt(
'book_cal_entry').
' '.
$object->getTitle());
946 $entry->setContextId($reservation->getId());
949 include_once
'Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
960 global
$tpl, $ilAccess;
962 $this->tabs_gui->setTabActive(
'log');
964 $show_all = ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()) ||
965 $this->object->hasPublicLog());
968 if(
$_GET[
"object_id"])
970 $filter[
"object"] = (int)
$_GET[
"object_id"];
973 include_once
'Modules/BookingManager/classes/class.ilBookingReservationsTableGUI.php';
975 $this->object->getId(), $show_all,
978 $tpl->setContent($table->getHTML());
983 global
$tpl, $ilAccess;
985 $this->tabs_gui->clearTargets();
986 $this->tabs_gui->setBackTarget($this->lng->txt(
"back"),
987 $this->ctrl->getLinkTarget($this,
"log"));
989 $show_all = ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()) ||
990 $this->object->hasPublicLog());
993 if(
$_GET[
"object_id"])
995 $filter[
"object"] = (int)
$_GET[
"object_id"];
998 include_once
'Modules/BookingManager/classes/class.ilBookingReservationsTableGUI.php';
1000 $this->object->getId(), $show_all,
1002 $filter,
$_GET[
"reservation_id"]);
1003 $tpl->setContent($table->getHTML());
1013 $this->tabs_gui->setTabActive(
'log');
1015 if(!
$_POST[
'reservation_id'])
1021 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1023 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
1028 return $this->ctrl->redirect($this,
'log');
1038 $show_all = ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()) ||
1039 $this->object->hasPublicLog());
1041 include_once
'Modules/BookingManager/classes/class.ilBookingReservationsTableGUI.php';
1043 $this->object->getId(), $show_all,
1045 $table->resetOffset();
1046 $table->writeFilterToSession();
1057 $show_all = ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()) ||
1058 $this->object->hasPublicLog());
1060 include_once
'Modules/BookingManager/classes/class.ilBookingReservationsTableGUI.php';
1062 $this->object->getId(), $show_all,
1064 $table->resetOffset();
1065 $table->resetFilter();
1073 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1077 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1084 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
1094 $this->ctrl->setCmd(
"showSummary");
1095 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1103 $this->tabs_gui->setTabActive(
'info');
1105 if (!$ilAccess->checkAccess(
"visible",
"", $this->ref_id))
1107 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
1110 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1113 $info->enablePrivateNotes();
1115 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1117 $info->enableNews();
1121 $info->enableNewsEditing(
false);
1122 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1125 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1127 if ($enable_internal_rss)
1129 $info->setBlockProperty(
"news",
"settings",
true);
1130 $info->setBlockProperty(
"news",
"public_notifications_option",
true);
1135 if ($ilCtrl->getNextClass() ==
"ilinfoscreengui")
1137 $ilCtrl->forwardCommand($info);
1141 return $ilCtrl->getHTML($info);
1151 else if((
int)
$_GET[
"reservation_id"])
1153 return array((
int)$_GET[
"reservation_id"]);
1164 $this->ctrl->redirect($this,
'log');
1167 $this->tabs_gui->clearTargets();
1168 $this->tabs_gui->setBackTarget($lng->txt(
"back"),
1169 $ilCtrl->getLinkTarget($this,
"log"));
1171 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1173 $conf->setFormAction($ilCtrl->getFormAction($this,
'rsvCancel'));
1174 $conf->setHeaderText($lng->txt(
'book_confirm_cancel'));
1175 $conf->setConfirm($lng->txt(
'book_set_cancel'),
'rsvCancel');
1176 $conf->setCancel($lng->txt(
'cancel'),
'log');
1178 include_once
'Modules/BookingManager/classes/class.ilBookingObject.php';
1179 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
1180 foreach($ids as $id)
1188 $details .=
", ".ilDatePresentation::formatPeriod(
1193 $conf->addItem(
'rsv_id[]', $id, $details);
1196 $tpl->setContent($conf->getHTML());
1206 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
1207 foreach($ids as $id)
1211 if (!$ilAccess->checkAccess(
"write",
"", $this->ref_id) && $obj->getUserId() != $ilUser->getId())
1214 $this->ctrl->redirect($this,
'log');
1223 $cal_entry_id = $obj->getCalendarEntry();
1226 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
1270 if(!$ilAccess->checkAccess(
"write",
"", $this->ref_id))
1273 $this->ctrl->redirect($this,
'log');
1279 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
1280 foreach($ids as $id)
1296 if(!$ilAccess->checkAccess(
"write",
"", $this->ref_id))
1299 $this->ctrl->redirect($this,
'log');
1305 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
1306 foreach($ids as $id)
1309 $obj->setStatus(NULL);
1322 $this->tabs_gui->clearTargets();
1324 $user_id = (int)
$_GET[
'user_id'];
1326 include_once
'Services/User/classes/class.ilPublicUserProfileGUI.php';
1328 $profile->setBackUrl($this->ctrl->getLinkTarget($this,
'log'));
1329 $tpl->setContent($ilCtrl->getHTML($profile));
1336 if (is_object($this->
object))
1338 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this,
"render"),
"",
$_GET[
"ref_id"]);