ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjBookingPoolGUI Class Reference

ilObjBookingPoolGUI: ilPermissionGUI, ilBookingObjectGUI ilObjBookingPoolGUI: ilBookingScheduleGUI, ilInfoScreenGUI, ilPublicUserProfileGUI ilObjBookingPoolGUI: ilCommonActionDispatcherGUI, ilObjectCopyGUI, ilObjectMetaDataGUI ilObjBookingPoolGUI: ilBookingParticipantGUI, ilBookingReservationsGUI, ilBookingPreferencesGUI ilObjBookingPoolGUI: ILIAS ilObjBookingPoolGUI: ilRepositoryGUI, ilAdministrationGUI More...

+ Inheritance diagram for ilObjBookingPoolGUI:
+ Collaboration diagram for ilObjBookingPoolGUI:

Public Member Functions

 editObject ()
 
 showNoScheduleMessage ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 infoScreenObject ()
 this one is called from the info button in the repository More...
 
 infoScreen ()
 
 showProfileObject ()
 
 saveNotificationObject ()
 
- Public Member Functions inherited from ilObjectGUI
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static _goto (string $a_target)
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Protected Member Functions

 afterSave (ilObject $new_object)
 
 afterUpdate ()
 
 initEditCustomForm (ilPropertyFormGUI $form)
 
 addLocatorItems ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

InternalGUIService $gui
 
InternalDomainService $domain
 
ILIAS Cron Job JobManager $cron_manager
 
StandardGUIRequest $book_request
 
InternalService $service
 
ilTabsGUI $tabs
 
ilNavigationHistory $nav_history
 
ilBookingHelpAdapter $help
 
int $user_id_to_book
 
int $user_id_assigner
 
string $seed
 
string $sseed
 
int $profile_user_id
 
int $book_obj_id
 
string $reservation_id
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Detailed Description

Member Function Documentation

◆ _goto()

static ilObjBookingPoolGUI::_goto ( string  $a_target)
static

Definition at line 521 of file class.ilObjBookingPoolGUI.php.

References $DIC, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryNode(), ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ROOT_FOLDER_ID, and ilLanguage\txt().

521  : void
522  {
523  global $DIC;
524  $main_tpl = $DIC->ui()->mainTemplate();
525 
526  $ilAccess = $DIC->access();
527  $lng = $DIC->language();
528 
529  if ($ilAccess->checkAccess("read", "", $a_target)) {
530  ilObjectGUI::_gotoRepositoryNode($a_target, "render");
531  } elseif ($ilAccess->checkAccess("visible", "", $a_target)) {
532  ilObjectGUI::_gotoRepositoryNode($a_target, "infoScreen");
533  } elseif ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
534  $main_tpl->setOnScreenMessage('failure', sprintf(
535  $lng->txt("msg_no_perm_read_item"),
537  ), true);
539  }
540  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
const ROOT_FOLDER_ID
Definition: constants.php:32
static _gotoRepositoryNode(int $ref_id, string $cmd="")
static _lookupObjId(int $ref_id)
ilLanguage $lng
static _lookupTitle(int $obj_id)
global $DIC
Definition: shib_login.php:22
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
+ Here is the call graph for this function:

◆ addExternalEditFormCustom()

◆ addLocatorItems()

ilObjBookingPoolGUI::addLocatorItems ( )
protected

Definition at line 602 of file class.ilObjBookingPoolGUI.php.

References ilObjectGUI\$locator, ILIAS\Repository\ctrl(), and ILIAS\Repository\object().

602  : void
603  {
604  $ilLocator = $this->locator;
605 
606  if (is_object($this->object)) {
607  $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, "render"), "", $this->object->getRefId());
608  }
609  }
ilLocatorGUI $locator
+ Here is the call graph for this function:

◆ afterSave()

ilObjBookingPoolGUI::afterSave ( ilObject  $new_object)
protected

Definition at line 256 of file class.ilObjBookingPoolGUI.php.

References ILIAS\Repository\ctrl(), ilObject\getRefId(), ILIAS\Repository\lng(), and ilObject\update().

256  : void
257  {
258  $new_object->update();
259 
260  // always send a message
261  $this->tpl->setOnScreenMessage('success', $this->lng->txt("book_pool_added"), true);
262  $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
263  $this->ctrl->redirect($this, "edit");
264  }
+ Here is the call graph for this function:

◆ afterUpdate()

ilObjBookingPoolGUI::afterUpdate ( )
protected

Definition at line 266 of file class.ilObjBookingPoolGUI.php.

References ILIAS\Repository\ctrl(), ilObjectGUI\getDidacticTemplateVar(), ilDidacticTemplateObjSettings\lookupTemplateId(), and ILIAS\Repository\object().

266  : void
267  {
268  // check if template is changed
270  $this->object->getRefId()
271  );
272  $new_tpl_id = $this->getDidacticTemplateVar('dtpl');
273 
274  if ($new_tpl_id !== $current_tpl_id) {
275  // redirect to didactic template confirmation
276  $this->ctrl->redirect(ilDidacticTemplateGUI::class, "confirmTemplateSwitch");
277  return;
278  }
279  parent::afterUpdate();
280  }
getDidacticTemplateVar(string $type)
Get didactic template setting from creation screen.
+ Here is the call graph for this function:

◆ editObject()

ilObjBookingPoolGUI::editObject ( )

Definition at line 282 of file class.ilObjBookingPoolGUI.php.

References ILIAS\Repository\ctrl().

282  : void
283  {
284  $this->ctrl->redirectByClass(SettingsGUI::class, "");
285  }
+ Here is the call graph for this function:

◆ infoScreen()

ilObjBookingPoolGUI::infoScreen ( )

Definition at line 550 of file class.ilObjBookingPoolGUI.php.

References ilObjectGUI\$ctrl, ilObjectGUI\checkPermission(), and ilObjectGUI\checkPermissionBool().

550  : string
551  {
552  $ilCtrl = $this->ctrl;
553 
554  $this->tabs_gui->setTabActive('info');
555 
556  $this->checkPermission("visible");
557 
558  $info = new ilInfoScreenGUI($this);
559 
560  $info->enablePrivateNotes();
561 
562  if ($this->checkPermissionBool("read")) {
563  $info->enableNews();
564  }
565 
566  // no news editing for files, just notifications
567  $info->enableNewsEditing(false);
568  if ($this->checkPermissionBool("write")) {
569  $news_set = new ilSetting("news");
570  $enable_internal_rss = $news_set->get("enable_rss_for_internal");
571 
572  if ($enable_internal_rss) {
573  $info->setBlockProperty("news", "settings", true);
574  $info->setBlockProperty("news", "public_notifications_option", true);
575  }
576  }
577 
578  // forward the command
579  if ($ilCtrl->getNextClass() === "ilinfoscreengui") {
580  $ilCtrl->forwardCommand($info);
581  } else {
582  return $ilCtrl->getHTML($info);
583  }
584  return "";
585  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ infoScreenObject()

ilObjBookingPoolGUI::infoScreenObject ( )

this one is called from the info button in the repository

Definition at line 545 of file class.ilObjBookingPoolGUI.php.

References ILIAS\Repository\ctrl().

545  : void
546  {
547  $this->ctrl->redirectByClass(ilInfoScreenGUI::class, "showSummary");
548  }
+ Here is the call graph for this function:

◆ initEditCustomForm()

ilObjBookingPoolGUI::initEditCustomForm ( ilPropertyFormGUI  $form)
protected

Definition at line 299 of file class.ilObjBookingPoolGUI.php.

References ilObjectGUI\$type, ilPropertyFormGUI\addItem(), ilBookingObject\getList(), ilObjectGUI\getObjectService(), ilObjectGUI\initDidacticTemplate(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), ilNumberInputGUI\setSize(), ilObjBookingPool\TYPE_FIX_SCHEDULE, ilObjBookingPool\TYPE_NO_SCHEDULE, and ilObjBookingPool\TYPE_NO_SCHEDULE_PREFERENCES.

299  : void
300  {
301  $obj_service = $this->getObjectService();
302 
303  // Show didactic template type
304  $this->initDidacticTemplate($form);
305 
306  $type = new ilRadioGroupInputGUI($this->lng->txt("book_schedule_type"), "stype");
307  $type->setRequired(true);
308  $form->addItem($type);
309 
310  // #14478
311  if (count(ilBookingObject::getList($this->object->getId()))) {
312  $type->setDisabled(true);
313  }
314 
315  $fixed = new ilRadioOption($this->lng->txt("book_schedule_type_fixed"), ilObjBookingPool::TYPE_FIX_SCHEDULE);
316  $fixed->setInfo($this->lng->txt("book_schedule_type_fixed_info"));
317  $type->addOption($fixed);
318 
319  #23637
320  //period
321  $period = new ilNumberInputGUI($this->lng->txt("book_reservation_filter_period"), "period");
322  $period->setInfo($this->lng->txt("book_reservation_filter_period_info"));
323  $period->setSuffix($this->lng->txt("days"));
324  $period->setSize(3);
325  $period->setMinValue(0);
326  $fixed->addSubItem($period);
327 
328  // reminder
329  $rmd = new ilCheckboxInputGUI($this->lng->txt("book_reminder_setting"), "rmd");
330  $rmd->setChecked((bool) $this->object->getReminderStatus());
331  $info = $this->lng->txt("book_reminder_day_info");
332  if (!$this->cron_manager->isJobActive('book_notification')) {
333  $info .= " " . $this->lng->txt("book_notification_cron_not_active");
334  }
335  $rmd->setInfo($info);
336  $fixed->addSubItem($rmd);
337 
338  $rmd_day = new ilNumberInputGUI($this->lng->txt("book_reminder_day"), "rmd_day");
339  $rmd_day->setRequired(true);
340  $rmd_day->setSize(3);
341  $rmd_day->setSuffix($this->lng->txt("book_reminder_days"));
342  $rmd_day->setValue(max($this->object->getReminderDay(), 1));
343  $rmd_day->setMinValue(1);
344  $rmd->addSubItem($rmd_day);
345 
346  // no schedule, direct booking
347  $none = new ilRadioOption($this->lng->txt("book_schedule_type_none_direct"), ilObjBookingPool::TYPE_NO_SCHEDULE);
348  $none->setInfo($this->lng->txt("book_schedule_type_none_direct_info"));
349  $type->addOption($none);
350 
351  $limit = new ilNumberInputGUI($this->lng->txt("book_overall_limit"), "limit");
352  $limit->setSize(4);
353  $limit->setMinValue(1);
354  $limit->setSuffix($this->lng->txt("book_bookings_per_user"));
355  $none->addSubItem($limit);
356 
357  // no schedule, using preferences
358  $pref = new ilRadioOption($this->lng->txt("book_schedule_type_none_preference"), ilObjBookingPool::TYPE_NO_SCHEDULE_PREFERENCES);
359  $pref->setInfo($this->lng->txt("book_schedule_type_none_preference_info"));
360  $type->addOption($pref);
361 
362  // number of preferences
363  $pref_nr = new ilNumberInputGUI($this->lng->txt("book_nr_of_preferences"), "preference_nr");
364  $pref_nr->setSize(4);
365  $pref_nr->setMinValue(1);
366  $pref_nr->setInfo($this->lng->txt("book_nr_of_preferences_info"));
367  $pref_nr->setSuffix($this->lng->txt("book_nr_preferences"));
368  $pref_nr->setRequired(true);
369  $pref->addSubItem($pref_nr);
370 
371  // preference deadline
372  $pref_deadline = new ilDateTimeInputGUI($this->lng->txt("book_pref_deadline"), "pref_deadline");
373  $pref_deadline->setInfo($this->lng->txt("book_pref_deadline_info"));
374  $pref_deadline->setShowTime(true);
375  $pref_deadline->setRequired(true);
376  $pref->addSubItem($pref_deadline);
377 
378 
379  $public = new ilCheckboxInputGUI($this->lng->txt("book_public_log"), "public");
380  $public->setInfo($this->lng->txt("book_public_log_info"));
381  $form->addItem($public);
382 
383  // messages
384  $mess = new ilCheckboxInputGUI($this->lng->txt("book_messages"), "messages");
385  $mess->setInfo($this->lng->txt("book_messages_info"));
386  $form->addItem($mess);
387 
388  $this->lng->loadLanguageModule("rep");
389  $section = new ilFormSectionHeaderGUI();
390  $section->setTitle($this->lng->txt('rep_activation_availability'));
391  $form->addItem($section);
392 
393  $online = new ilCheckboxInputGUI($this->lng->txt("online"), "online");
394  $form->addItem($online);
395 
396  // presentation
397  $pres = new ilFormSectionHeaderGUI();
398  $pres->setTitle($this->lng->txt('obj_presentation'));
399  $form->addItem($pres);
400 
401  // tile image
402  $obj_service->commonSettings()->legacyForm($form, $this->object)->addTileImage();
403 
404  // additional features
405  $feat = new ilFormSectionHeaderGUI();
406  $feat->setTitle($this->lng->txt('obj_features'));
407  $form->addItem($feat);
408  }
This class represents an option in a radio group.
setInfo(string $a_info)
This class represents a date/time property in a property form.
This class represents a property in a property form.
This class represents a number property in a property form.
initDidacticTemplate(ilPropertyFormGUI $form)
static getList(int $a_pool_id, ?string $a_title=null)
Get list of booking objects.
setRequired(bool $a_required)
+ Here is the call graph for this function:

◆ initHeaderAction()

ilObjBookingPoolGUI::initHeaderAction ( ?string  $sub_type = null,
?int  $sub_id = null 
)
protected

Definition at line 611 of file class.ilObjBookingPoolGUI.php.

References ilObjectGUI\$access, ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\$user, ilRBACAccessHandler\checkAccess(), ilObject\getId(), ilUtil\getImagePath(), ilCtrl\getLinkTarget(), ilNotification\hasNotification(), ilLanguage\loadLanguageModule(), ILIAS\Repository\object(), ilCtrl\setParameter(), ilLanguage\txt(), ilNotification\TYPE_BOOK, and ilObjBookingPool\TYPE_FIX_SCHEDULE.

611  : ?ilObjectListGUI
612  {
614  $user = $this->user;
615  $ctrl = $this->ctrl;
616  $lng = $this->lng;
617 
618  $lng->loadLanguageModule("noti");
619 
620  $lg = parent::initHeaderAction($sub_type, $sub_id);
621 
622  if ($lg && $access->checkAccess("read", "", $this->ref_id)) {
623  if ($this->object->getScheduleType() === ilObjBookingPool::TYPE_FIX_SCHEDULE &&
624  $this->object->getReminderStatus()) {
625  // notification
628  $user->getId(),
629  $this->object->getId()
630  )) {
631  $lg->addHeaderIcon(
632  "not_icon",
633  ilUtil::getImagePath("object/notification_off.svg"),
634  $lng->txt("noti_notification_deactivated")
635  );
636 
637  $ctrl->setParameter($this, "ntf", 1);
638  $caption = "noti_activate_notification";
639  } else {
640  $lg->addHeaderIcon(
641  "not_icon",
642  ilUtil::getImagePath("object/notification_on.svg"),
643  $lng->txt("noti_notification_activated")
644  );
645 
646  $ctrl->setParameter($this, "ntf", 0);
647  $caption = "noti_deactivate_notification";
648  }
649 
650  $lg->addCustomCommand(
651  $ctrl->getLinkTarget($this, "saveNotification"),
652  $caption
653  );
654 
655  $ctrl->setParameter($this, "ntf", "");
656  }
657  }
658 
659  return $lg;
660  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
getLinkTarget(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
ilAccessHandler $access
static hasNotification(int $type, int $user_id, int $id)
Check notification status for object and user.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
+ Here is the call graph for this function:

◆ saveNotificationObject()

ilObjBookingPoolGUI::saveNotificationObject ( )

Definition at line 662 of file class.ilObjBookingPoolGUI.php.

References ilObjectGUI\$ctrl, ilObjectGUI\$user, ilObject\getId(), ilCtrl\redirect(), ilNotification\setNotification(), and ilNotification\TYPE_BOOK.

662  : void
663  {
664  $ctrl = $this->ctrl;
665  $user = $this->user;
666 
667 
668  switch ($this->book_request->getNotification()) {
669  case 0:
670  ilNotification::setNotification(ilNotification::TYPE_BOOK, $user->getId(), $this->object->getId(), false);
671  break;
672 
673  case 1:
674  ilNotification::setNotification(ilNotification::TYPE_BOOK, $user->getId(), $this->object->getId(), true);
675  break;
676  }
677  $ctrl->redirect($this, "render");
678  }
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ showNoScheduleMessage()

ilObjBookingPoolGUI::showNoScheduleMessage ( )

Definition at line 287 of file class.ilObjBookingPoolGUI.php.

References ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilObjBookingPool\TYPE_FIX_SCHEDULE.

287  : void
288  {
289  $schedule_manager = $this->domain->schedules($this->object->getId());
290 
291  // if we have no schedules yet - show info
292  if ($this->object->getScheduleType() === ilObjBookingPool::TYPE_FIX_SCHEDULE &&
293  !$schedule_manager->hasSchedules()) {
294  $this->tpl->setOnScreenMessage('info', $this->lng->txt("book_schedule_warning_edit"));
295  }
296  }
+ Here is the call graph for this function:

◆ showProfileObject()

ilObjBookingPoolGUI::showProfileObject ( )

Definition at line 588 of file class.ilObjBookingPoolGUI.php.

References ilObjectGUI\$ctrl, $profile_user_id, ilObjectGUI\$tpl, $user_id, ILIAS\Repository\ctrl(), and ILIAS\UICore\GlobalTemplate\setContent().

588  : void
589  {
590  $tpl = $this->tpl;
591  $ilCtrl = $this->ctrl;
592 
593  $this->tabs_gui->clearTargets();
594 
596 
597  $profile = new ilPublicUserProfileGUI($user_id);
598  $profile->setBackUrl($this->ctrl->getLinkTarget($this, 'log'));
599  $tpl->setContent($ilCtrl->getHTML($profile));
600  }
setContent(string $a_html)
Sets content for standard template.
GUI class for public user profile presentation.
ilGlobalTemplateInterface $tpl
+ Here is the call graph for this function:

Field Documentation

◆ $book_obj_id

int ilObjBookingPoolGUI::$book_obj_id
protected

Definition at line 48 of file class.ilObjBookingPoolGUI.php.

◆ $book_request

StandardGUIRequest ilObjBookingPoolGUI::$book_request
protected

Definition at line 38 of file class.ilObjBookingPoolGUI.php.

◆ $cron_manager

ILIAS Cron Job JobManager ilObjBookingPoolGUI::$cron_manager
protected

Definition at line 37 of file class.ilObjBookingPoolGUI.php.

◆ $domain

InternalDomainService ilObjBookingPoolGUI::$domain
protected

Definition at line 36 of file class.ilObjBookingPoolGUI.php.

◆ $gui

InternalGUIService ilObjBookingPoolGUI::$gui
protected

Definition at line 35 of file class.ilObjBookingPoolGUI.php.

◆ $help

ilBookingHelpAdapter ilObjBookingPoolGUI::$help
protected

Definition at line 42 of file class.ilObjBookingPoolGUI.php.

◆ $nav_history

ilNavigationHistory ilObjBookingPoolGUI::$nav_history
protected

Definition at line 41 of file class.ilObjBookingPoolGUI.php.

◆ $profile_user_id

int ilObjBookingPoolGUI::$profile_user_id
protected

Definition at line 47 of file class.ilObjBookingPoolGUI.php.

Referenced by showProfileObject().

◆ $reservation_id

string ilObjBookingPoolGUI::$reservation_id
protected

Definition at line 49 of file class.ilObjBookingPoolGUI.php.

◆ $seed

string ilObjBookingPoolGUI::$seed
protected

Definition at line 45 of file class.ilObjBookingPoolGUI.php.

◆ $service

InternalService ilObjBookingPoolGUI::$service
protected

Definition at line 39 of file class.ilObjBookingPoolGUI.php.

◆ $sseed

string ilObjBookingPoolGUI::$sseed
protected

Definition at line 46 of file class.ilObjBookingPoolGUI.php.

◆ $tabs

ilTabsGUI ilObjBookingPoolGUI::$tabs
protected

Definition at line 40 of file class.ilObjBookingPoolGUI.php.

◆ $user_id_assigner

int ilObjBookingPoolGUI::$user_id_assigner
protected

Definition at line 44 of file class.ilObjBookingPoolGUI.php.

◆ $user_id_to_book

int ilObjBookingPoolGUI::$user_id_to_book
protected

Definition at line 43 of file class.ilObjBookingPoolGUI.php.


The documentation for this class was generated from the following file: