ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilObjSessionGUI Class Reference
+ Inheritance diagram for ilObjSessionGUI:
+ Collaboration diagram for ilObjSessionGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
 
 executeCommand ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 registerObject ()
 
 joinObject ()
 
 unregisterObject (bool $a_refuse_participation=false)
 
 infoScreenObject ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More...
 
 modifyItemGUI (ilObjectListGUI $a_item_list_gui, array $a_item_data, bool $a_show_path)
 
 showJoinRequestButtonInCalendar (ilToolbarGUI $a_ilToolbar)
 show join request This method is only needed to keep showJoinRequestButton method protected. More...
 
 saveObject (bool $redirect_to_materials_on_success=false)
 
 handleFileUpload ()
 
 editObject ()
 
 updateObject ()
 updates object entry in object_data More...
 
 updateSessionTypeObject ()
 change session type More...
 
 materialsObject ()
 
 getCreatableObjectTypes ()
 
 applyFilter ()
 
 resetFilter ()
 
 removeMaterialsObject ()
 
 saveMaterialsObject ()
 
 postUpdateMaterials ()
 redirect to list of materials without offset/page. More...
 
 attendanceListObject ()
 
 getAttendanceListUserData (int $a_user_id, array $a_filters)
 
 afterSaveCallback (ilObject $a_obj)
 Custom callback after object is created (in parent container) More...
 
 readMemberData (array $a_usr_ids)
 Used for waiting list. More...
 
 getContainerRefId ()
 
 getDefaultMemberRole ()
 
 getLocalRoles ()
 
 createMailSignature ()
 
- 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)
 
- Public Member Functions inherited from ilDesktopItemHandling
 addToDeskObject ()
 
 removeFromDeskObject ()
 

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)
 

Data Fields

ilLanguage $lng
 
ilCtrl $ctrl
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilObjectDefinition $objDefinition
 
- 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]
 

Protected Member Functions

 membersObject ()
 
 refuseParticipationObject ()
 
 showJoinRequestButton (?ilToolbarGUI $ilToolbar=null)
 
 initCreateForm ($new_type)
 
 saveAndAssignMaterialsObject ()
 
 createRecurringSessions (bool $a_activate_lp=true)
 
 initContainer (bool $a_init_participants=false)
 
 initAttendanceList ()
 
 printAttendanceListObject ()
 
 __showButton (string $cmd, string $text, string $target='')
 
 initForm (string $a_mode)
 
 load ()
 
 loadRecurrenceSettings ()
 
 __toUnix (array $date, array $time)
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 redirectToParentContentPageObject ()
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 cancelEditObject ()
 
- 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 ()
 @abstract 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

ILIAS DI UIServices $ui
 
ilAppEventHandler $event
 
ILIAS FileUpload FileUpload $upload
 
ilHelpGUI $help
 
ILIAS Refinery Factory $refinery
 
ilObjUser $user
 
ilAccessHandler $access
 
ilToolbarGUI $toolbar
 
ilErrorHandling $ilErr
 
ilObjectService $object_service
 
ilTabsGUI $tabs_gui
 
ilLocatorGUI $locator
 
ilRbacReview $rbacreview
 
int $container_ref_id = 0
 
int $container_obj_id = 0
 
ilPropertyFormGUI $form = null
 
ilAdvancedMDRecordGUI $record_gui = null
 
ilEventRecurrence $rec = null
 
ilEventItems $event_items = null
 
ilEventParticipants $event_part = null
 
int $requested_ref_id = 0
 
int $requested_user_id = 0
 
int $requested_file_id = 0
 
int $requested_offset = 0
 
string $requested_sort_by = ""
 
string $requested_sort_order = ""
 
array $requested_items = []
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
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
 
CustomIconFactory $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 = ""
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjSessionGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference,
  $a_prepare_output = true 
)

Definition at line 71 of file class.ilObjSessionGUI.php.

72 {
73 global $DIC;
74
75 $this->ctrl = $DIC->ctrl();
76 $this->lng = $DIC->language();
77 $this->tpl = $DIC->ui()->mainTemplate();
78 $this->user = $DIC->user();
79 $this->tree = $DIC->repositoryTree();
80 $this->access = $DIC->access();
81 $this->toolbar = $DIC->toolbar();
82 $this->ilErr = $DIC["ilErr"];
83 $this->object_service = $DIC->object();
84 $this->objDefinition = $DIC['objDefinition'];
85 $this->tabs_gui = $DIC->tabs();
86 $this->locator = $DIC["ilLocator"];
87 $this->rbacreview = $DIC->rbac()->review();
88 $this->event = $DIC->event();
89 $this->upload = $DIC->upload();
90 $this->help = $DIC->help();
91 $this->refinery = $DIC->refinery();
92
93 $this->type = "sess";
94 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
95
96 $this->lng->loadLanguageModule("event");
97 $this->lng->loadLanguageModule('crs');
98 $this->lng->loadLanguageModule('trac');
99 $this->lng->loadLanguageModule('sess');
100
101 if ($this->http->wrapper()->query()->has('ref_id')) {
102 $this->requested_ref_id = $this->http->wrapper()->query()->retrieve(
103 'ref_id',
104 $this->refinery->kindlyTo()->int()
105 );
106 }
107
108 if ($this->http->wrapper()->query()->has('user_id')) {
109 $this->requested_user_id = $this->http->wrapper()->query()->retrieve(
110 'user_id',
111 $this->refinery->kindlyTo()->int()
112 );
113 }
114
115 if ($this->http->wrapper()->post()->has('file_id')) {
116 $this->requested_file_id = $this->http->wrapper()->post()->retrieve(
117 'file_id',
118 $this->refinery->kindlyTo()->int()
119 );
120 } elseif ($this->http->wrapper()->query()->has('file_id')) {
121 $this->requested_file_id = $this->http->wrapper()->query()->retrieve(
122 'file_id',
123 $this->refinery->kindlyTo()->int()
124 );
125 }
126
127 if ($this->http->wrapper()->query()->has('offset')) {
128 $this->requested_offset = $this->http->wrapper()->query()->retrieve(
129 'offset',
130 $this->refinery->kindlyTo()->int()
131 );
132 }
133
134 if ($this->http->wrapper()->query()->has('sort_by')) {
135 $this->requested_sort_by = $this->http->wrapper()->query()->retrieve(
136 'sort_by',
137 $this->refinery->kindlyTo()->string()
138 );
139 }
140
141 if ($this->http->wrapper()->query()->has('sort_order')) {
142 $this->requested_sort_order = $this->http->wrapper()->query()->retrieve(
143 'sort_order',
144 $this->refinery->kindlyTo()->string()
145 );
146 }
147
148 if ($this->http->wrapper()->post()->has('items')) {
149 $this->requested_items = $this->http->wrapper()->post()->retrieve(
150 'items',
151 $this->refinery->kindlyTo()->listOf(
152 $this->refinery->kindlyTo()->int()
153 )
154 );
155 }
156 $this->ui = $DIC->ui();
157 }
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\refinery(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), ILIAS\Repository\upload(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ __showButton()

ilObjSessionGUI::__showButton ( string  $cmd,
string  $text,
string  $target = '' 
)
protected

Definition at line 1286 of file class.ilObjSessionGUI.php.

1286 : void
1287 {
1288 $this->toolbar->addButton($text, $this->ctrl->getLinkTarget($this, $cmd), $target);
1289 }
$text
Definition: xapiexit.php:21

References ILIAS\Scripts\PHPStan\$target, ILIAS\Repository\ctrl(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

◆ __toUnix()

ilObjSessionGUI::__toUnix ( array  $date,
array  $time 
)
protected

Definition at line 1661 of file class.ilObjSessionGUI.php.

1661 : int
1662 {
1663 return mktime($time['h'], $time['m'], 0, $date['m'], $date['d'], $date['y']);
1664 }

◆ _goto()

static ilObjSessionGUI::_goto ( string  $a_target)
static

Definition at line 452 of file class.ilObjSessionGUI.php.

452 : void
453 {
454 global $DIC;
455 $main_tpl = $DIC->ui()->mainTemplate();
456
457 $ilAccess = $DIC->access();
458 $lng = $DIC->language();
459
460 $ilCtrl = $DIC->ctrl();
461 $parts = explode('_', $a_target);
462 $a_target = (int) $parts[0];
463
464 if ($ilAccess->checkAccess('write', '', $a_target)) {
465 if (isset($parts[1]) && 'part' === $parts[1]) {
466 $ilCtrl->setTargetScript('ilias.php');
467 $ilCtrl->setParameterByClass('ilSessionMembershipGUI', 'ref_id', $a_target);
468 $ilCtrl->setTargetScript('ilias.php');
469 $ilCtrl->redirectByClass(array('ilRepositoryGUI', __CLASS__, 'ilSessionMembershipGUI'));
470 }
471 }
472
473 if ($ilAccess->checkAccess('visible', "", $a_target)) {
474 ilObjectGUI::_gotoRepositoryNode($a_target, "infoScreen");
475 } elseif ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
476 $main_tpl->setOnScreenMessage('failure', sprintf(
477 $lng->txt("msg_no_perm_read_item"),
479 ), true);
481 }
482 }
txt(string|LanguageIdentifier $a_topic, ?int $n=null)
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
static _gotoRepositoryNode(int $ref_id, string $cmd="")
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
const ROOT_FOLDER_ID
Definition: constants.php:32

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

+ Here is the call graph for this function:

◆ addLocatorItems()

ilObjSessionGUI::addLocatorItems ( )
protected

should be overwritten to add object specific items (repository items are preloaded)

Reimplemented from ilObjectGUI.

Definition at line 1666 of file class.ilObjSessionGUI.php.

1666 : void
1667 {
1668 $ilLocator = $this->locator;
1669
1670 if (!$this->getCreationMode()) {
1671 // see prepareOutput()
1672 $title = strlen($this->object->getTitle()) ? (': ' . $this->object->getTitle()) : '';
1673 $title = $this->object->getFirstAppointment()->appointmentToString() . $title;
1674
1675 $ilLocator->addItem($title, $this->ctrl->getLinkTarget($this, "infoScreen"), "", $this->requested_ref_id);
1676 }
1677 }

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

+ Here is the call graph for this function:

◆ afterSaveCallback()

ilObjSessionGUI::afterSaveCallback ( ilObject  $a_obj)

Custom callback after object is created (in parent container)

Definition at line 1804 of file class.ilObjSessionGUI.php.

1804 : void
1805 {
1806 // add new object to materials
1807 $event_items = new ilEventItems($this->object->getId());
1808 $event_items->addItem($a_obj->getRefId());
1810 }
class ilEventItems
addItem(int $a_item_ref_id)

References $event_items, ilEventItems\addItem(), ilObject\getRefId(), ILIAS\Repository\object(), and ilEventItems\update().

+ Here is the call graph for this function:

◆ applyFilter()

ilObjSessionGUI::applyFilter ( )

Definition at line 1157 of file class.ilObjSessionGUI.php.

1157 : void
1158 {
1159 $tbl = new ilSessionMaterialsTableGUI($this, "materials");
1160 $tbl->writeFilterToSession(); // writes filter to session
1161 $tbl->resetOffset(); // sets record offest to 0 (first page)
1162 $this->ctrl->redirect($this, "materials");
1163 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ attendanceListObject()

ilObjSessionGUI::attendanceListObject ( )

Definition at line 1212 of file class.ilObjSessionGUI.php.

1212 : void
1213 {
1214 $tpl = $this->tpl;
1215 $ilTabs = $this->tabs_gui;
1216
1217 $this->checkPermission('manage_members');
1218 $ilTabs->setTabActive('event_edit_members');
1219
1220 $list = $this->initAttendanceList();
1221 $form = $list->initForm('printAttendanceList');
1223 }
ilGlobalTemplateInterface $tpl
ilPropertyFormGUI $form
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
setContent(string $a_html)
Sets content for standard template.

References $form, $tabs_gui, $tpl, ilObjectGUI\checkPermission(), ilPropertyFormGUI\getHTML(), initAttendanceList(), and ILIAS\UICore\GlobalTemplate\setContent().

+ Here is the call graph for this function:

◆ cancelEditObject()

ilObjSessionGUI::cancelEditObject ( )
protected

Definition at line 1832 of file class.ilObjSessionGUI.php.

1832 : void
1833 {
1834 $ilCtrl = $this->ctrl;
1836
1837 $parent_id = $tree->getParentId($this->requested_ref_id);
1838
1839 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $parent_id);
1840
1841 $ilCtrl->redirectByClass("ilrepositorygui", "");
1842 }
getParentId(int $a_node_id)
get parent id of given node

References $ctrl, $tree, and ilTree\getParentId().

+ Here is the call graph for this function:

◆ createMailSignature()

ilObjSessionGUI::createMailSignature ( )

Definition at line 1869 of file class.ilObjSessionGUI.php.

1869 : string
1870 {
1871 $link = chr(13) . chr(10) . chr(13) . chr(10);
1872 $link .= $this->lng->txt('sess_mail_permanent_link');
1873 $link .= chr(13) . chr(10) . chr(13) . chr(10);
1874 $link .= ilLink::_getLink($this->object->getRefId());
1875 return rawurlencode(base64_encode($link));
1876 }

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

+ Here is the call graph for this function:

◆ createRecurringSessions()

ilObjSessionGUI::createRecurringSessions ( bool  $a_activate_lp = true)
protected

Definition at line 884 of file class.ilObjSessionGUI.php.

884 : bool
885 {
887
888 if (!$this->rec->getFrequenceType()) {
889 return true;
890 }
891 $calc = new ilCalendarRecurrenceCalculator($this->object->getFirstAppointment(), $this->rec);
892
893 $period_start = clone $this->object->getFirstAppointment()->getStart();
894
895
896 $period_end = clone $this->object->getFirstAppointment()->getStart();
897 $period_end->increment(IL_CAL_YEAR, 5);
898 $date_list = $calc->calculateDateList($period_start, $period_end);
899
900 $period_diff = $this->object->getFirstAppointment()->getEnd()->get(IL_CAL_UNIX) -
901 $this->object->getFirstAppointment()->getStart()->get(IL_CAL_UNIX);
902 $parent_id = $tree->getParentId($this->object->getRefId());
903
904 $evi = new ilEventItems($this->object->getId());
905 $eitems = $evi->getItems();
906
907 $counter = 0;
908 foreach ($date_list->get() as $date) {
909 if (!$counter++) {
910 continue;
911 }
912
913 $new_obj = $this->object->cloneObject($parent_id);
914
915 // apply didactic template?
916 $dtpl = $this->getDidacticTemplateVar("dtpl");
917 if ($dtpl) {
918 $new_obj->applyDidacticTemplate($dtpl);
919 }
920
921 $new_obj->read();
922 $new_obj->getFirstAppointment()->setStartingTime($date->get(IL_CAL_UNIX));
923 $new_obj->getFirstAppointment()->setEndingTime($date->get(IL_CAL_UNIX) + $period_diff);
924 $new_obj->getFirstAppointment()->update();
925 $new_obj->update();
926
927 // #14547 - active is default
928 if (!$a_activate_lp) {
929 $lp_obj_settings = new ilLPObjSettings($new_obj->getId());
930 $lp_obj_settings->setMode(ilLPObjSettings::LP_MODE_DEACTIVATED);
931 $lp_obj_settings->update(false);
932 }
933
934 $new_evi = new ilEventItems($new_obj->getId());
935 $new_evi->setItems($eitems);
936 $new_evi->update();
937 }
938
939 return true;
940 }
const IL_CAL_UNIX
const IL_CAL_YEAR
Calculates an ilDateList for a given calendar entry and recurrence rule.
getDidacticTemplateVar(string $type)
Get didactic template setting from creation screen.

References $tree, ilObjectGUI\getDidacticTemplateVar(), ilTree\getParentId(), IL_CAL_UNIX, IL_CAL_YEAR, ilLPObjSettings\LP_MODE_DEACTIVATED, and ILIAS\Repository\object().

Referenced by saveObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editObject()

ilObjSessionGUI::editObject ( )

Reimplemented from ilObjectGUI.

Definition at line 942 of file class.ilObjSessionGUI.php.

942 : void
943 {
944 $this->tabs_gui->setTabActive('settings');
945
946 $this->initForm('edit');
947 $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.sess_edit.html', 'components/ILIAS/Session');
948 $this->tpl->setVariable('EVENT_EDIT_TABLE', $this->form->getHTML());
949 }
initForm(string $a_mode)
form(?array $class_path, string $cmd, string $submit_caption="")

References ILIAS\Repository\form(), and initForm().

Referenced by updateObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjSessionGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

Definition at line 159 of file class.ilObjSessionGUI.php.

159 : void
160 {
161 $ilUser = $this->user;
162 $ilCtrl = $this->ctrl;
163 $ilAccess = $this->access;
164
165 $next_class = $this->ctrl->getNextClass($this);
166 $cmd = $this->ctrl->getCmd();
167
168 if (
169 !$this->getCreationMode() &&
170 $ilAccess->checkAccess('read', '', $this->requested_ref_id)
171 ) {
172 $GLOBALS['DIC']['ilNavigationHistory']->addItem(
173 $this->requested_ref_id,
174 ilLink::_getLink($this->requested_ref_id, 'sess'),
175 'sess',
176 $this->object->getPresentationTitle()
177 );
178 }
179
180 $this->prepareOutput();
181 switch ($next_class) {
182 case 'ilsessionmembershipgui':
183 $this->tabs_gui->activateTab('members');
184 $mem_gui = new ilSessionMembershipGUI($this, $this->object);
185 $this->ctrl->forwardCommand($mem_gui);
186 break;
187
188 case "ilinfoscreengui":
189 $this->checkPermission("visible");
190 $this->infoScreen(); // forwards command
191 break;
192
193 case 'ilobjectmetadatagui':
194 $this->checkPermission('edit_metadata');
195 $this->tabs_gui->activateTab('metadata');
196 $md_gui = new ilObjectMetaDataGUI($this->object);
197 $this->ctrl->forwardCommand($md_gui);
198 break;
199
200 case 'ilpermissiongui':
201 $this->tabs_gui->setTabActive('perm_settings');
202 $perm_gui = new ilPermissionGUI($this);
203 $ret = $this->ctrl->forwardCommand($perm_gui);
204 break;
205
206 case 'ilobjectcopygui':
207 $cp = new ilObjectCopyGUI($this);
208 $cp->setType('sess');
209 $this->ctrl->forwardCommand($cp);
210 break;
211
212 case "ilexportgui":
213 $this->tabs_gui->setTabActive("export");
214 $exp_gui = new ilExportGUI($this);
215 $exp_gui->addFormat("xml");
216 $ret = $this->ctrl->forwardCommand($exp_gui);
217 break;
218
219 case "ilcommonactiondispatchergui":
221 $this->ctrl->forwardCommand($gui);
222 break;
223
224 case 'ilmembershipgui':
225 $this->ctrl->setReturn($this, 'members');
226 $mem = new ilMembershipMailGUI($this);
227 $this->ctrl->forwardCommand($mem);
228 break;
229
230 case "illearningprogressgui":
231 $new_gui = new ilLearningProgressGUI(
233 $this->object->getRefId(),
234 $this->requested_user_id ?: $ilUser->getId()
235 );
236 $this->ctrl->forwardCommand($new_gui);
237 $this->tabs_gui->setTabActive('learning_progress');
238 break;
239
240 case "ilpropertyformgui":
241 // only case is currently adv metadata internal link in info settings, see #24497
242 if (!is_object($this->object)) {
243 $form = $this->initCreateForm("sess");
244 } else {
245 $form = $this->initForm("edit");
246 if ($form === true) {
248 }
249 }
250 $ilCtrl->forwardCommand($form);
251 break;
252
253 case "ilbookinggatewaygui":
255 $parent_id = $tree->getParentId($this->requested_ref_id);
256
257 $this->tabs_gui->activateTab('obj_tool_setting_booking');
258 $gui = new ilBookingGatewayGUI($this, $parent_id);
259 $this->ctrl->forwardCommand($gui);
260 break;
261
262 default:
263 if ($cmd == "applyFilter") {
264 $this->$cmd();
265 } elseif ($cmd == "resetFilter") {
266 $this->$cmd();
267 }
268 if (!$cmd) {
269 $cmd = "infoScreen";
270 }
271 $cmd .= "Object";
272 $this->$cmd();
273
274 break;
275 }
276
277 $this->addHeaderAction();
278 }
This class is used for integration of the booking manager as a service into other repository objects,...
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Export User Interface Class.
Class ilObjUserTrackingGUI.
ilAccessHandler $access
prepareOutput(bool $show_sub_objects=true)
GUI class for the workflow of copying objects.
addHeaderAction()
Add header action menu.
Class ilObjectMetaDataGUI.
GUI class for membership features.
$GLOBALS["DIC"]
Definition: wac.php:66

References $access, $ctrl, $form, $GLOBALS, $tree, $user, ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilTree\getParentId(), initCreateForm(), initForm(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, ILIAS\Repository\object(), and prepareOutput().

+ Here is the call graph for this function:

◆ getAttendanceListUserData()

ilObjSessionGUI::getAttendanceListUserData ( int  $a_user_id,
array  $a_filters 
)

Definition at line 1268 of file class.ilObjSessionGUI.php.

1268 : ?array
1269 {
1270 $data = $this->event_part->getUser($a_user_id);
1271
1272 if ($a_filters && $a_filters["registered"] && !$data["registered"]) {
1273 return null;
1274 }
1275
1276 $data['registered'] = $data['registered'] ?
1277 $this->lng->txt('yes') :
1278 $this->lng->txt('no');
1279 $data['participated'] = $data['participated'] ?
1280 $this->lng->txt('yes') :
1281 $this->lng->txt('no');
1282
1283 return $data;
1284 }

References ilObjectGUI\$data, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getContainerRefId()

ilObjSessionGUI::getContainerRefId ( )

Definition at line 1824 of file class.ilObjSessionGUI.php.

1824 : int
1825 {
1826 if (!$this->container_ref_id) {
1827 $this->initContainer();
1828 }
1830 }
initContainer(bool $a_init_participants=false)

References $container_ref_id, and initContainer().

Referenced by materialsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCreatableObjectTypes()

ilObjSessionGUI::getCreatableObjectTypes ( )

Reimplemented from ilObjectGUI.

Definition at line 1144 of file class.ilObjSessionGUI.php.

1144 : array
1145 {
1146 $parent_ref_id = $this->tree->getParentId($this->object->getRefId());
1147 $parent_type = ilObject::_lookupType($parent_ref_id, true);
1148 $parent_gui_class = 'ilObj' . $this->obj_definition->getClassName($parent_type) . 'GUI';
1149 $parent_gui = new $parent_gui_class('', $parent_ref_id, true, false);
1150 $types = $parent_gui->getCreatableObjectTypes();
1151 foreach (array_merge(['obgr', 'sess' ], $this->objDefinition->getSideBlockTypes()) as $type_to_remove) {
1152 unset($types[$type_to_remove]);
1153 }
1154 return $types;
1155 }
static _lookupType(int $id, bool $reference=false)

References ilObject\_lookupType(), and ILIAS\Repository\object().

Referenced by materialsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefaultMemberRole()

ilObjSessionGUI::getDefaultMemberRole ( )

Definition at line 1844 of file class.ilObjSessionGUI.php.

1844 : int
1845 {
1847
1848 $local_roles = $rbac_review->getRolesOfRoleFolder($this->object->getRefId(), false);
1849
1850 foreach ($local_roles as $role_id) {
1851 $title = ilObject::_lookupTitle($role_id);
1852 if (substr($title, 0, 19) == 'il_sess_participant') {
1853 return $role_id;
1854 }
1855 }
1856 return 0;
1857 }
ilRbacReview $rbac_review
getRolesOfRoleFolder(int $a_ref_id, bool $a_nonassignable=true)
get all roles of a role folder including linked local roles that are created due to stopped inheritan...

References ilObjectGUI\$rbac_review, $rbacreview, ilObject\_lookupTitle(), ilRbacReview\getRolesOfRoleFolder(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ getLocalRoles()

ilObjSessionGUI::getLocalRoles ( )
Returns
int[]

Definition at line 1862 of file class.ilObjSessionGUI.php.

1862 : array
1863 {
1865
1866 return $this->rbacreview->getRolesOfRoleFolder($this->object->getRefId(), false);
1867 }

References ilObjectGUI\$rbac_review, $rbacreview, ilRbacReview\getRolesOfRoleFolder(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ getTabs()

ilObjSessionGUI::getTabs ( )
protected

@abstract overwrite in derived GUI class of your object type

Reimplemented from ilObjectGUI.

Definition at line 1697 of file class.ilObjSessionGUI.php.

1697 : void
1698 {
1699 $ilAccess = $this->access;
1700 $ilTabs = $this->tabs_gui;
1702 $ilCtrl = $this->ctrl;
1703 $ilHelp = $this->help;
1704 $ilUser = $this->user;
1705
1706 $ilHelp->setScreenIdComponent("sess");
1707
1708 $parent_id = $tree->getParentId($this->object->getRefId());
1709
1710 // #11650
1711 $parent_type = ilObject::_lookupType($parent_id, true);
1712
1713 $this->tabs_gui->setBackTarget(
1714 $this->lng->txt('back_to_' . $parent_type . '_content'),
1715 $ilCtrl->getLinkTarget($this, "redirectToParentContentPage")
1716 );
1717
1718 $this->tabs_gui->addTarget(
1719 'info_short',
1720 $this->ctrl->getLinkTarget($this, 'infoScreen')
1721 );
1722
1723 if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
1724 $this->tabs_gui->addTarget(
1725 'settings',
1726 $this->ctrl->getLinkTarget($this, 'edit')
1727 );
1728 }
1729 if ($ilAccess->checkAccess('manage_materials', '', $this->object->getRefId())) {
1730 $this->tabs_gui->addTab(
1731 'materials',
1732 $this->lng->txt('crs_materials'),
1733 $this->ctrl->getLinkTarget($this, 'materials')
1734 );
1735 }
1736
1737 // booking
1738 $parent_id = $tree->getParentId($this->requested_ref_id);
1739
1740 if ($ilAccess->checkAccess('write', '', $this->ref_id) && ilContainer::_lookupContainerSetting(
1741 ilObject::_lookupObjId($parent_id),
1743 )) {
1744 $this->tabs_gui->addTarget(
1745 "obj_tool_setting_booking",
1746 $this->ctrl->getLinkTargetByClass(array("ilbookinggatewaygui"), "")
1747 );
1748 }
1749
1750 // member tab
1751 $is_participant = $this->object->getMembersObject()->isAssigned($ilUser->getId());
1752 $membership_gui = new ilSessionMembershipGUI($this, $this->object);
1753 $membership_gui->addMemberTab($this->tabs_gui, $is_participant);
1754
1755
1756 // learning progress
1757 if (ilLearningProgressAccess::checkAccess($this->object->getRefId())) {
1758 $this->tabs_gui->addTarget(
1759 'learning_progress',
1760 $this->ctrl->getLinkTargetByClass(array('ilobjsessiongui','illearningprogressgui'), ''),
1761 '',
1762 array('illplistofobjectsgui','illplistofsettingsgui','illearningprogressgui','illplistofprogressgui')
1763 );
1764 }
1765
1766 // meta data
1767 if ($ilAccess->checkAccess('edit_metadata', '', $this->ref_id)) {
1768 $mdgui = new ilObjectMetaDataGUI($this->object);
1769 $mdtab = $mdgui->getTab();
1770 if ($mdtab) {
1771 $this->tabs_gui->addTab(
1772 "metadata",
1773 $this->lng->txt('meta_data'),
1774 $mdtab
1775 );
1776 }
1777 }
1778
1779 // export
1780 if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) {
1781 $this->tabs_gui->addTarget(
1782 "export",
1783 $this->ctrl->getLinkTargetByClass("ilexportgui", ""),
1784 "",
1785 "ilexportgui"
1786 );
1787 }
1788
1789
1790 // edit permissions
1791 if ($ilAccess->checkAccess('edit_permission', "", $this->object->getRefId())) {
1792 $this->tabs_gui->addTarget(
1793 "perm_settings",
1794 $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"),
1795 array("perm","info","owner"),
1796 'ilpermissiongui'
1797 );
1798 }
1799 }
static _lookupContainerSetting(int $a_id, string $a_keyword, ?string $a_default_value=null)
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress

References $access, $ctrl, $help, $tabs_gui, $tree, $user, ilContainer\_lookupContainerSetting(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjectServiceSettingsGUI\BOOKING, ilLearningProgressAccess\checkAccess(), ILIAS\Repository\ctrl(), ilTree\getParentId(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ handleFileUpload()

ilObjSessionGUI::handleFileUpload ( )

Definition at line 841 of file class.ilObjSessionGUI.php.

841 : void
842 {
844
845 $ev = new ilEventItems($this->object->getId());
846 $items = $ev->getItems();
847
848 $counter = 0;
849 while (true) {
850 if (!isset($_FILES['files']['name'][$counter])) {
851 break;
852 }
853 if (!strlen($_FILES['files']['name'][$counter])) {
854 $counter++;
855 continue;
856 }
857
858 $file = new ilObjFile();
859 $file->setTitle(ilUtil::stripSlashes($_FILES['files']['name'][$counter]));
860 $file->setDescription('');
861 $file->setFileName(ilUtil::stripSlashes($_FILES['files']['name'][$counter]));
862 $file->create();
863 $new_ref_id = $file->createReference();
864 $file->putInTree($tree->getParentId($this->object->getRefId()));
865 $file->setPermissions($tree->getParentId($this->object->getRefId()));
866
868 if (!$upload->hasBeenProcessed()) {
869 $upload->process();
870 }
871 $file->getUploadFile(
872 $_FILES['files']['tmp_name'][$counter],
873 $_FILES['files']['name'][$counter]
874 );
875
876 $items[] = $new_ref_id;
877 $counter++;
878 }
879
880 $ev->setItems($items);
881 $ev->update();
882 }
Class ilObjFile.
ILIAS FileUpload FileUpload $upload
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References $tree, $upload, ilTree\getParentId(), ILIAS\Repository\object(), and ilUtil\stripSlashes().

Referenced by saveObject(), and updateObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ infoScreenObject()

ilObjSessionGUI::infoScreenObject ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 489 of file class.ilObjSessionGUI.php.

489 : void
490 {
491 $this->ctrl->redirectByClass(
492 [self::class, ilInfoScreenGUI::class],
493 'showSummary'
494 );
495 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ initAttendanceList()

ilObjSessionGUI::initAttendanceList ( )
protected

Definition at line 1225 of file class.ilObjSessionGUI.php.

1226 {
1227 $members_obj = $this->initContainer(true);
1228
1229 $list = new ilAttendanceList(
1230 $this,
1231 $this->object,
1232 $members_obj
1233 );
1234 $list->setId('sessattlst');
1235
1236 $event_app = $this->object->getFirstAppointment();
1238 $desc = ilDatePresentation::formatPeriod($event_app->getStart(), $event_app->getEnd());
1240 $desc .= " " . $this->object->getTitle();
1241 $list->setTitle($this->lng->txt('sess_attendance_list'), $desc);
1242
1243 $list->addPreset('mark', $this->lng->txt('trac_mark'), true);
1244 $list->addPreset('comment', $this->lng->txt('trac_comment'), true);
1245 if ($this->object->enabledRegistration()) {
1246 $list->addPreset('registered', $this->lng->txt('event_tbl_registered'), true);
1247 }
1248 $list->addPreset('participated', $this->lng->txt('event_tbl_participated'), true);
1249 $list->addBlank($this->lng->txt('sess_signature'));
1250
1251 $list->addUserFilter('registered', $this->lng->txt('event_list_registered_only'));
1252
1253 return $list;
1254 }
Base class for attendance lists.
static setUseRelativeDates(bool $a_status)
set use relative dates
static formatPeriod(ilDateTime $start, ilDateTime $end, bool $a_skip_starting_day=false, ?ilObjUser $user=null)
Format a period of two dates Shows: 14.

References ilDatePresentation\formatPeriod(), initContainer(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilDatePresentation\setUseRelativeDates().

Referenced by attendanceListObject(), and printAttendanceListObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initContainer()

ilObjSessionGUI::initContainer ( bool  $a_init_participants = false)
protected
Returns
bool|ilParticipants

Definition at line 1072 of file class.ilObjSessionGUI.php.

1073 {
1075
1076 $is_course = $is_group = false;
1077
1078 // #13178
1079 $this->container_ref_id = $tree->checkForParentType($this->object->getRefId(), 'grp');
1080 if ($this->container_ref_id) {
1081 $is_group = true;
1082 }
1083 if (!$this->container_ref_id) {
1084 $this->container_ref_id = $tree->checkForParentType($this->object->getRefId(), 'crs');
1085 if ($this->container_ref_id) {
1086 $is_course = true;
1087 }
1088 }
1089 if (!$this->container_ref_id) {
1090 $this->tpl->setOnScreenMessage('failure', 'No container object found. Aborting');
1091 return true;
1092 }
1093 $this->container_obj_id = ilObject::_lookupObjId($this->container_ref_id);
1094
1095 if ($a_init_participants && $this->container_obj_id) {
1096 if ($is_course) {
1097 return ilCourseParticipants::_getInstanceByObjId($this->container_obj_id);
1098 } elseif ($is_group) {
1099 return ilGroupParticipants::_getInstanceByObjId($this->container_obj_id);
1100 }
1101 }
1102
1103 return false;
1104 }
static _getInstanceByObjId(int $a_obj_id)
static _getInstanceByObjId(int $a_obj_id)
Get singleton instance.
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...

References $tree, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilObject\_lookupObjId(), ilTree\checkForParentType(), and ILIAS\Repository\object().

Referenced by getContainerRefId(), and initAttendanceList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initCreateForm()

ilObjSessionGUI::initCreateForm (   $new_type)
protected

Definition at line 737 of file class.ilObjSessionGUI.php.

738 {
739 if (!is_object($this->object)) {
740 $this->object = new ilObjSession();
741 }
742 if (!$this->form instanceof ilPropertyFormGUI) {
743 $this->initForm('create');
744 }
745 return $this->form;
746 }
This class represents a property form user interface.

References $form, ILIAS\Repository\form(), and initForm().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initForm()

ilObjSessionGUI::initForm ( string  $a_mode)
protected

Definition at line 1291 of file class.ilObjSessionGUI.php.

1291 : bool
1292 {
1293 if ($this->form instanceof ilPropertyFormGUI) {
1294 return true;
1295 }
1296 $ilUser = $this->user;
1298 $this->lng->loadLanguageModule('dateplaner');
1299
1300 $this->form = new ilPropertyFormGUI();
1301 $this->form->setMultipart(true);
1302 $this->form->setTableWidth('600px');
1303 $this->form->setFormAction($this->ctrl->getFormAction($this));
1304 $this->form->setMultipart(true);
1305
1306 $this->form = $this->initDidacticTemplate($this->form);
1307
1308 $this->lng->loadLanguageModule('dateplaner');
1309 $dur = new ilDateDurationInputGUI($this->lng->txt('cal_fullday'), 'event');
1310 $dur->setRequired(true);
1311 $dur->enableToggleFullTime(
1312 $this->lng->txt('event_fulltime_info'),
1313 $this->object->getFirstAppointment()->enabledFulltime()
1314 );
1315 $dur->setShowTime(true);
1316 $dur->setStart($this->object->getFirstAppointment()->getStart());
1317 $dur->setEnd($this->object->getFirstAppointment()->getEnd());
1318
1319 $this->form->addItem($dur);
1320
1321
1322 // Recurrence
1323 if ($a_mode == 'create') {
1324 if (!is_object($this->rec)) {
1325 $this->rec = new ilEventRecurrence();
1326 }
1327 $rec = new ilRecurrenceInputGUI($this->lng->txt('cal_recurrences'), 'frequence');
1328 $rec->allowUnlimitedRecurrences(false);
1329 $rec->setRecurrence($this->rec);
1330 $this->form->addItem($rec);
1331
1332 // #14547
1333 $lp = new ilCheckboxInputGUI($this->lng->txt("sess_lp_preset"), "lp_preset");
1334 $lp->setInfo($this->lng->txt("sess_lp_preset_info"));
1335 $lp->setChecked(true);
1336 $this->form->addItem($lp);
1337 }
1338
1339 $section = new ilFormSectionHeaderGUI();
1340 $section->setTitle($this->lng->txt('event_section_information'));
1341 $this->form->addItem($section);
1342
1343 // title
1344 $title = new ilTextInputGUI($this->lng->txt('event_title'), 'title');
1345 $title->setRequired(true);
1346 $title->setValue($this->object->getTitle());
1347 $title->setSize(50);
1348 $title->setMaxLength(70);
1349 $this->form->addItem($title);
1350
1351 // desc
1352 $desc = new ilTextAreaInputGUI($this->lng->txt('event_desc'), 'desc');
1353 $desc->setValue($this->object->getLongDescription());
1354 $desc->setRows(4);
1355 $desc->setCols(50);
1356 $this->form->addItem($desc);
1357
1358 // location
1359 $desc = new ilTextAreaInputGUI($this->lng->txt('event_location'), 'location');
1360 $desc->setValue($this->object->getLocation());
1361 $desc->setRows(4);
1362 $desc->setCols(50);
1363 $this->form->addItem($desc);
1364
1365 // workflow
1366 $details = new ilTextAreaInputGUI($this->lng->txt('event_details_workflow'), 'details');
1367 $details->setValue($this->object->getDetails());
1368 $details->setCols(50);
1369 $details->setRows(4);
1370 $this->form->addItem($details);
1371
1372 if ($a_mode == 'create') {
1373 $this->record_gui = new ilAdvancedMDRecordGUI(
1375 'sess'
1376 );
1377 $this->record_gui->setRefId($this->requested_ref_id);
1378 $this->record_gui->setPropertyForm($this->form);
1379 $this->record_gui->parse();
1380 } elseif ($this->checkPermissionBool('edit_metadata')) {
1381 $this->record_gui = new ilAdvancedMDRecordGUI(
1383 'sess',
1384 $this->object->getId()
1385 );
1386 $this->record_gui->setPropertyForm($this->form);
1387 $this->record_gui->parse();
1388 }
1389
1390
1391 // section
1392 $section = new ilFormSectionHeaderGUI();
1393 $section->setTitle($this->lng->txt('event_tutor_data'));
1394 $this->form->addItem($section);
1395
1396 // name
1397 $tutor_name = new ilTextInputGUI($this->lng->txt('tutor_name'), 'tutor_name');
1398 $tutor_name->setValue($this->object->getName());
1399 $tutor_name->setSize(20);
1400 $tutor_name->setMaxLength(70);
1401 $this->form->addItem($tutor_name);
1402
1403 // email
1404 $tutor_email = new ilTextInputGUI($this->lng->txt('tutor_email'), 'tutor_email');
1405 $tutor_email->setValue($this->object->getEmail());
1406 $tutor_email->setSize(20);
1407 $tutor_email->setMaxLength(70);
1408 $this->form->addItem($tutor_email);
1409
1410 // phone
1411 $tutor_phone = new ilTextInputGUI($this->lng->txt('tutor_phone'), 'tutor_phone');
1412 $tutor_phone->setValue($this->object->getPhone());
1413 $tutor_phone->setSize(20);
1414 $tutor_phone->setMaxLength(70);
1415 $this->form->addItem($tutor_phone);
1416
1417 $section = new ilFormSectionHeaderGUI();
1418 $section->setTitle($this->lng->txt('sess_section_reg'));
1419 $this->form->addItem($section);
1420
1422 $this,
1423 $this->object,
1424 array(
1430 )
1431 );
1432 $reg_settings->addMembershipFormElements($this->form, '');
1433
1434
1435 $section = new ilFormSectionHeaderGUI();
1436 $section->setTitle($this->lng->txt('event_assign_files'));
1437 $this->form->addItem($section);
1438
1439 $files = new ilFileWizardInputGUI($this->lng->txt('objs_file'), 'files');
1440 $files->setFilenames(array(0 => ''));
1441 $this->form->addItem($files);
1442
1443 $section = new ilFormSectionHeaderGUI();
1444 $section->setTitle($this->lng->txt('sess_setting_header_presentation'));
1445 $this->form->addItem($section);
1446
1447 $object_service->commonSettings()->legacyForm($this->form, $this->object)->addTileImage();
1448
1449 $features = new ilFormSectionHeaderGUI();
1450 $features->setTitle($this->lng->txt('obj_features'));
1451 $this->form->addItem($features);
1453 $this->object->getId(),
1454 $this->form,
1455 array(
1457 )
1458 );
1459
1460 $gallery = new ilCheckboxInputGUI($this->lng->txt('sess_members_gallery'), 'show_members');
1461 $gallery->setChecked($this->object->getShowMembers());
1462 $gallery->setInfo($this->lng->txt('sess_show_participants_info'));
1463 $this->form->addItem($gallery);
1464
1465
1466 // Show mail to members type
1467 $mail_type = new ilRadioGroupInputGUI($this->lng->txt('sess_mail_type'), 'mail_type');
1468 $mail_type->setValue((string) $this->object->getMailToMembersType());
1469
1470 $mail_tutors = new ilRadioOption(
1471 $this->lng->txt('sess_mail_admins_only'),
1473 $this->lng->txt('sess_mail_admins_only_info')
1474 );
1475 $mail_type->addOption($mail_tutors);
1476
1477 $mail_all = new ilRadioOption(
1478 $this->lng->txt('sess_mail_all'),
1480 $this->lng->txt('sess_mail_all_info')
1481 );
1482 $mail_type->addOption($mail_all);
1483 $this->form->addItem($mail_type);
1484
1485
1486
1487 switch ($a_mode) {
1488 case 'create':
1489 $this->form->setTitle($this->lng->txt('event_table_create'));
1490
1491 $this->form->addCommandButton('save', $this->lng->txt('event_btn_add'));
1492 $this->form->addCommandButton('saveAndAssignMaterials', $this->lng->txt('event_btn_add_edit'));
1493 $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
1494
1495 return true;
1496
1497 case 'edit':
1498 $this->form->setTitle($this->lng->txt('event_table_update'));
1499
1500 $this->form->addCommandButton('update', $this->lng->txt('save'));
1501 $this->form->addCommandButton('cancelEdit', $this->lng->txt('cancel'));
1502
1503 return true;
1504 }
1505 return true;
1506 }
setRecurrence(int $a_type)
set type of recurrence @access public
This class represents a checkbox property in a property form.
input GUI for a time span (start and end date)
This class represents a file wizard property in a property form.
This class represents a section header in a property form.
ilObjectService $object_service
ilEventRecurrence $rec
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
initDidacticTemplate(ilPropertyFormGUI $form)
static initServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
This class represents a property in a property form.
This class represents an option in a radio group.
This class represents an input GUI for recurring events/appointments (course events or calendar appoi...
This class represents a text area property in a property form.
This class represents a text property in a property form.

References $files, $object_service, $rec, $user, ilObjectGUI\checkPermissionBool(), ilObjectService\commonSettings(), ILIAS\Repository\ctrl(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, ILIAS\Repository\form(), ilObjectGUI\initDidacticTemplate(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ILIAS\Repository\lng(), ilObjSession\MAIL_ALLOWED_ADMIN, ilObjSession\MAIL_ALLOWED_ALL, ilAdvancedMDRecordGUI\MODE_EDITOR, ILIAS\Repository\object(), ilMembershipRegistrationSettings\REGISTRATION_LIMITED_USERS, ilCalendarRecurrence\setRecurrence(), ilMembershipRegistrationSettings\TYPE_DIRECT, ilMembershipRegistrationSettings\TYPE_NONE, ilMembershipRegistrationSettings\TYPE_REQUEST, and ilMembershipRegistrationSettings\TYPE_TUTOR.

Referenced by editObject(), executeCommand(), initCreateForm(), saveObject(), and updateObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ joinObject()

ilObjSessionGUI::joinObject ( )

Definition at line 377 of file class.ilObjSessionGUI.php.

377 : void
378 {
379 $ilUser = $this->user;
380
381 $this->checkPermission('read');
382
383 if ($ilUser->isAnonymous()) {
384 $this->ctrl->redirect($this, 'infoScreen');
385 }
386
387 if (ilEventParticipants::_isRegistered($ilUser->getId(), $this->object->getId())) {
388 ilSession::set("sess_hide_info", true);
389 ilEventParticipants::_unregister($ilUser->getId(), $this->object->getId());
390 $this->tpl->setOnScreenMessage('success', $this->lng->txt('event_unregistered'), true);
391 } else {
392 ilEventParticipants::_register($ilUser->getId(), $this->object->getId());
393 $this->tpl->setOnScreenMessage('success', $this->lng->txt('event_registered'), true);
394 }
395
396 $this->ctrl->redirect($this, 'infoScreen');
397 }
static _isRegistered(int $a_usr_id, int $a_event_id)
static _unregister(int $a_usr_id, int $a_event_id)
static _register(int $a_usr_id, int $a_event_id)
static set(string $a_var, $a_val)
Set a value.

References $user, ilEventParticipants\_isRegistered(), ilEventParticipants\_register(), ilEventParticipants\_unregister(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilSession\set().

+ Here is the call graph for this function:

◆ load()

ilObjSessionGUI::load ( )
protected

Definition at line 1508 of file class.ilObjSessionGUI.php.

1508 : void
1509 {
1510 $event = $this->form->getItemByPostVar('event');
1511 if ($event->getStart() && $event->getEnd()) {
1512 $this->object->getFirstAppointment()->setStartingTime($event->getStart()->get(IL_CAL_UNIX));
1513 $this->object->getFirstAppointment()->setEndingTime($event->getStart()->get(IL_CAL_UNIX));
1514 $this->object->getFirstAppointment()->setStart($event->getStart());
1515 $this->object->getFirstAppointment()->setEnd($event->getEnd());
1516 $this->object->getFirstAppointment()->toggleFulltime($event->getStart() instanceof ilDate);
1517 }
1518
1519 $this->object->setTitle($this->form->getInput('title'));
1520 $this->object->setDescription($this->form->getInput('desc'));
1521 $this->object->setLocation($this->form->getInput('location'));
1522 $this->object->setName($this->form->getInput('tutor_name'));
1523 $this->object->setPhone($this->form->getInput('tutor_phone'));
1524 $this->object->setEmail($this->form->getInput('tutor_email'));
1525 $this->object->setDetails($this->form->getInput('details'));
1526
1527 $this->object->setRegistrationNotificationEnabled((bool) $this->form->getInput('registration_notification'));
1528 $this->object->setRegistrationNotificationOption($this->form->getInput('notification_option'));
1529
1530 $this->object->setRegistrationType((int) $this->form->getInput('registration_type'));
1531
1532 switch ($this->object->getRegistrationType()) {
1534 $this->object->enableCannotParticipateOption((bool) $this->form->getInput('show_cannot_participate_direct'));
1535 break;
1537 $this->object->enableCannotParticipateOption((bool) $this->form->getInput('show_cannot_participate_request'));
1538 break;
1539 default:
1540 $this->object->enableCannotParticipateOption(false);
1541 break;
1542 }
1543
1544 // $this->object->setRegistrationMinUsers((int) $this->form->getInput('registration_min_members'));
1545 $this->object->setRegistrationMaxUsers((int) $this->form->getInput('registration_max_members'));
1546 $this->object->enableRegistrationUserLimit((int) $this->form->getInput('registration_membership_limited'));
1547 $this->object->setShowMembers((bool) $this->form->getInput('show_members'));
1548 $this->object->setMailToMembersType((int) $this->form->getInput('mail_type'));
1549
1550 switch ((int) $this->form->getInput('waiting_list')) {
1551 case 2:
1552 $this->object->enableRegistrationWaitingList(true);
1553 $this->object->setWaitingListAutoFill(true);
1554 break;
1555
1556 case 1:
1557 $this->object->enableRegistrationWaitingList(true);
1558 $this->object->setWaitingListAutoFill(false);
1559 break;
1560
1561 default:
1562 $this->object->enableRegistrationWaitingList(false);
1563 $this->object->setWaitingListAutoFill(false);
1564 break;
1565 }
1566 }
Class for single dates.
ilAppEventHandler $event

References $event, ILIAS\Repository\form(), IL_CAL_UNIX, ILIAS\Repository\object(), ilMembershipRegistrationSettings\TYPE_DIRECT, and ilMembershipRegistrationSettings\TYPE_REQUEST.

Referenced by saveObject(), and updateObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadRecurrenceSettings()

ilObjSessionGUI::loadRecurrenceSettings ( )
protected

Definition at line 1568 of file class.ilObjSessionGUI.php.

1568 : void
1569 {
1570 $this->rec = new ilEventRecurrence();
1571
1572 switch ($this->form->getInput('frequence')) {
1574 $this->rec->setFrequenceType($this->form->getInput('frequence'));
1575 $this->rec->setInterval((int) $this->form->getInput('count_DAILY'));
1576 break;
1577
1579 $this->rec->setFrequenceType($this->form->getInput('frequence'));
1580 $this->rec->setInterval((int) $this->form->getInput('count_WEEKLY'));
1581 if (is_array($this->form->getInput('byday_WEEKLY'))) {
1582 $this->rec->setBYDAY(ilUtil::stripSlashes(implode(',', $this->form->getInput('byday_WEEKLY'))));
1583 }
1584 break;
1585
1587 $this->rec->setFrequenceType($this->form->getInput('frequence'));
1588 $this->rec->setInterval((int) $this->form->getInput('count_MONTHLY'));
1589 switch ((int) $this->form->getInput('subtype_MONTHLY')) {
1590 case 0:
1591 // nothing to do;
1592 break;
1593
1594 case 1:
1595 switch ((int) $this->form->getInput('monthly_byday_day')) {
1596 case 8:
1597 // Weekday
1598 $this->rec->setBYSETPOS($this->form->getInput('monthly_byday_num'));
1599 $this->rec->setBYDAY('MO,TU,WE,TH,FR');
1600 break;
1601
1602 case 9:
1603 // Day of month
1604 $this->rec->setBYMONTHDAY($this->form->getInput('monthly_byday_num'));
1605 break;
1606
1607 default:
1608 $this->rec->setBYDAY(($this->form->getInput('monthly_byday_num') . $this->form->getInput('monthly_byday_day')));
1609 break;
1610 }
1611 break;
1612
1613 case 2:
1614 $this->rec->setBYMONTHDAY($this->form->getInput('monthly_bymonthday'));
1615 break;
1616 }
1617 break;
1618
1620 $this->rec->setFrequenceType($this->form->getInput('frequence'));
1621 $this->rec->setInterval((int) $this->form->getInput('count_YEARLY'));
1622 switch ((int) $this->form->getInput('subtype_YEARLY')) {
1623 case 0:
1624 // nothing to do;
1625 break;
1626
1627 case 1:
1628 $this->rec->setBYMONTH($this->form->getInput('yearly_bymonth_byday'));
1629 $this->rec->setBYDAY(($this->form->getInput('yearly_byday_num') . $this->form->getInput('yearly_byday')));
1630 break;
1631
1632 case 2:
1633 $this->rec->setBYMONTH($this->form->getInput('yearly_bymonth_by_monthday'));
1634 $this->rec->setBYMONTHDAY($this->form->getInput('yearly_bymonthday'));
1635 break;
1636 }
1637 break;
1638 }
1639
1640 // UNTIL
1641 switch ((int) $this->form->getInput('until_type')) {
1642 case 1:
1643 $this->rec->setFrequenceUntilDate(null);
1644 // nothing to do
1645 break;
1646
1647 case 2:
1648 $this->rec->setFrequenceUntilDate(null);
1649 $this->rec->setFrequenceUntilCount((int) $this->form->getInput('count'));
1650 break;
1651
1652 case 3:
1653 $frequence = $this->form->getItemByPostVar('frequence');
1654 $end = $frequence->getRecurrence()->getFrequenceUntilDate();
1655 $this->rec->setFrequenceUntilCount(0);
1656 $this->rec->setFrequenceUntilDate($end);
1657 break;
1658 }
1659 }

References ILIAS\Repository\form(), ilCalendarRecurrence\FREQ_DAILY, ilCalendarRecurrence\FREQ_MONTHLY, ilCalendarRecurrence\FREQ_WEEKLY, ilCalendarRecurrence\FREQ_YEARLY, and ilUtil\stripSlashes().

Referenced by saveObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ materialsObject()

ilObjSessionGUI::materialsObject ( )

Definition at line 1106 of file class.ilObjSessionGUI.php.

1106 : void
1107 {
1108 $this->tabs_gui->activateTab('materials');
1109
1110 $parent_ref_id = $this->tree->getParentId($this->object->getRefId());
1111 $parent_type = ilObject::_lookupType($parent_ref_id, true);
1112 $parent_gui_class = 'ilObj' . $this->obj_definition->getClassName($parent_type) . 'GUI';
1113 $this->ctrl->setParameterByClass($parent_gui_class, 'ref_id', $parent_ref_id);
1116 $this->getCreatableObjectTypes(),
1117 $parent_gui_class,
1118 $this->object->getRefId()
1119 )
1120 );
1121 $gui->renderToolbarAction();
1122 $this->ctrl->clearParameterByClass($parent_gui_class, 'ref_id');
1123
1124 $this->event_items = new ilEventItems($this->object->getId());
1125
1126 $tbl = new ilSessionMaterialsTableGUI($this, "materials");
1127
1128 $tbl->setDisableFilterHiding(true);
1129
1130 $tbl->addMultiCommand('saveMaterials', $this->lng->txt('sess_assign'));
1131 $tbl->addMultiCommand("removeMaterials", $this->lng->txt("remove"));
1132
1133 $tbl->setTitle($this->lng->txt("event_assign_materials_table"));
1134 $tbl->setDescription($this->lng->txt('event_assign_materials_info'));
1135
1136 $tbl->setMaterialItems($this->event_items->getItems());
1137 $tbl->setContainerRefId($this->getContainerRefId());
1138 $data = $tbl->getDataFromDb();
1139 $tbl->setMaterials($data);
1140
1141 $this->tpl->setContent($tbl->getHTML());
1142 }
Render add new item selector.
buildAddNewItemElements(array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)

References ilObjectGUI\$data, ilObject\_lookupType(), ilObjectGUI\buildAddNewItemElements(), ILIAS\Repository\ctrl(), getContainerRefId(), getCreatableObjectTypes(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ membersObject()

ilObjSessionGUI::membersObject ( )
protected

Definition at line 280 of file class.ilObjSessionGUI.php.

280 : void
281 {
282 $this->ctrl->redirectByClass('ilSessionMembershipGUI', 'participants');
283 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ modifyItemGUI()

ilObjSessionGUI::modifyItemGUI ( ilObjectListGUI  $a_item_list_gui,
array  $a_item_data,
bool  $a_show_path 
)

Definition at line 497 of file class.ilObjSessionGUI.php.

497 : void
498 {
500
501 // if folder is in a course, modify item list gui according to course requirements
502 if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(), 'crs')) {
503 // #10611
504 ilObjectActivation::addListGUIActivationProperty($a_item_list_gui, $a_item_data);
505
506 $course_obj_id = ilObject::_lookupObjId($course_ref_id);
508 $a_item_list_gui,
509 get_class($this),
510 $a_item_data,
511 $a_show_path,
512 $course_ref_id,
513 $course_obj_id,
514 $this->object->getRefId()
515 );
516 }
517 }
static _modifyItemGUI(ilObjectListGUI $a_item_list_gui, string $a_cmd_class, array $a_item_data, bool $a_abo_status, int $a_course_ref_id, int $a_course_obj_id, int $a_parent_ref_id=0)
static addListGUIActivationProperty(ilObjectListGUI $list_gui, array &$item)
Get timing details for list gui.

References $tree, ilObject\_lookupObjId(), ilObjCourseGUI\_modifyItemGUI(), ilObjectActivation\addListGUIActivationProperty(), ilTree\checkForParentType(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ postUpdateMaterials()

ilObjSessionGUI::postUpdateMaterials ( )

redirect to list of materials without offset/page.

Definition at line 1202 of file class.ilObjSessionGUI.php.

1202 : void
1203 {
1204 $tbl = new ilSessionMaterialsTableGUI($this, "materials");
1205 $tbl->setOffset(0);
1206 $tbl->storeNavParameter();//remove offset and go to page 1
1207
1208 $this->tpl->setOnScreenMessage('success', $this->lng->txt('settings_saved'), true);
1209 $this->ctrl->redirect($this, 'materials');
1210 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by removeMaterialsObject(), and saveMaterialsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareOutput()

ilObjSessionGUI::prepareOutput ( bool  $show_sub_objects = true)

Reimplemented from ilObjectGUI.

Definition at line 295 of file class.ilObjSessionGUI.php.

295 : bool
296 {
297 parent::prepareOutput($show_sub_objects);
298
299 if (!$this->getCreationMode()) {
300 $title = strlen($this->object->getTitle()) ? (': ' . $this->object->getTitle()) : '';
301
302 $this->tpl->setTitle(
303 $this->object->getFirstAppointment()->appointmentToString() . $title
304 );
305 }
306 return true;
307 }

References ilObjectGUI\getCreationMode(), and ILIAS\Repository\object().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printAttendanceListObject()

ilObjSessionGUI::printAttendanceListObject ( )
protected

Definition at line 1256 of file class.ilObjSessionGUI.php.

1256 : void
1257 {
1258 $this->checkPermission('manage_members');
1259
1260 $list = $this->initAttendanceList();
1261 $list->initFromForm();
1262 $list->setCallback(array($this, 'getAttendanceListUserData'));
1263
1264 $this->event_part = new ilEventParticipants($this->object->getId());
1265 $list->getFullscreenHTML();
1266 }
class ilEventParticipants

References ilObjectGUI\checkPermission(), initAttendanceList(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ readMemberData()

ilObjSessionGUI::readMemberData ( array  $a_usr_ids)

Used for waiting list.

Definition at line 1815 of file class.ilObjSessionGUI.php.

1815 : array
1816 {
1817 $tmp_data = [];
1818 foreach ($a_usr_ids as $usr_id) {
1819 $tmp_data[$usr_id] = [];
1820 }
1821 return $tmp_data;
1822 }

◆ redirectToParentContentPageObject()

ilObjSessionGUI::redirectToParentContentPageObject ( )
protected

Definition at line 1679 of file class.ilObjSessionGUI.php.

1679 : void
1680 {
1684
1685 $parent_id = $tree->getParentId($this->object->getRefId());
1686
1687 // #11650
1688 $parent_type = ilObject::_lookupType($parent_id, true);
1689
1690 $parent_class = $objDefinition->getClassName($parent_type);
1691 $parent_class = 'ilObj' . $parent_class . 'GUI';
1692
1693 $ctrl->setParameterByClass($parent_class, "ref_id", $parent_id);
1694 $ctrl->redirectByClass($parent_class, "view");
1695 }
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
ilObjectDefinition $objDefinition
getClassName(string $obj_name)

References $ctrl, $objDefinition, $tree, ilObject\_lookupType(), ilObjectDefinition\getClassName(), ilTree\getParentId(), ILIAS\Repository\object(), ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().

+ Here is the call graph for this function:

◆ refuseParticipationObject()

ilObjSessionGUI::refuseParticipationObject ( )
protected

Definition at line 528 of file class.ilObjSessionGUI.php.

528 : void
529 {
530 $this->unregisterObject(true);
531 }
unregisterObject(bool $a_refuse_participation=false)

References unregisterObject().

+ Here is the call graph for this function:

◆ registerObject()

ilObjSessionGUI::registerObject ( )

Definition at line 309 of file class.ilObjSessionGUI.php.

309 : void
310 {
311 $ilUser = $this->user;
312 $ilAppEventHandler = $this->event;
313
314 $this->checkPermission('visible');
315
316 $part = ilParticipants::getInstance($this->getCurrentObject()->getRefId());
317
318 $event_part = new ilEventParticipants($this->getCurrentObject()->getId());
319 $event_part->updateExcusedForUser($ilUser->getId(), false);
320
321 if (
322 $this->getCurrentObject()->isRegistrationUserLimitEnabled() &&
323 $this->getCurrentObject()->getRegistrationMaxUsers() &&
324 (count($event_part->getRegisteredParticipants()) >= $this->getCurrentObject()->getRegistrationMaxUsers())
325 ) {
326 if (!$this->getCurrentObject()->isRegistrationWaitingListEnabled()) {
327 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('sess_reg_max_users_exceeded'), true);
328 $this->ctrl->redirect($this, 'infoScreen');
329 }
330 $wait = new ilSessionWaitingList($this->getCurrentObject()->getId());
331 $wait->addToList($ilUser->getId());
332 $this->ctrl->redirect($this, 'infoScreen');
333 }
334
335
336 switch ($this->getCurrentObject()->getRegistrationType()) {
338 $this->ctrl->redirect($this, 'info');
339 break;
340
342 $part->register($ilUser->getId());
343 $this->tpl->setOnScreenMessage('success', $this->lng->txt('event_registered'), true);
344
345 $ilAppEventHandler->raise(
346 "components/ILIAS/Session",
347 'enter',
348 array(
349 'obj_id' => $this->getCurrentObject()->getId(),
350 'ref_id' => $this->getCurrentObject()->getRefId(),
351 'usr_id' => $ilUser->getId()
352 )
353 );
354
355 $this->ctrl->redirect($this, 'infoScreen');
356 break;
357
359 $this->tpl->setOnScreenMessage('success', $this->lng->txt('sess_registered_confirm'), true);
360 $part->addSubscriber($ilUser->getId());
361
362 $ilAppEventHandler->raise(
363 "components/ILIAS/Session",
364 'register',
365 array(
366 'obj_id' => $this->getCurrentObject()->getId(),
367 'ref_id' => $this->getCurrentObject()->getRefId(),
368 'usr_id' => $ilUser->getId()
369 )
370 );
371
372 $this->ctrl->redirect($this, 'infoScreen');
373 break;
374 }
375 }
updateExcusedForUser(int $a_usr_id, bool $a_status)
ilEventParticipants $event_part
static getInstance(int $a_ref_id)

References $event, $event_part, $user, ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ILIAS\Survey\Mode\getId(), ilParticipants\getInstance(), ilObjectGUI\getRefId(), ilEventParticipants\getRegisteredParticipants(), ILIAS\Repository\lng(), ilMembershipRegistrationSettings\TYPE_DIRECT, ilMembershipRegistrationSettings\TYPE_NONE, ilMembershipRegistrationSettings\TYPE_REQUEST, and ilEventParticipants\updateExcusedForUser().

+ Here is the call graph for this function:

◆ removeMaterialsObject()

ilObjSessionGUI::removeMaterialsObject ( )

Definition at line 1173 of file class.ilObjSessionGUI.php.

1173 : void
1174 {
1175 $items_checked = $this->requested_items;
1176
1177 $this->event_items = new ilEventItems($this->object->getId());
1178 $this->event_items->removeItems($items_checked);
1179
1180 $this->postUpdateMaterials();
1181 }
postUpdateMaterials()
redirect to list of materials without offset/page.

References $requested_items, ILIAS\Repository\object(), and postUpdateMaterials().

+ Here is the call graph for this function:

◆ resetFilter()

ilObjSessionGUI::resetFilter ( )

Definition at line 1165 of file class.ilObjSessionGUI.php.

1165 : void
1166 {
1167 $tbl = new ilSessionMaterialsTableGUI($this, "materials");
1168 $tbl->resetOffset(); // sets record offest to 0 (first page)
1169 $tbl->resetFilter(); // clears filter
1170 $this->ctrl->redirect($this, "materials");
1171 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ saveAndAssignMaterialsObject()

ilObjSessionGUI::saveAndAssignMaterialsObject ( )
protected

Definition at line 748 of file class.ilObjSessionGUI.php.

748 : void
749 {
750 $this->saveObject(true);
751 }

References ilObjectGUI\saveObject().

+ Here is the call graph for this function:

◆ saveMaterialsObject()

ilObjSessionGUI::saveMaterialsObject ( )

Definition at line 1183 of file class.ilObjSessionGUI.php.

1183 : void
1184 {
1185 $this->event_items = new ilEventItems($this->object->getId());
1186 $db_items = $this->event_items->getItems();
1187
1188 $list_items_checked = $this->requested_items;
1189 $list_items_checked = array_map('intval', $list_items_checked);
1190
1191 $items_to_save = array_merge($db_items, $list_items_checked);
1192 $items_to_save = array_unique($items_to_save);
1193
1194 $this->event_items->setItems($items_to_save);
1195 $this->event_items->update();
1196 $this->postUpdateMaterials();
1197 }

References $requested_items, ILIAS\Repository\object(), and postUpdateMaterials().

+ Here is the call graph for this function:

◆ saveObject()

ilObjSessionGUI::saveObject ( bool  $redirect_to_materials_on_success = false)

Definition at line 753 of file class.ilObjSessionGUI.php.

753 : void
754 {
755 $ilUser = $this->user;
757
758 $this->object = new ilObjSession();
759
760 $this->ctrl->saveParameter($this, "new_type");
761
762 $this->initForm('create');
763 $this->ilErr->setMessage('');
764 if (!$this->form->checkInput()) {
765 $this->tpl->setOnScreenMessage(
767 $this->lng->txt('err_check_input')
768 );
769 $this->form->setValuesByPost();
770 $this->createObject();
771 return;
772 }
773
774 if ($this->record_gui instanceof \ilAdvancedMDRecordGUI && !$this->record_gui->importEditFormPostValues()
775 ) {
776 $this->ilErr->setMessage($this->lng->txt('err_check_input'));
777 }
778
779 $this->load();
780 $this->loadRecurrenceSettings();
781
782 $this->object->validate();
783 $this->object->getFirstAppointment()->validate();
784
785 if (strlen($this->ilErr->getMessage())) {
786 $this->tpl->setOnScreenMessage('failure', $this->ilErr->getMessage());
787 $this->form->setValuesByPost();
788 $this->createObject();
789 }
790 // Create session
791 $this->object->create();
792 $this->object->createReference();
793 $this->object->putInTree($this->requested_ref_id);
794 $this->object->setPermissions($this->requested_ref_id);
795
797 $this->object->getId(),
798 $this->form,
799 array(
801 )
802 );
803 if ($this->record_gui instanceof \ilAdvancedMDRecordGUI) {
804 $this->record_gui->writeEditForm($this->object->getId());
805 }
806
807
808 // apply didactic template?
809 $dtpl = $this->getDidacticTemplateVar("dtpl");
810 if ($dtpl) {
811 $this->object->applyDidacticTemplate($dtpl);
812 }
813
814 // #14547 - active is default
815 if (!$this->form->getInput("lp_preset")) {
816 $lp_obj_settings = new ilLPObjSettings($this->object->getId());
817 $lp_obj_settings->setMode(ilLPObjSettings::LP_MODE_DEACTIVATED);
818 $lp_obj_settings->update(false);
819 }
820
821 // create appointment
822 $this->object->getFirstAppointment()->setSessionId($this->object->getId());
823 $this->object->getFirstAppointment()->create();
824
825 $this->handleFileUpload();
826
827 $object_service->commonSettings()->legacyForm($this->form, $this->object)->saveTileImage();
828
829 $this->createRecurringSessions((bool) $this->form->getInput("lp_preset"));
830
831 if ($redirect_to_materials_on_success) {
832 $this->ctrl->setParameter($this, 'ref_id', $this->object->getRefId());
833 $this->ctrl->setParameter($this, 'new_type', '');
834 $this->ctrl->redirect($this, 'materials');
835 } else {
836 $this->tpl->setOnScreenMessage('info', $this->lng->txt('event_add_new_event'), true);
837 $this->ctrl->returnToParent($this);
838 }
839 }
importEditFormPostValues()
Load edit form values from post.
createRecurringSessions(bool $a_activate_lp=true)
createObject()
create new object form
static updateServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)

References $object_service, $user, ilObjectService\commonSettings(), ilObjectGUI\createObject(), createRecurringSessions(), ILIAS\Repository\ctrl(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, ILIAS\Repository\form(), ilObjectGUI\getDidacticTemplateVar(), handleFileUpload(), ilAdvancedMDRecordGUI\importEditFormPostValues(), initForm(), ILIAS\Repository\lng(), load(), loadRecurrenceSettings(), ilLPObjSettings\LP_MODE_DEACTIVATED, ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_FAILURE, ILIAS\Repository\object(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().

+ Here is the call graph for this function:

◆ showJoinRequestButton()

ilObjSessionGUI::showJoinRequestButton ( ?ilToolbarGUI  $ilToolbar = null)
protected

Definition at line 533 of file class.ilObjSessionGUI.php.

533 : bool
534 {
535 $ilUser = $this->user;
536
537 if (!$ilToolbar) {
538 $ilToolbar = $this->toolbar;
539 }
540
541 if (!$this->getCurrentObject()->enabledRegistrationForUsers() || $ilUser->isAnonymous()) {
542 return false;
543 }
544
545 $part = ilParticipants::getInstance($this->getCurrentObject()->getRefId());
546
547 $this->ctrl->setParameter($this, "ref_id", $this->getCurrentObject()->getRefId());
548
549 $btn_excused = null;
550 if ($this->object->isCannotParticipateOptionEnabled()) {
551 $btn_excused = $this->ui->factory()->button()->standard(
552 $this->lng->txt('sess_bt_refuse'),
553 $this->ctrl->getLinkTarget($this, 'refuseParticipation')
554 );
555 }
556
557
558 if (ilEventParticipants::_isRegistered($ilUser->getId(), $this->getCurrentObject()->getId())) {
559 if (!is_null($btn_excused)) {
560 $ilToolbar->addComponent($btn_excused);
561 }
562 return true;
563 } elseif ($part->isSubscriber($ilUser->getId())) {
564 if (!is_null($btn_excused)) {
565 $ilToolbar->addComponent($btn_excused);
566 }
567 return true;
568 } elseif (ilSessionWaitingList::_isOnList($ilUser->getId(), $this->getCurrentObject()->getId())) {
569 if (!is_null($btn_excused)) {
570 $ilToolbar->addComponent($btn_excused);
571 }
572 return true;
573 }
574
575 $event_part = new ilEventParticipants($this->getCurrentObject()->getId());
576
577 if (
578 $this->getCurrentObject()->isRegistrationUserLimitEnabled() &&
579 $this->getCurrentObject()->getRegistrationMaxUsers() &&
580 (count($event_part->getRegisteredParticipants()) >= $this->getCurrentObject()->getRegistrationMaxUsers())
581 ) {
582 if ($this->getCurrentObject()->isRegistrationWaitingListEnabled()) {
583 $this->tpl->setOnScreenMessage('info', $this->lng->txt('sess_reg_max_users_exceeded_wl'));
584 $btn_attend = $this->ui->factory()->button()->primary(
585 $this->lng->txt("mem_add_to_wl"),
586 $this->ctrl->getLinkTargetByClass(array("ilRepositoryGUI", "ilObjSessionGUI"), "register")
587 );
588 $ilToolbar->addComponent($btn_attend);
589 if (!$event_part->isExcused($ilUser->getId()) && !is_null($btn_excused)) {
590 $ilToolbar->addComponent($btn_excused);
591 }
592 } else {
593 $this->tpl->setOnScreenMessage('info', $this->lng->txt('sess_reg_max_users_exceeded'));
594 }
595 return true;
596 } elseif (is_null(ilSession::get("sess_hide_info"))) {
597 $this->tpl->setOnScreenMessage('info', $this->lng->txt('sess_join_info'));
598 $btn_attend = $this->ui->factory()->button()->primary(
599 $this->lng->txt("join_session"),
600 $this->ctrl->getLinkTargetByClass(array("ilRepositoryGUI", "ilObjSessionGUI"), "register")
601 );
602 $ilToolbar->addComponent($btn_attend);
603 if (!$event_part->isExcused($ilUser->getId()) && !is_null($btn_excused)) {
604 $ilToolbar->addComponent($btn_excused);
605 }
606 return true;
607 }
608 return false;
609 }
static get(string $a_var)
static _isOnList(int $a_usr_id, int $a_obj_id)

References $event_part, $toolbar, $user, ilWaitingList\_isOnList(), ilEventParticipants\_isRegistered(), ILIAS\Repository\ctrl(), ilSession\get(), ILIAS\Survey\Mode\getId(), ilParticipants\getInstance(), ilObjectGUI\getRefId(), ilEventParticipants\getRegisteredParticipants(), ilEventParticipants\isExcused(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\ui().

Referenced by showJoinRequestButtonInCalendar().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showJoinRequestButtonInCalendar()

ilObjSessionGUI::showJoinRequestButtonInCalendar ( ilToolbarGUI  $a_ilToolbar)

show join request This method is only needed to keep showJoinRequestButton method protected.

Definition at line 523 of file class.ilObjSessionGUI.php.

523 : bool
524 {
525 return $this->showJoinRequestButton($a_ilToolbar);
526 }
showJoinRequestButton(?ilToolbarGUI $ilToolbar=null)

References showJoinRequestButton().

+ Here is the call graph for this function:

◆ unregisterObject()

ilObjSessionGUI::unregisterObject ( bool  $a_refuse_participation = false)

Definition at line 399 of file class.ilObjSessionGUI.php.

399 : void
400 {
401 $ilUser = $this->user;
402 $ilAppEventHandler = $this->event;
405
406 $part = ilSessionParticipants::getInstance($this->object->getRefId());
407 if ($part->isSubscriber($ilUser->getId())) {
408 $part->deleteSubscriber($ilUser->getId());
409 }
410
411 $part->unregister($ilUser->getId());
412
413 if ($a_refuse_participation) {
414 $event_part = new \ilEventParticipants($this->object->getId());
415 $event_part->updateExcusedForUser($ilUser->getId(), true);
416 }
417
418 ilSessionWaitingList::deleteUserEntry($ilUser->getId(), $this->getCurrentObject()->getId());
419
420 // check for visible permission of user
422 $access->clear();
423 $has_access = $access->checkAccessOfUser(
424 $ilUser->getId(),
425 'visible',
426 '',
427 $this->object->getRefId()
428 );
429 if (!$has_access) {
430 $parent = $tree->getParentId($this->object->getRefId());
431 $this->redirectToRefId($parent);
432 return;
433 }
434
435 $ilAppEventHandler->raise(
436 "components/ILIAS/Session",
437 'unregister',
438 array(
439 'obj_id' => $this->getCurrentObject()->getId(),
440 'ref_id' => $this->getCurrentObject()->getRefId(),
441 'usr_id' => $ilUser->getId()
442 )
443 );
444 if ($a_refuse_participation) {
445 $this->tpl->setOnScreenMessage('info', $this->lng->txt('sess_participation_refused_info'), true);
446 } else {
447 $this->tpl->setOnScreenMessage('success', $this->lng->txt('event_unregistered'), true);
448 }
449 $this->ctrl->returnToParent($this);
450 }
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 sav...
static resetCaches()
Reset internal caches.
static getInstance(int $a_ref_id)
static deleteUserEntry(int $a_usr_id, int $a_obj_id)
checkAccessOfUser(int $a_user_id, 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)

References $access, $event, $event_part, $tree, $user, ilRBACAccessHandler\checkAccessOfUser(), ilRBACAccessHandler\clear(), ILIAS\Repository\ctrl(), ilWaitingList\deleteUserEntry(), ILIAS\Survey\Mode\getId(), ilSessionParticipants\getInstance(), ilTree\getParentId(), ilObjectGUI\getRefId(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilObjectGUI\redirectToRefId(), ilRbacSystem\resetCaches(), and ilEventParticipants\updateExcusedForUser().

Referenced by refuseParticipationObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateObject()

ilObjSessionGUI::updateObject ( )

updates object entry in object_data

Reimplemented from ilObjectGUI.

Definition at line 951 of file class.ilObjSessionGUI.php.

951 : void
952 {
954
955 $old_autofill = $this->object->hasWaitingListAutoFill();
956
957 $this->initForm('edit');
958 $this->ilErr->setMessage('');
959 if (!$this->form->checkInput()) {
960 $this->tpl->setOnScreenMessage(
962 $this->lng->txt('err_check_input')
963 );
964 $this->form->setValuesByPost();
965 $this->editObject();
966 return;
967 }
968
969 //Mantis 21972: Choose didactic template on settings screen
970 $old_type = ilDidacticTemplateObjSettings::lookupTemplateId($this->object->getRefId());
971
972 $modified = false;
973 $new_type_info = $this->form->getInput('didactic_type');
974 if ($new_type_info) {
975 $new_type = explode('_', $this->form->getInput('didactic_type'));
976 $new_type = (int) $new_type[1];
977
978 $modified = ($new_type !== $old_type);
979 }
980
981 if (
982 $this->record_gui instanceof \ilAdvancedMDRecordGUI &&
983 !$this->record_gui->importEditFormPostValues()
984 ) {
985 $this->tpl->setOnScreenMessage(
987 $this->lng->txt('err_check_input')
988 );
989 $this->form->setValuesByPost();
990 $this->editObject();
991 }
992
993 $this->load();
994
995 $this->object->validate();
996 $this->object->getFirstAppointment()->validate();
997
998 if (strlen($this->ilErr->getMessage())) {
999 $this->tpl->setOnScreenMessage('failure', $this->ilErr->getMessage());
1000 $this->editObject();
1001 }
1002 // Update event
1003 $this->object->update();
1004 $this->object->getFirstAppointment()->update();
1005
1007 $this->object->getId(),
1008 $this->form,
1009 array(
1011 )
1012 );
1013 if ($this->record_gui instanceof \ilAdvancedMDRecordGUI) {
1014 $this->record_gui->writeEditForm();
1015 }
1016 $this->handleFileUpload();
1017
1018 $object_service->commonSettings()->legacyForm($this->form, $this->object)->saveTileImage();
1019
1020 // if autofill has been activated trigger process
1021 if (!$old_autofill &&
1022 $this->object->hasWaitingListAutoFill()) {
1023 $this->object->handleAutoFill();
1024 }
1025
1026 //Mantis 21972: Choose didactic template on settings screen
1027 if (!$modified) {
1028 $this->tpl->setOnScreenMessage('success', $this->lng->txt('event_updated'), true);
1029 $this->ctrl->redirect($this, 'edit');
1030 return;
1031 }
1032
1033 if ($new_type == 0) {
1034 $new_type_txt = $this->lng->txt('il_sess_status_open');
1035 } else {
1036 $dtpl = new ilDidacticTemplateSetting($new_type);
1037 $new_type_txt = $dtpl->getPresentationTitle($this->lng->getLangKey());
1038 }
1039 $this->tabs_gui->activateTab('settings');
1040
1041 $confirm = new ilConfirmationGUI();
1042 $confirm->setFormAction($this->ctrl->getFormAction($this));
1043 $confirm->setHeaderText($this->lng->txt('sess_warn_sess_type_changed'));
1044 $confirm->addItem(
1045 'sess_type',
1046 (string) $new_type,
1047 $this->lng->txt('sess_info_new_sess_type') . ': ' . $new_type_txt
1048 );
1049 $confirm->setConfirm($this->lng->txt('sess_change_type'), 'updateSessionType');
1050 $confirm->setCancel($this->lng->txt('cancel'), 'edit');
1051
1052 $this->tpl->setContent($confirm->getHTML());
1053 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $object_service, ilObjectService\commonSettings(), ILIAS\Repository\ctrl(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, editObject(), ILIAS\Repository\form(), handleFileUpload(), ilAdvancedMDRecordGUI\importEditFormPostValues(), initForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), load(), ilDidacticTemplateObjSettings\lookupTemplateId(), ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_FAILURE, ILIAS\Repository\object(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().

+ Here is the call graph for this function:

◆ updateSessionTypeObject()

ilObjSessionGUI::updateSessionTypeObject ( )

change session type

Definition at line 1058 of file class.ilObjSessionGUI.php.

1058 : void
1059 {
1061 $this->object->getRefId(),
1062 (int) $this->http->request()->getParsedBody()['sess_type']
1063 );
1064
1065 $this->tpl->setOnScreenMessage('success', $this->lng->txt('settings_saved'), true);
1066 $this->ctrl->redirect($this, 'edit');
1067 }
static switchTemplate(int $a_ref_id, int $a_new_tpl_id)

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilDidacticTemplateUtils\switchTemplate().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilObjSessionGUI::$access
protected

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

Referenced by executeCommand(), getTabs(), and unregisterObject().

◆ $container_obj_id

int ilObjSessionGUI::$container_obj_id = 0
protected

Definition at line 57 of file class.ilObjSessionGUI.php.

◆ $container_ref_id

int ilObjSessionGUI::$container_ref_id = 0
protected

Definition at line 56 of file class.ilObjSessionGUI.php.

Referenced by getContainerRefId().

◆ $ctrl

ilCtrl ilObjSessionGUI::$ctrl

◆ $event

ilAppEventHandler ilObjSessionGUI::$event
protected

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

Referenced by load(), registerObject(), and unregisterObject().

◆ $event_items

ilEventItems ilObjSessionGUI::$event_items = null
protected

Definition at line 61 of file class.ilObjSessionGUI.php.

Referenced by afterSaveCallback().

◆ $event_part

ilEventParticipants ilObjSessionGUI::$event_part = null
protected

◆ $form

ilPropertyFormGUI ilObjSessionGUI::$form = null
protected

Definition at line 58 of file class.ilObjSessionGUI.php.

Referenced by attendanceListObject(), executeCommand(), and initCreateForm().

◆ $help

ilHelpGUI ilObjSessionGUI::$help
protected

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

Referenced by getTabs().

◆ $ilErr

ilErrorHandling ilObjSessionGUI::$ilErr
protected

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

◆ $lng

ilLanguage ilObjSessionGUI::$lng

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

Referenced by _goto().

◆ $locator

ilLocatorGUI ilObjSessionGUI::$locator
protected

Definition at line 53 of file class.ilObjSessionGUI.php.

Referenced by addLocatorItems().

◆ $objDefinition

ilObjectDefinition ilObjSessionGUI::$objDefinition

Definition at line 51 of file class.ilObjSessionGUI.php.

Referenced by redirectToParentContentPageObject().

◆ $object_service

ilObjectService ilObjSessionGUI::$object_service
protected

Definition at line 50 of file class.ilObjSessionGUI.php.

Referenced by initForm(), saveObject(), and updateObject().

◆ $rbacreview

ilRbacReview ilObjSessionGUI::$rbacreview
protected

Definition at line 54 of file class.ilObjSessionGUI.php.

Referenced by getDefaultMemberRole(), and getLocalRoles().

◆ $rec

ilEventRecurrence ilObjSessionGUI::$rec = null
protected

Definition at line 60 of file class.ilObjSessionGUI.php.

Referenced by initForm().

◆ $record_gui

ilAdvancedMDRecordGUI ilObjSessionGUI::$record_gui = null
protected

Definition at line 59 of file class.ilObjSessionGUI.php.

◆ $refinery

ILIAS Refinery Factory ilObjSessionGUI::$refinery
protected

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

◆ $requested_file_id

int ilObjSessionGUI::$requested_file_id = 0
protected

Definition at line 65 of file class.ilObjSessionGUI.php.

◆ $requested_items

array ilObjSessionGUI::$requested_items = []
protected

Definition at line 69 of file class.ilObjSessionGUI.php.

Referenced by removeMaterialsObject(), and saveMaterialsObject().

◆ $requested_offset

int ilObjSessionGUI::$requested_offset = 0
protected

Definition at line 66 of file class.ilObjSessionGUI.php.

◆ $requested_ref_id

int ilObjSessionGUI::$requested_ref_id = 0
protected

Definition at line 63 of file class.ilObjSessionGUI.php.

Referenced by addLocatorItems().

◆ $requested_sort_by

string ilObjSessionGUI::$requested_sort_by = ""
protected

Definition at line 67 of file class.ilObjSessionGUI.php.

◆ $requested_sort_order

string ilObjSessionGUI::$requested_sort_order = ""
protected

Definition at line 68 of file class.ilObjSessionGUI.php.

◆ $requested_user_id

int ilObjSessionGUI::$requested_user_id = 0
protected

Definition at line 64 of file class.ilObjSessionGUI.php.

◆ $tabs_gui

ilTabsGUI ilObjSessionGUI::$tabs_gui
protected

Definition at line 52 of file class.ilObjSessionGUI.php.

Referenced by attendanceListObject(), and getTabs().

◆ $toolbar

ilToolbarGUI ilObjSessionGUI::$toolbar
protected

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

Referenced by showJoinRequestButton().

◆ $tpl

ilGlobalTemplateInterface ilObjSessionGUI::$tpl

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

Referenced by attendanceListObject().

◆ $tree

◆ $ui

ILIAS DI UIServices ilObjSessionGUI::$ui
protected

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

◆ $upload

ILIAS FileUpload FileUpload ilObjSessionGUI::$upload
protected

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

Referenced by handleFileUpload().

◆ $user


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