ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjectGUI Class Reference

Class ilObjectGUI Basic methods of all Output classes. More...

+ Inheritance diagram for ilObjectGUI:
+ Collaboration diagram for ilObjectGUI:

Public Member Functions

 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 _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Data Fields

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

 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 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 = ""
 

Private Member Functions

 getMultiObjectPropertiesManipulator ()
 
 buildRefIdsFromData (array $data)
 
 buildDidacticTemplateOptions ()
 
 buildImportModal ()
 
 buildImportTypeSelectorModal (?string $file_to_import=null, ?string $upload_file_name=null)
 
 buildImportFormInputs ()
 
 buildImportTypeSelectorInputs (?string $file_to_import=null, ?string $file_name_in_temp_dir=null)
 
 retrieveAndCheckImportData ()
 
 retrieveAndCheckImportTypeData ()
 
 showImportTypeSelectorModal (?string $file_to_import=null, ?string $path_to_uploaded_file_in_temp_dir=null)
 
 retrieveFilesAndUploadTypeFromData (array $data)
 
 extractFileTypeFromImportFilename (string $filename)
 
 getFileToImportFromImportFormData (array $data)
 
 buildDeleletionModal (array $request_ids)
 
 buildDeletionModalItems (array $ref_ids)
 
 buildInputsForAdditionalDeletionReferences (int $ref_id, ilPathGUI $path_gui)
 
 initAddNewItemElementsFromNewItemGroups (string $create_target_class, array $new_item_groups, array $new_item_groups_subitems, array $subtypes)
 
 initAddnewItemElementsFromDefaultGroups (string $create_target_class, array $default_groups, array $subtypes)
 
 buildSubItemsForGroup (string $create_target_class, array $obj_types_in_group, array $subtypes)
 
 checkWritePermissionOnRefIdArray (array $ref_ids)
 
 getTranslatedObjectTypeNameFromItemArray (array $item_array)
 

Private Attributes

ilObjectRequestRetriever $retriever
 
MultiPropertiesManipulator $multi_object_manipulator
 
RoundTrip $import_modal = null
 
RoundTrip $import_type_selector_modal = null
 

Detailed Description

Class ilObjectGUI Basic methods of all Output classes.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Member Function Documentation

◆ _gotoRepositoryNode()

static ilObjectGUI::_gotoRepositoryNode ( int  $ref_id,
string  $cmd = "" 
)
static

Definition at line 2011 of file class.ilObjectGUI.php.

2011 : void
2012 {
2013 global $DIC;
2014
2015 $ctrl = $DIC->ctrl();
2016 $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", $ref_id);
2017 $ctrl->redirectByClass("ilRepositoryGUI", $cmd);
2018 }
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
global $DIC
Definition: shib_login.php:26

References $DIC, $ref_id, ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().

Referenced by ilObjFolderGUI\_goto(), ilObjFileGUI\_goto(), ilObjCourseGUI\_goto(), ilObjChatroomGUI\_goto(), ilObjChatroomAdminGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjDataCollectionGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjSessionGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilObjWikiGUI\_goto(), ilObjGroupGUI\_goto(), ilObjIndividualAssessmentGUI\_goto(), ilObjContentPageGUI\_goto(), ilObjLearningSequenceGUI\_goto(), and ilObjLearningSequence\_goto().

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

◆ _gotoRepositoryRoot()

static ilObjectGUI::_gotoRepositoryRoot ( bool  $raise_error = false)
static

Goto repository root.

Parameters

return

Definition at line 1992 of file class.ilObjectGUI.php.

1992 : void
1993 {
1994 global $DIC;
1995
1996 $ilAccess = $DIC->access();
1997 $ilErr = $DIC["ilErr"];
1998 $lng = $DIC->language();
1999 $ctrl = $DIC->ctrl();
2000
2001 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
2002 $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", ROOT_FOLDER_ID);
2003 $ctrl->redirectByClass("ilRepositoryGUI");
2004 }
2005
2006 if ($raise_error) {
2007 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
2008 }
2009 }
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...
ilLanguage $lng
const ROOT_FOLDER_ID
Definition: constants.php:32
$ilErr
Definition: raiseError.php:33

References $DIC, $ilErr, $lng, ilCtrl\redirectByClass(), ROOT_FOLDER_ID, and ilCtrl\setParameterByClass().

Referenced by ilObjFileGUI\_goto(), ilObjCourseGUI\_goto(), ilObjTestGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjDataCollectionGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjItemGroupGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjRootFolderGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSessionGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjLearningSequence\_goto(), ilObjBibliographicGUI\handleNonAccess(), and ilObjFileBasedLMGUI\importFromUploadDir().

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

◆ _gotoSharedWorkspaceNode()

static ilObjectGUI::_gotoSharedWorkspaceNode ( int  $wsp_id)
static

Definition at line 2020 of file class.ilObjectGUI.php.

2020 : void
2021 {
2022 global $DIC;
2023
2024 $ctrl = $DIC->ctrl();
2025 $ctrl->setParameterByClass(ilSharedResourceGUI::class, "wsp_id", $wsp_id);
2026 $ctrl->redirectByClass(ilSharedResourceGUI::class, "");
2027 }

References $DIC, ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().

Referenced by ilObjFileGUI\_goto(), and ilFileStaticURLHandler\handle().

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

◆ addAdminLocatorItems()

ilObjectGUI::addAdminLocatorItems ( bool  $do_not_add_object = false)
protected

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

Reimplemented in ilObjRoleGUI, ilObjRoleTemplateGUI, ilObjTalkTemplateGUI, ilObject2GUI, ilObjLanguageExtGUI, ilObjOrgUnitGUI, ilObjStyleSheetGUI, and ilObjUserGUI.

Definition at line 577 of file class.ilObjectGUI.php.

577 : void
578 {
579 if ($this->admin_mode == self::ADMIN_MODE_SETTINGS) {
580 $this->ctrl->setParameterByClass(
581 "ilobjsystemfoldergui",
582 "ref_id",
584 );
585 $this->locator->addItem(
586 $this->lng->txt("administration"),
587 $this->ctrl->getLinkTargetByClass(["iladministrationgui", "ilobjsystemfoldergui"], "")
588 );
589 if ($this->object && ($this->object->getRefId() != SYSTEM_FOLDER_ID && !$do_not_add_object)) {
590 $this->locator->addItem(
591 $this->object->getTitle(),
592 $this->ctrl->getLinkTarget($this, "view")
593 );
594 }
595 } else {
596 $this->ctrl->setParameterByClass(
597 "iladministrationgui",
598 "ref_id",
599 ""
600 );
601 $this->ctrl->setParameterByClass(
602 "iladministrationgui",
603 "admin_mode",
604 "settings"
605 );
606 $this->ctrl->clearParametersByClass("iladministrationgui");
607 $this->locator->addAdministrationItems();
608 }
609 }
const SYSTEM_FOLDER_ID
Definition: constants.php:35

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\object(), and SYSTEM_FOLDER_ID.

Referenced by prepareOutput().

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

◆ addAdoptContentLinkToToolbar()

ilObjectGUI::addAdoptContentLinkToToolbar ( )
protected

Definition at line 896 of file class.ilObjectGUI.php.

896 : void
897 {
898 $this->toolbar->addComponent(
899 $this->ui_factory->link()->standard(
900 $this->lng->txt('cntr_adopt_content'),
901 $this->ctrl->getLinkTargetByClass(
902 'ilObjectCopyGUI',
903 'adoptContent'
904 )
905 )
906 );
907 }

References ILIAS\Repository\toolbar().

Referenced by ilObjGroupGUI\viewObject().

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

◆ addAvailabilityPeriodButtonToToolbar()

ilObjectGUI::addAvailabilityPeriodButtonToToolbar ( ilToolbarGUI  $toolbar)
protected

Definition at line 961 of file class.ilObjectGUI.php.

962 {
964
966 $this->getMultiObjectPropertiesManipulator()->getAvailabilityPeriodButton()
967 );
968 return $toolbar;
969 }
getMultiObjectPropertiesManipulator()
ilToolbarGUI $toolbar
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addComponent(\ILIAS\UI\Component\Component $a_comp)

References ilToolbarGUI\addComponent(), and ilToolbarGUI\addSeparator().

+ Here is the call graph for this function:

◆ addExternalEditFormCustom()

ilObjectGUI::addExternalEditFormCustom ( ilPropertyFormGUI  $form)

Reimplemented in ilObjBookingPoolGUI, and ilObjTalkTemplateGUI.

Definition at line 1170 of file class.ilObjectGUI.php.

1170 : void
1171 {
1172 // has to be done AFTER setValuesByArray() ...
1173 }

Referenced by ilObjItemGroupGUI\edit(), and ilObjEmployeeTalkGUI\updateObject().

+ Here is the caller graph for this function:

◆ addHeaderAction()

ilObjectGUI::addHeaderAction ( )
protected

Add header action menu.

Reimplemented in ilObjDataCollectionGUI.

Definition at line 469 of file class.ilObjectGUI.php.

469 : void
470 {
471 $this->insertHeaderAction($this->initHeaderAction());
472 }
insertHeaderAction(?ilObjectListGUI $list_gui=null)
Insert header action into main template.
initHeaderAction(?string $sub_type=null, ?int $sub_id=null)
Add header action menu.

References initHeaderAction(), and insertHeaderAction().

Referenced by ilObjContentObjectGUI\doExportHTML(), ilObjContentObjectGUI\doExportXML(), ilObjBibliographicGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjChatroomGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjItemGroupGUI\executeCommand(), ilObjLearningSequenceGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjSCORM2004LearningModuleGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjLinkResourceGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjWorkspaceFolderGUI\executeCommand(), ilObjContentPageGUI\renderHeaderActions(), ilObjContentObjectGUI\showExportOptionsHTML(), and ilObjContentObjectGUI\showExportOptionsXML().

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

◆ addImportButtonToToolbar()

ilObjectGUI::addImportButtonToToolbar ( )
protected

Definition at line 909 of file class.ilObjectGUI.php.

909 : void
910 {
911 $modal = $this->import_modal ?? $this->buildImportModal();
912 $this->toolbar->addComponent(
913 $this->ui_factory->button()->standard(
914 $this->lng->txt('import'),
915 $modal->getShowSignal()
916 )
917 );
918
919 $this->tpl->setVariable(
920 'IL_OBJECT_IMPORT_MODAL',
921 $this->ui_renderer->render(
922 $this->import_type_selector_modal === null
923 ? $modal
924 : [$modal, $this->import_type_selector_modal]
925 )
926 );
927 }

References buildImportModal(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

◆ addLocatorItems()

◆ addToDeskObject()

ilObjectGUI::addToDeskObject ( )

Definition at line 2037 of file class.ilObjectGUI.php.

2037 : void
2038 {
2039 $this->favourites->add(
2040 $this->user->getId(),
2041 $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int())
2042 );
2043 $this->lng->loadLanguageModule("rep");
2044 $this->tpl->setOnScreenMessage("success", $this->lng->txt("rep_added_to_favourites"), true);
2045 $this->ctrl->redirectToURL(ilLink::_getLink($this->requested_ref_id));
2046 }

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

+ Here is the call graph for this function:

◆ afterImport()

ilObjectGUI::afterImport ( ilObject  $new_object)
protected

Post (successful) object import hook.

Reimplemented in ilObjChatroomGUI, ilObjCourseGUI, and ilObjFileBasedLMGUI.

Definition at line 1564 of file class.ilObjectGUI.php.

1564 : void
1565 {
1566 $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
1567 $this->ctrl->returnToParent($this);
1568 }

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

+ Here is the call graph for this function:

◆ afterSave()

◆ afterUpdate()

ilObjectGUI::afterUpdate ( )
protected

Post (successful) object update hook.

Reimplemented in ilObjBookingPoolGUI, ilContainerGUI, and ilObjItemGroupGUI.

Definition at line 1270 of file class.ilObjectGUI.php.

1270 : void
1271 {
1272 $this->tpl->setOnScreenMessage("success", $this->lng->txt("msg_obj_modified"), true);
1273 $this->ctrl->redirect($this, "edit");
1274 }

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

Referenced by ilObjEmployeeTalkGUI\updateObject().

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

◆ assignObject()

ilObjectGUI::assignObject ( )
protected

Reimplemented in ilObjGlossaryGUI, ilObject2GUI, ilObjLanguageExtGUI, ilObjMediaObjectGUI, ilObjSCORM2004LearningModuleGUI, and ilObjSCORMLearningModuleGUI.

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

295 : void
296 {
297 // TODO: it seems that we always have to pass only the ref_id
298 if ($this->id != 0) {
299 if ($this->call_by_reference) {
300 $this->object = ilObjectFactory::getInstanceByRefId($this->id);
301 } else {
302 $this->object = ilObjectFactory::getInstanceByObjId($this->id);
303 }
304 }
305 }
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id

References ilObjectFactory\getInstanceByObjId(), and ilObjectFactory\getInstanceByRefId().

Referenced by ilObjLearningModuleGUI\__construct().

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

◆ buildAddNewItemElements()

ilObjectGUI::buildAddNewItemElements ( array  $subtypes,
string  $create_target_class = ilRepositoryGUI::class,
?int  $redirect_target_ref_id = null 
)
protected

Definition at line 2072 of file class.ilObjectGUI.php.

2076 : array {
2077 if ($subtypes === []) {
2078 return [];
2079 }
2080 if ($redirect_target_ref_id !== null) {
2081 $this->ctrl->setParameterByClass($create_target_class, 'crtcb', (string) $redirect_target_ref_id);
2082 }
2083
2084 $elements = $this->initAddNewItemElementsFromNewItemGroups(
2085 $create_target_class,
2088 $subtypes
2089 );
2090 if ($elements === []) {
2091 $elements = $this->initAddnewItemElementsFromDefaultGroups(
2092 $create_target_class,
2094 $subtypes
2095 );
2096 }
2097
2098 $this->ctrl->clearParameterByClass(self::class, 'crtcb');
2099 return $elements;
2100 }
initAddnewItemElementsFromDefaultGroups(string $create_target_class, array $default_groups, array $subtypes)
initAddNewItemElementsFromNewItemGroups(string $create_target_class, array $new_item_groups, array $new_item_groups_subitems, array $subtypes)

Referenced by ilObjItemGroupGUI\listMaterials(), ilObjSessionGUI\materialsObject(), ilObjCourseGUI\renderAddNewItem(), ilObjFolderGUI\showPossibleSubObjects(), and ilObjLearningSequenceGUI\showPossibleSubObjects().

+ Here is the caller graph for this function:

◆ buildDeleletionModal()

ilObjectGUI::buildDeleletionModal ( array  $request_ids)
private

Definition at line 1720 of file class.ilObjectGUI.php.

1721 {
1722 [$listing_items, $inputs, $has_additional_references] = $this->buildDeletionModalItems($request_ids);
1723
1724 $msg = $this->lng->txt('info_delete_sure');
1725 if (!$this->settings->get('enable_trash')) {
1726 $msg .= "<br/>" . $this->lng->txt('info_delete_warning_no_trash');
1727 }
1728
1729 $content = [
1730 $this->ui_factory->messageBox()->confirmation($msg),
1731 $this->ui_factory->listing()->unordered($listing_items)
1732 ];
1733
1734 if ($has_additional_references) {
1735 $content[] = $this->ui_factory->messageBox()->confirmation(
1736 $this->lng->txt('multiple_reference_deletion_info') . ' '
1737 . $this->lng->txt('rep_multiple_reference_deletion_instruction')
1738 );
1739 }
1740
1741 $this->ctrl->setParameterByClass(static::class, 'id', implode(',', $request_ids));
1742 $target_url = $this->ctrl->getFormActionByClass(static::class, 'confirmedDelete');
1743 $this->ctrl->clearParameterByClass(static::class, 'id');
1744
1745 return $this->ui_factory->modal()->roundtrip(
1746 $this->lng->txt('confirm'),
1747 $content,
1748 $inputs,
1749 $target_url
1750 )->withSubmitLabel($this->lng->txt('delete'));
1751 }
buildDeletionModalItems(array $ref_ids)

References ILIAS\UI\Implementation\Component\Input\$inputs, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().

Referenced by confirmedDeleteObject().

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

◆ buildDeletionModalItems()

ilObjectGUI::buildDeletionModalItems ( array  $ref_ids)
private

Definition at line 1753 of file class.ilObjectGUI.php.

1753 : array
1754 {
1755 $path_gui = new ilPathGUI();
1756 $path_gui->enableTextOnly(true);
1757 $path_gui->enableHideLeaf(false);
1758 return array_reduce(
1759 $ref_ids,
1760 function (array $c, int $v) use ($path_gui): array {
1763 );
1764 $c[1][] = $this->ui_factory->input()->field()->hidden()->withValue($v);
1765
1766 $other_references = $this->buildInputsForAdditionalDeletionReferences($v, $path_gui);
1767 if ($other_references !== []) {
1768 $c[1][] = $this->ui_factory->input()->field()->multiSelect(
1771 ),
1772 $other_references
1773 );
1774 $c[2] = true;
1775 }
1776 return $c;
1777 },
1778 [[], [], false]
1779 );
1780 }
buildInputsForAdditionalDeletionReferences(int $ref_id, ilPathGUI $path_gui)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
$c
Definition: deliver.php:25

References $c, ilObject\_lookupObjId(), and ilObject\_lookupTitle().

+ Here is the call graph for this function:

◆ buildDidacticTemplateOptions()

ilObjectGUI::buildDidacticTemplateOptions ( )
private

Definition at line 856 of file class.ilObjectGUI.php.

856 : array
857 {
858 $this->lng->loadLanguageModule('didactic');
859 $existing_exclusive = false;
860 $options = [];
861 $options['dtpl_0'] = [
862 $this->lng->txt('didactic_default_type'),
863 sprintf(
864 $this->lng->txt('didactic_default_type_info'),
865 $this->lng->txt('objs_' . $this->type)
866 )
867 ];
868
869 $templates = ilDidacticTemplateSettings::getInstanceByObjectType($this->type)->getTemplates();
870 if ($templates) {
871 foreach ($templates as $template) {
872 if ($template->isEffective((int) $this->requested_ref_id)) {
873 $options["dtpl_" . $template->getId()] = [
874 $template->getPresentationTitle(),
875 $template->getPresentationDescription()
876 ];
877
878 if ($template->isExclusive()) {
879 $existing_exclusive = true;
880 }
881 }
882 }
883 }
884
885 return [$existing_exclusive, array_merge($options, $this->retrieveAdditionalDidacticTemplateOptions())];
886 }
static getInstanceByObjectType(string $a_obj_type)
retrieveAdditionalDidacticTemplateOptions()

References ilDidacticTemplateSettings\getInstanceByObjectType(), ILIAS\Repository\lng(), and retrieveAdditionalDidacticTemplateOptions().

Referenced by didacticTemplatesToForm(), and initDidacticTemplate().

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

◆ buildGroup()

ilObjectGUI::buildGroup ( string  $create_target_class,
array  $obj_types_in_group,
string  $title,
array  $subtypes 
)
protected

Definition at line 2175 of file class.ilObjectGUI.php.

2181 $add_new_items_content_array = $this->buildSubItemsForGroup(
2182 $create_target_class,
2183 $obj_types_in_group,
2184 $subtypes
2185 );
2186 if ($add_new_items_content_array === []) {
2187 return null;
2188 }
2189 return new AddNewItemElement(
2191 $title,
2192 null,
2193 null,
2194 $add_new_items_content_array
2195 );
2196 }
buildSubItemsForGroup(string $create_target_class, array $obj_types_in_group, array $subtypes)

Referenced by ilObjTalkTemplateAdministrationGUI\showPossibleSubObjects(), and ilObjOrgUnitGUI\showPossibleSubObjects().

+ Here is the caller graph for this function:

◆ buildImportFormInputs()

ilObjectGUI::buildImportFormInputs ( )
private

Definition at line 1276 of file class.ilObjectGUI.php.

1276 : array
1277 {
1278 $trafo = $this->refinery->custom()->transformation(
1279 function ($vs): array {
1280 if ($vs === null) {
1281 return null;
1282 }
1283 if (!isset($vs[1])) {
1284 return [self::UPLOAD_TYPE_LOCAL => $vs[0]];
1285 } elseif ((int) $vs[1][0] === self::UPLOAD_TYPE_LOCAL) {
1286 return [self::UPLOAD_TYPE_LOCAL => $vs[1][0][0]];
1287 } else {
1288 $upload_factory = new ilImportDirectoryFactory();
1289 $export_upload = $upload_factory->getInstanceForComponent(ilImportDirectoryFactory::TYPE_EXPORT);
1290 $type = $this->extractFileTypeFromImportFilename($vs[1][0]) ?? '';
1291 $file = $export_upload->getAbsolutePathForHash($this->user->getId(), $type, $vs[1][0]);
1292 return [
1293 self::UPLOAD_TYPE_UPLOAD_DIRECTORY => $file
1294 ];
1295 }
1296 }
1297 );
1298
1299 $import_directory_factory = new ilImportDirectoryFactory();
1300 $upload_files = $import_directory_factory->getInstanceForComponent(ilImportDirectoryFactory::TYPE_EXPORT)
1301 ->getFilesFor($this->user->getId());
1302
1303 $field_factory = $this->ui_factory->input()->field();
1304
1305 $file_upload_input = $field_factory->file(new \ImportUploadHandlerGUI(), $this->lng->txt('import_file'))
1306 ->withAcceptedMimeTypes(self::SUPPORTED_IMPORT_MIME_TYPES)
1307 ->withRequired(true)
1308 ->withMaxFiles(1);
1309
1310 if ($upload_files !== []) {
1311 $this->lng->loadLanguageModule('content');
1312
1313 $file_upload_input = $field_factory->switchableGroup(
1314 [
1315 self::UPLOAD_TYPE_LOCAL => $field_factory->group(
1316 [$file_upload_input],
1317 $this->lng->txt('cont_choose_local')
1318 ),
1319 self::UPLOAD_TYPE_UPLOAD_DIRECTORY => $field_factory->group(
1320 [$field_factory->select($this->lng->txt('cont_uploaded_file'), $upload_files)->withRequired(true)],
1321 $this->lng->txt('cont_choose_upload_dir'),
1322 )
1323 ],
1324 $this->lng->txt('cont_choose_file_source')
1325 );
1326 }
1327
1328 return [
1329 'upload' => $file_upload_input->withAdditionalTransformation($trafo)
1330 ];
1331 }
extractFileTypeFromImportFilename(string $filename)

References ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilImportDirectoryFactory\TYPE_EXPORT, and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ buildImportModal()

ilObjectGUI::buildImportModal ( )
private

Definition at line 929 of file class.ilObjectGUI.php.

929 : RoundTrip
930 {
931 return $this->ui_factory->modal()
932 ->roundtrip(
933 $this->lng->txt('import'),
934 [],
935 $this->buildImportFormInputs(),
936 $this->ctrl->getFormAction($this, 'routeImportCmd')
937 )->withSubmitLabel($this->lng->txt('import'));
938 }

References ILIAS\Repository\lng().

Referenced by addImportButtonToToolbar().

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

◆ buildImportTypeSelectorInputs()

ilObjectGUI::buildImportTypeSelectorInputs ( ?string  $file_to_import = null,
?string  $file_name_in_temp_dir = null 
)
private

Definition at line 1333 of file class.ilObjectGUI.php.

1336 : array {
1337 $ff = $this->ui_factory->input()->field();
1338
1339 $possible_sub_objects = array_map(
1340 fn(array $v): string => $this->getTranslatedObjectTypeNameFromItemArray($v),
1341 $this->object->getPossibleSubObjects()
1342 );
1343
1344 asort($possible_sub_objects);
1345
1346 return [
1347 'type' => $ff->select(
1348 $this->lng->txt('select_object_type'),
1349 $possible_sub_objects
1350 )->withRequired(true),
1351 'file_to_import' => $ff->hidden()->withValue($file_to_import),
1352 'temp_file' => $ff->hidden()->withValue($file_name_in_temp_dir)
1353 ];
1354 }
getTranslatedObjectTypeNameFromItemArray(array $item_array)

◆ buildImportTypeSelectorModal()

ilObjectGUI::buildImportTypeSelectorModal ( ?string  $file_to_import = null,
?string  $upload_file_name = null 
)
private

Definition at line 940 of file class.ilObjectGUI.php.

943 : Roundtrip {
944 return $this->ui_factory->modal()
945 ->roundtrip(
946 $this->lng->txt('select_object_type'),
947 [
948 $this->ui_factory->messageBox()->info(
949 $this->lng->txt('select_import_type_info')
950 )
951 ],
952 $this->buildImportTypeSelectorInputs(
953 $file_to_import,
954 $upload_file_name
955 ),
956 $this->ctrl->getFormActionByClass(static::class, 'routeImportCmd')
957 )->withCloseWithKeyboard(false)
958 ->withSubmitLabel($this->lng->txt('import'));
959 }

◆ buildInputsForAdditionalDeletionReferences()

ilObjectGUI::buildInputsForAdditionalDeletionReferences ( int  $ref_id,
ilPathGUI  $path_gui 
)
private

Definition at line 1782 of file class.ilObjectGUI.php.

1782 : array
1783 {
1784 return array_reduce(
1786 function (array $c, int $v) use ($ref_id, $path_gui): array {
1787 if ($v !== $ref_id
1788 && !$this->tree->isDeleted($v)
1789 && $this->access->checkAccess('delete', '', $v)) {
1790 $c[$v] = $path_gui->getPath(ROOT_FOLDER_ID, $v);
1791 }
1792 return $c;
1793 },
1794 []
1795 );
1796 }
static _getAllReferences(int $id)
get all reference ids for object ID

References $c, $ref_id, ilObject\_getAllReferences(), and ilObject\_lookupObjId().

+ Here is the call graph for this function:

◆ buildRefIdsFromData()

ilObjectGUI::buildRefIdsFromData ( array  $data)
private

Definition at line 643 of file class.ilObjectGUI.php.

643 : array
644 {
645 return array_reduce(
646 $data,
647 function (array $c, array|int|null $v): array {
648 if ($v === null) {
649 return $c;
650 }
651
652 if (is_array($v)) {
653 return array_merge(
654 $c,
655 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())->transform($v)
656 );
657 }
658
659 $c[] = $this->refinery->kindlyTo()->int()->transform($v);
660 return $c;
661 },
662 []
663 );
664 }

References $c, $data, and ILIAS\Repository\refinery().

Referenced by confirmedDeleteObject().

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

◆ buildSubItemsForGroup()

ilObjectGUI::buildSubItemsForGroup ( string  $create_target_class,
array  $obj_types_in_group,
array  $subtypes 
)
private

Definition at line 2198 of file class.ilObjectGUI.php.

2202 : array {
2203 $add_new_items_content_array = [];
2204 foreach ($obj_types_in_group as $type) {
2205 if (!array_key_exists($type, $subtypes)) {
2206 continue;
2207 }
2208 $subitem = $subtypes[$type];
2209 $this->ctrl->setParameterByClass($create_target_class, 'new_type', $type);
2210 $add_new_items_content_array[$subitem['pos']] = new AddNewItemElement(
2211 AddNewItemElementTypes::Object,
2213 empty($subitem['plugin'])
2214 ? $this->ui_factory->symbol()->icon()->standard($type, '')
2215 : $this->ui_factory->symbol()->icon()->custom(
2217 ''
2218 ),
2219 new URI(
2220 ILIAS_HTTP_PATH . '/' . $this->ctrl->getLinkTargetByClass($create_target_class, 'create')
2221 )
2222 );
2223 $this->ctrl->clearParameterByClass($create_target_class, 'new_type', $type);
2224 }
2225 ksort($add_new_items_content_array);
2226 return $add_new_items_content_array;
2227 }
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
static getIconForType(string $type)

References ILIAS\Repository\ctrl(), and ilObject\getIconForType().

+ Here is the call graph for this function:

◆ cancelCreation()

ilObjectGUI::cancelCreation ( )

cancel create action and go back to repository parent

Definition at line 1024 of file class.ilObjectGUI.php.

1024 : void
1025 {
1026 $this->ctrl->redirectByClass("ilrepositorygui", "");
1027 }

References ILIAS\Repository\ctrl().

Referenced by ilObjChatroomGUI\executeCommand(), and ilObjLearningSequenceGUI\executeCommand().

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

◆ cancelObject()

ilObjectGUI::cancelObject ( )

cancel action and go back to previous page

Reimplemented in ilObjAuthSettingsGUI, ilObjEmployeeTalkSeriesGUI, ilObjLanguageExtGUI, ilObjMediaObjectGUI, ilObjStyleSheetGUI, ilObjSystemFolderGUI, and ilObjUserGUI.

Definition at line 669 of file class.ilObjectGUI.php.

669 : void
670 {
671 ilSession::clear("saved_post");
672 $this->ctrl->returnToParent($this);
673 }
static clear(string $a_var)

References ilSession\clear(), and ILIAS\Repository\ctrl().

Referenced by ilObjFileBasedLMGUI\cancel().

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

◆ checkPermission()

ilObjectGUI::checkPermission ( string  $perm,
string  $cmd = "",
string  $type = "",
?int  $ref_id = null 
)
protected

Reimplemented in ilObject2GUI.

Definition at line 1942 of file class.ilObjectGUI.php.

1942 : void
1943 {
1944 if (!$this->checkPermissionBool($perm, $cmd, $type, $ref_id)) {
1945 if (!is_int(strpos($_SERVER['PHP_SELF'], 'goto.php'))) {
1946 if ($perm != 'create' && !is_object($this->object)) {
1947 return;
1948 }
1949
1950 ilSession::clear('il_rep_ref_id');
1951
1952 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_read'), true);
1953 $parent_ref_id = $this->tree->getParentId($this->object->getRefId());
1954 if ($parent_ref_id > 0) {
1955 $this->ctrl->redirectToURL(ilLink::_getLink($parent_ref_id));
1956 } else {
1957 $this->ctrl->redirectToURL('login.php?cmd=force_login');
1958 }
1959 }
1960
1961 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_read'), true);
1963 }
1964 }
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26

References $_SERVER, $ref_id, ilSession\clear(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

Referenced by ilObjBibliographicAdminGUI\__construct(), ilObjMediaCastGUI\addCastItemObject(), ilObjRoleFolderGUI\adjustRoleObject(), ilObjSessionGUI\attendanceListObject(), ilObjCourseGUI\autoFillObject(), ilObjLanguageFolderGUI\checkLanguageObject(), ilObjLanguageFolderGUI\confirmRefreshObject(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ilObjLTIAdministrationGUI\createLTIConsumer(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjMediaCastGUI\editCastItemObject(), ilObjGroupGUI\editInfoObject(), ilObjCourseGUI\editInfoObject(), ilObjGroupGUI\editObject(), ilObjLoggingSettingsGUI\errorSettings(), ilObjCategoryGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjLanguageFolderGUI\executeCommand(), ilObjLearningSequenceAdminGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjSystemCheckGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjBookingPoolGUI\infoScreen(), ilObjCourseGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjSurveyQuestionPoolGUI\infoScreenForward(), ilObjWikiGUI\infoScreenObject(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjLanguageFolderGUI\installLocalObject(), ilObjLanguageFolderGUI\installObject(), ilObjSessionGUI\joinObject(), ilObjCourseGUI\leaveObject(), ilObjGroupGUI\leaveObject(), ilObjWikiGUI\listContributorsObject(), ilObjMediaCastGUI\listItemsObject(), ilObjCourseGUI\performUnsubscribeObject(), ilObjSessionGUI\printAttendanceListObject(), ilObjLanguageFolderGUI\refreshObject(), ilObjLanguageFolderGUI\refreshSelectedObject(), ilObjSessionGUI\registerObject(), ilObjFolderGUI\renderObject(), ilObjLoggingSettingsGUI\resetComponentLevels(), ilObjCalendarSettingsGUI\save(), ilObjMediaCastGUI\saveCastItemObject(), ilObjLoggingSettingsGUI\saveComponentLevels(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjWikiGUI\saveGradingObject(), ilObjAdvancedEditingGUI\saveObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilObjStudyProgrammeAdminGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjWebResourceAdministrationGUI\saveSettings(), ilObjUserTrackingGUI\saveSettingsObject(), ilObjLanguageFolderGUI\setSystemLanguageObject(), ilObjLanguageFolderGUI\setUserLanguageObject(), ilObjExerciseGUI\showOverviewObject(), ilObjTaggingSettingsGUI\showUsers(), ilObjSystemCheckGUI\trash(), ilObjLanguageFolderGUI\uninstallChangesObject(), ilObjLanguageFolderGUI\uninstallObject(), ilObjGroupGUI\unsubscribeObject(), ilObjLoggingSettingsGUI\updateErrorSettings(), ilObjCourseGUI\updateInfoObject(), ilObjGroupGUI\updateInfoObject(), ilObjLTIAdministrationGUI\updateLTIConsumer(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjFolderGUI\viewObject(), ilObjRootFolderGUI\viewObject(), and ilObjWikiGUI\viewObject().

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

◆ checkPermissionBool()

ilObjectGUI::checkPermissionBool ( string  $perm,
string  $cmd = "",
string  $type = "",
?int  $ref_id = null 
)
protected

Reimplemented in ilObject2GUI, ilObjPortfolioGUI, ilObjTaxonomyGUI, ilObjEmployeeTalkSeriesGUI, and ilObjWikiGUI.

Definition at line 1966 of file class.ilObjectGUI.php.

1966 : bool
1967 {
1968 if ($perm === "create") {
1969 if (!$ref_id) {
1971 }
1972 return $this->access->checkAccess($perm . "_" . $type, $cmd, $ref_id);
1973 }
1974
1975 if (!is_object($this->object)) {
1976 return false;
1977 }
1978
1979 if (!$ref_id) {
1980 $ref_id = $this->object->getRefId();
1981 }
1982
1983 return $this->access->checkAccess($perm, $cmd, $ref_id);
1984 }

References $ref_id, $requested_ref_id, and ILIAS\Repository\access().

Referenced by ilObjBadgeAdministrationGUI\activateTypes(), ilObjExerciseGUI\addContentSubTabs(), ilObjSurveyGUI\addToNavigationHistory(), ilObjLoggingSettingsGUI\components(), ilObjFileBasedLMGUI\createFromDirectory(), createObject(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjFolderGUI\editObject(), ilObjMediaCastGUI\editObject(), ilObjCategoryGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjLTIAdministrationGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjSystemCheckGUI\executeCommand(), ilObjBlogAdministrationGUI\getAdminTabs(), ilObjObjectTemplateAdministrationGUI\getAdminTabs(), ilObjEmployeeTalkGUI\getAdminTabs(), ilObjExerciseAdministrationGUI\getAdminTabs(), getAdminTabs(), ilObjNotificationAdminGUI\getAdminTabs(), ilObjPortfolioAdministrationGUI\getAdminTabs(), ilObjSystemCheckGUI\getAdminTabs(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjLanguageFolderGUI\getTabs(), ilObjSurveyGUI\getTabs(), ilObjSurveyQuestionPoolGUI\getTabs(), ilObjUserTrackingGUI\getTabs(), ilObjFileBasedLMGUI\importFromUploadDir(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjBookingPoolGUI\infoScreen(), ilObjCourseGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjSAHSLearningModuleGUI\infoScreenForward(), ilObjSurveyQuestionPoolGUI\infoScreenForward(), ilObjSessionGUI\initForm(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjCalendarSettingsGUI\initFormSettings(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjAdvancedEditingGUI\initPageEditorForm(), ilObjPrivacySecurityGUI\initPrivacyForm(), ilObjUserTrackingGUI\initSettingsForm(), ilObjExerciseGUI\listAssignmentsObject(), ilObjLTIAdministrationGUI\listConsumers(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjFileBasedLMGUI\properties(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilContainerReferenceGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjFileBasedLMGUI\saveProperties(), ilObjNotificationAdminGUI\saveSettings(), ilObjSystemCheckGUI\setMainSubTabs(), ilObjFileBasedLMGUI\setStartFile(), and ilObjLanguageFolderGUI\viewObject().

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

◆ checkWritePermissionOnRefIdArray()

ilObjectGUI::checkWritePermissionOnRefIdArray ( array  $ref_ids)
private

Definition at line 2229 of file class.ilObjectGUI.php.

2229 : bool
2230 {
2231 foreach ($ref_ids as $ref_id) {
2232 if (!$this->access->checkAccess('write', '', $ref_id)) {
2233 return false;
2234 }
2235 }
2236 return true;
2237 }

References $ref_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ confirmedDeleteObject()

ilObjectGUI::confirmedDeleteObject ( )

confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled

Reimplemented in ilObjEmployeeTalkGUI, ilObjOrgUnitGUI, and ilObjStyleSheetGUI.

Definition at line 615 of file class.ilObjectGUI.php.

615 : void
616 {
617 if (!$this->request_wrapper->has('id')) {
618 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_checkbox'), true);
619 $this->ctrl->returnToParent($this);
620 }
621
623 explode(
624 ',',
625 $this->request_wrapper->retrieve(
626 'id',
627 $this->refinery->kindlyTo()->string()
628 )
629 )
630 )->withRequest($this->request)->getData();
631
632 if ($data === null) {
633 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_checkbox'), true);
634 $this->ctrl->returnToParent($this);
635 }
636
637 $ru = new ilRepositoryTrashGUI($this);
638 $ru->deleteObjects($this->requested_ref_id, $this->buildRefIdsFromData($data));
639
640 $this->ctrl->redirectByClass(static::class);
641 }
buildRefIdsFromData(array $data)
buildDeleletionModal(array $request_ids)
Repository GUI Utilities.

References $data, buildDeleletionModal(), buildRefIdsFromData(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by ilObjLearningSequenceGUI\executeCommand().

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

◆ createActionDispatcherGUI()

ilObjectGUI::createActionDispatcherGUI ( )
protected

Reimplemented in ilObjChatroomGUI.

Definition at line 393 of file class.ilObjectGUI.php.

394 {
397 $this->access,
398 $this->object->getType(),
399 $this->ref_id,
400 $this->object->getId()
401 );
402 }
Class ilCommonActionDispatcherGUI.

References ILIAS\Repository\access(), ILIAS\Repository\object(), and ilCommonActionDispatcherGUI\TYPE_REPOSITORY.

Referenced by initHeaderAction().

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

◆ createObject()

ilObjectGUI::createObject ( )

create new object form

Reimplemented in ilObjRoleGUI, ilObjRoleTemplateGUI, ilContainerReferenceGUI, ilObjMediaObjectGUI, ilObjStyleSheetGUI, and ilObjUserGUI.

Definition at line 678 of file class.ilObjectGUI.php.

678 : void
679 {
680 $new_type = $this->requested_new_type;
681
682 // add new object to custom parent container
683 $this->ctrl->saveParameter($this, "crtptrefid");
684 // use forced callback after object creation
685 $this->ctrl->saveParameter($this, "crtcb");
686
687 if (!$this->checkPermissionBool('create', '', $new_type)) {
688 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
689 }
690
691 $this->lng->loadLanguageModule($new_type);
692 $this->ctrl->setParameter($this, 'new_type', $new_type);
693
694 $this->tpl->setTitleIcon(ilObject::getIconForType($this->requested_new_type));
695 $this->tpl->setTitle($this->getTitleForCreationFormPage());
696 $create_form = $this->initCreateForm($new_type);
697 $this->tabs_gui->setBackTarget($this->lng->txt('cancel'), $this->ctrl->getLinkTargetByClass(static::class, 'cancel'));
698 $this->tpl->setContent($this->getCreationFormsHTML($create_form));
699 }
error(string $a_errmsg)
getCreationFormsHTML(StandardForm|ilPropertyFormGUI|array $form)
string $requested_new_type
initCreateForm(string $new_type)

References $requested_new_type, checkPermissionBool(), ILIAS\Repository\ctrl(), error(), getCreationFormsHTML(), ilObject\getIconForType(), getTitleForCreationFormPage(), initCreateForm(), and ILIAS\Repository\lng().

Referenced by ilObjGlossaryGUI\importObject(), and ilObjSessionGUI\saveObject().

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

◆ deleteObject()

ilObjectGUI::deleteObject ( bool  $error = false)

Display deletion confirmation screen.

Only for referenced objects. For user,role & rolt overwrite this function in the appropriate Object folders classes (ilObjUserFolderGUI,ilObjRoleFolderGUI)

Reimplemented in ilObjCourseGUI, ilObjFolderGUI, and ilObjOrgUnitGUI.

Definition at line 1688 of file class.ilObjectGUI.php.

1688 : void
1689 {
1690 $request_ids = [];
1691 if ($this->post_wrapper->has('id')) {
1692 $request_ids = $this->post_wrapper->retrieve(
1693 'id',
1694 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
1695 );
1696 }
1697
1698 if (
1699 $this->request_wrapper->has('item_ref_id')
1700 && $this->request_wrapper->retrieve('item_ref_id', $this->refinery->kindlyTo()->string()) !== ""
1701 ) {
1702 $request_ids = [$this->request_wrapper->retrieve('item_ref_id', $this->refinery->kindlyTo()->int())];
1703 }
1704
1705 if ($request_ids === []) {
1706 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_checkbox'), true);
1707 $this->ctrl->returnToParent($this);
1708 }
1709
1710 $modal = $this->buildDeleletionModal(array_unique($request_ids));
1711 $this->tpl->setVariable(
1712 'IL_OBJECT_EPHEMRAL_MODALS',
1713 $this->ui_renderer->render(
1714 $modal->withOnLoad($modal->getShowSignal())
1715 )
1716 );
1717 $this->renderObject();
1718 }

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

Referenced by ilObjLearningSequenceGUI\executeCommand().

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

◆ deleteUploadedImportFile()

ilObjectGUI::deleteUploadedImportFile ( string  $path_to_uploaded_file_in_temp_dir)
protected

Definition at line 1462 of file class.ilObjectGUI.php.

1462 : void
1463 {
1464 if ($path_to_uploaded_file_in_temp_dir !== ''
1465 && $this->temp_file_system->hasDir($path_to_uploaded_file_in_temp_dir)) {
1466 $this->temp_file_system->deleteDir($path_to_uploaded_file_in_temp_dir);
1467 }
1468 }

Referenced by ilObjSAHSLearningModuleGUI\importFile(), and ilObjSurveyQuestionPoolGUI\importFile().

+ Here is the caller graph for this function:

◆ didacticTemplatesToForm()

ilObjectGUI::didacticTemplatesToForm ( )
protected

Definition at line 765 of file class.ilObjectGUI.php.

765 : ?Radio
766 {
767 $this->lng->loadLanguageModule('didactic');
768
769 list($existing_exclusive, $options) = $this->buildDidacticTemplateOptions();
770
771 if (sizeof($options) < 2) {
772 return null;
773 }
774
775 $didactic_templates_radio = $this->ui_factory->input()->field()->radio($this->lng->txt('type'));
776
777 foreach ($options as $value => $option) {
778 if ($existing_exclusive && $value == 'dtpl_0') {
779 //Skip default disabled if an exclusive template exists - Whatever the f*** that means!
780 continue;
781 }
782 $didactic_templates_radio = $didactic_templates_radio->withOption($value, $option[0], $option[1] ?? '');
783 }
784
785 if (!$this->getCreationMode()) {
786 $value = 'dtpl_' . ilDidacticTemplateObjSettings::lookupTemplateId($this->object->getRefId());
787
788 $didactic_templates_radio = $didactic_templates_radio->withValue($value);
789
790 if (!in_array($value, array_keys($options)) || ($existing_exclusive && $value == "dtpl_0")) {
791 //add or rename actual value to not available
792 $options[$value] = [$this->lng->txt('not_available')];
793 }
794 } else {
795 if ($existing_exclusive) {
796 //if an exclusive template exists use the second template as default value
797 $keys = array_keys($options);
798 $didactic_templates_radio = $didactic_templates_radio->withValue($keys[1]);
799 } else {
800 $didactic_templates_radio = $didactic_templates_radio->withValue('dtpl_0');
801 }
802 }
803
804 return $didactic_templates_radio;
805 }
This is what a radio-input looks like.
Definition: Radio.php:29

References buildDidacticTemplateOptions(), getCreationMode(), ILIAS\Repository\lng(), ilDidacticTemplateObjSettings\lookupTemplateId(), and ILIAS\Repository\object().

Referenced by initCreateForm(), and ilObjItemGroupGUI\initCreateForm().

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

◆ editAvailabilityPeriodObject()

ilObjectGUI::editAvailabilityPeriodObject ( )

Definition at line 971 of file class.ilObjectGUI.php.

971 : void
972 {
973 $item_ref_ids = $this->retriever->getSelectedIdsFromObjectList();
974 if (!$this->checkPermissionBool('write')
975 && !$this->checkWritePermissionOnRefIdArray($item_ref_ids)) {
976 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_write'));
977 return;
978 }
979
980 $availability_period_modal = $this->getMultiObjectPropertiesManipulator()->getEditAvailabilityPeriodPropertiesModal(
981 $item_ref_ids,
982 $this
983 );
984 if ($availability_period_modal !== null) {
985 $this->tpl->setVariable(
986 'IL_OBJECT_EPHEMRAL_MODALS',
987 $this->ui_renderer->render(
988 $availability_period_modal->withOnLoad(
989 $availability_period_modal->getShowSignal()
990 )
991 )
992 );
993 }
994 $this->renderObject();
995 }
checkWritePermissionOnRefIdArray(array $ref_ids)

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ editObject()

ilObjectGUI::editObject ( )

Reimplemented in ilObjRoleGUI, ilObjBibliographicGUI, ilObjBookingPoolGUI, ilObjEmployeeTalkGUI, ilObjExerciseGUI, ilObjFolderGUI, ilObjFileBasedLMGUI, ilObjTypeDefinitionGUI, ilObjIndividualAssessmentGUI, ilObjMediaCastGUI, ilObjMediaObjectGUI, ilObjSessionGUI, ilObjStyleSheetGUI, and ilObjUserGUI.

Definition at line 1151 of file class.ilObjectGUI.php.

1151 : void
1152 {
1153 if (!$this->checkPermissionBool("write")) {
1154 $this->error->raiseError($this->lng->txt("msg_no_perm_write"), $this->error->MESSAGE);
1155 }
1156
1157 $this->tabs_gui->activateTab("settings");
1158
1159 $form = $this->initEditForm();
1160 $values = $this->getEditFormValues();
1161 if ($values) {
1162 $form->setValuesByArray($values);
1163 }
1164
1165 $this->addExternalEditFormCustom($form);
1166
1167 $this->tpl->setContent($form->getHTML());
1168 }
addExternalEditFormCustom(ilPropertyFormGUI $form)

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

Referenced by ilContainerReferenceGUI\editReferenceObject(), ilContainerReferenceGUI\firstEditObject(), ilContainerReferenceGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjStudyProgrammeReferenceGUI\updateObject(), and ilRemoteObjectBaseGUI\updateObject().

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

◆ enableDragDropFileUpload()

ilObjectGUI::enableDragDropFileUpload ( )
protected

Enables the file upload into this object by dropping files.

Reimplemented in ilObjLearningSequenceGUI.

Definition at line 2032 of file class.ilObjectGUI.php.

2032 : void
2033 {
2034 $this->tpl->setFileUploadRefId($this->ref_id);
2035 }

Referenced by prepareOutput().

+ Here is the caller graph for this function:

◆ executeCommand()

ilObjectGUI::executeCommand ( )

Reimplemented in ilObjRoleFolderGUI, ilObjRoleGUI, ilObjRoleTemplateGUI, ilObjExternalToolsSettingsGUI, ilObjRecoveryFolderGUI, ilObjAdministrativeNotificationGUI, ilObjAuthSettingsGUI, ilObjAwarenessAdministrationGUI, ilObjBadgeAdministrationGUI, ilObjBibliographicAdminGUI, ilObjBibliographicGUI, ilObjBlogAdministrationGUI, ilObjBlogGUI, ilObjCalendarSettingsGUI, ilObjCategoryGUI, ilObjCertificateSettingsGUI, ilObjChatroomAdminGUI, ilObjChatroomGUI, ilObjCmiXapiAdministrationGUI, ilObjComponentSettingsGUI, ilObjContactAdministrationGUI, ilContainerGUI, ilContainerReferenceGUI, ilObjContentPageAdministrationGUI, ilObjAdvancedEditingGUI, ilCourseContentGUI, ilObjCourseGUI, ilObjCourseReferenceGUI, ilObjDashboardSettingsGUI, ilObjDataCollectionGUI, ilObjDataProtectionGUI, ilObjObjectTemplateAdministrationGUI, ilObjTalkTemplateAdministrationGUI, ilObjTalkTemplateGUI, ilObjEmployeeTalkGUI, ilObjEmployeeTalkSeriesGUI, ilObjExerciseAdministrationGUI, ilObjFileAccessSettingsGUI, ilObjFileServicesGUI, ilObjFolderGUI, ilObjForumAdministrationGUI, ilObjFooterAdministrationGUI, ilObjGlossaryGUI, ilObjGroupGUI, ilObjGroupReferenceGUI, ilObjHelpSettingsGUI, ilObjFileBasedLMGUI, ilObject2GUI, ilObjObjectFolderGUI, ilObjTypeDefinitionGUI, ilObjLegalNoticeGUI, ilObjIndividualAssessmentGUI, ilObjItemGroupGUI, ilObjLanguageExtGUI, ilObjLanguageFolderGUI, ilObjLearningHistorySettingsGUI, ilObjLearningResourcesSettingsGUI, ilObjLearningSequenceAdminGUI, ilObjLearningSequenceGUI, ilObjLegalDocumentsGUI, ilObjLoggingSettingsGUI, ilObjLTIAdministrationGUI, ilObjMailGUI, ilObjMainMenuGUI, ilObjMediaCastGUI, ilObjMediaCastSettingsGUI, ilObjMediaObjectsSettingsGUI, ilObjMediaPoolGUI, ilMembershipAdministrationGUI, ilObjMDSettingsGUI, ilObjNewsSettingsGUI, ilObjCommentsSettingsGUI, ilObjNotesSettingsGUI, ilObjNotificationAdminGUI, ilObjOrgUnitGUI, ilObjPersonalWorkspaceSettingsGUI, ilObjPollGUI, ilObjPortfolioAdministrationGUI, ilObjPortfolioGUI, ilObjPortfolioTemplateGUI, ilObjPrivacySecurityGUI, ilObjRepositorySettingsGUI, ilObjectPluginGUI, ilObjRootFolderGUI, ilObjSCORM2004LearningModuleGUI, ilObjSAHSLearningModuleGUI, ilObjSearchSettingsGUI, ilObjSessionGUI, ilObjSkillManagementGUI, ilObjSkillTreeGUI, ilObjStudyProgrammeAdminGUI, ilObjStudyProgrammeGUI, ilObjStyleSettingsGUI, ilObjStyleSheetGUI, ilObjSurveyAdministrationGUI, ilObjSurveyGUI, ilObjSurveyQuestionPoolGUI, ilObjSystemCheckGUI, ilObjSystemFolderGUI, ilObjTaggingSettingsGUI, ilObjTaxonomyAdministrationGUI, ilObjTaxonomyGUI, ilObjTermsOfServiceGUI, ilObjTestFolderGUI, ilObjTestGUI, ilObjUserTrackingGUI, ilObjUserFolderGUI, ilObjUserGUI, ilObjWebDAVGUI, ilObjLinkResourceGUI, ilObjWebResourceAdministrationGUI, ilObjECSSettingsGUI, ilRemoteObjectBaseGUI, ilObjWikiGUI, ilObjWikiSettingsGUI, and ilObjWorkspaceFolderGUI.

Definition at line 260 of file class.ilObjectGUI.php.

260 : void
261 {
262 $cmd = $this->ctrl->getCmd();
263
264 $this->prepareOutput();
265 if (!$cmd) {
266 $cmd = "view";
267 }
268 $cmd .= "Object";
269 $this->$cmd();
270 }
prepareOutput(bool $show_sub_objects=true)

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

+ Here is the call graph for this function:

◆ extractFileTypeFromImportFilename()

ilObjectGUI::extractFileTypeFromImportFilename ( string  $filename)
private

Definition at line 1536 of file class.ilObjectGUI.php.

1536 : ?string
1537 {
1538 $matches = [];
1539 $result = preg_match('/[0-9]{10}__[0-9]{1,6}__([a-z]{1,4})_[0-9]{2,9}.zip/', $filename, $matches);
1540 if ($result === false
1541 || $result === 0
1542 || !isset($matches[1])) {
1543 return null;
1544 }
1545 return $matches[1];
1546 }
$filename
Definition: buildRTE.php:78

References $filename.

◆ getAdminMode()

ilObjectGUI::getAdminMode ( )

Definition at line 245 of file class.ilObjectGUI.php.

245 : string
246 {
247 return $this->admin_mode;
248 }

References $admin_mode.

Referenced by ilObjRoleGUI\addAdminLocatorItems(), ilObjRoleGUI\addLocatorItems(), and ilObjRoleGUI\getTabs().

+ Here is the caller graph for this function:

◆ getAdminTabs()

ilObjectGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented in ilObjRoleFolderGUI, ilObjRoleGUI, ilObjRoleTemplateGUI, ilObjAccessibilitySettingsGUI, ilObjExternalToolsSettingsGUI, ilObjAuthSettingsGUI, ilObjAwarenessAdministrationGUI, ilObjBadgeAdministrationGUI, ilObjBlogAdministrationGUI, ilObjCalendarSettingsGUI, ilObjCertificateSettingsGUI, ilChatroomObjectGUI, ilObjCmiXapiAdministrationGUI, ilObjComponentSettingsGUI, ilObjContactAdministrationGUI, ilContainerGUI, ilObjContentPageAdministrationGUI, ilObjAdvancedEditingGUI, ilObjDashboardSettingsGUI, ilObjDataProtectionGUI, ilObjObjectTemplateAdministrationGUI, ilObjTalkTemplateAdministrationGUI, ilObjTalkTemplateGUI, ilObjEmployeeTalkGUI, ilObjEmployeeTalkSeriesGUI, ilObjExerciseAdministrationGUI, ilObjFileAccessSettingsGUI, ilObjFileServicesGUI, ilObjForumAdministrationGUI, ilObjHelpSettingsGUI, ilObjLanguageExtGUI, ilObjLanguageFolderGUI, ilObjLearningHistorySettingsGUI, ilObjLearningResourcesSettingsGUI, ilObjLearningSequenceAdminGUI, ilObjLoggingSettingsGUI, ilObjLTIAdministrationGUI, ilObjMailGUI, ilObjMediaCastSettingsGUI, ilObjMediaObjectsSettingsGUI, ilMembershipAdministrationGUI, ilObjMDSettingsGUI, ilObjNewsSettingsGUI, ilObjCommentsSettingsGUI, ilObjNotesSettingsGUI, ilObjNotificationAdminGUI, ilObjOrgUnitGUI, ilObjPersonalWorkspaceSettingsGUI, ilObjPortfolioAdministrationGUI, ilObjPrivacySecurityGUI, ilObjRepositorySettingsGUI, ilObjSearchSettingsGUI, ilObjSkillManagementGUI, ilObjSkillTreeGUI, ilObjStudyProgrammeAdminGUI, ilObjStyleSettingsGUI, ilObjStyleSheetGUI, ilObjSurveyAdministrationGUI, ilObjSystemCheckGUI, ilObjSystemFolderGUI, ilObjTaggingSettingsGUI, ilObjTaxonomyAdministrationGUI, ilObjTermsOfServiceGUI, ilObjTestFolderGUI, ilObjUserTrackingGUI, ilObjUserFolderGUI, ilObjUserGUI, ilObjWebDAVGUI, ilObjWebResourceAdministrationGUI, ilObjECSSettingsGUI, and ilObjWikiSettingsGUI.

Definition at line 506 of file class.ilObjectGUI.php.

506 : void
507 {
508 if ($this->checkPermissionBool("visible,read")) {
509 $this->tabs_gui->addTarget(
510 "view",
511 $this->ctrl->getLinkTarget($this, "view"),
512 ["", "view"],
513 get_class($this)
514 );
515 }
516
517 if ($this->checkPermissionBool("edit_permission")) {
518 $this->tabs_gui->addTarget(
519 "perm_settings",
520 $this->ctrl->getLinkTargetByClass([get_class($this), 'ilpermissiongui'], "perm"),
521 "",
522 "ilpermissiongui"
523 );
524 }
525 }

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

Referenced by setAdminTabs().

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

◆ getCenterColumnHTML()

ilObjectGUI::getCenterColumnHTML ( )
protected

Get center column.

Reimplemented in ilObject2GUI.

Definition at line 1868 of file class.ilObjectGUI.php.

1868 : string
1869 {
1870 $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1871 $obj_type = ilObject::_lookupType($obj_id);
1872
1873 if ($this->ctrl->getNextClass() != "ilcolumngui") {
1874 // normal command processing
1875 return $this->getContent();
1876 } else {
1877 if (!$this->ctrl->isAsynch()) {
1878 //if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
1880 // right column wants center
1882 $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1883 $this->setColumnSettings($column_gui);
1884 $this->html = $this->ctrl->forwardCommand($column_gui);
1885 }
1886 // left column wants center
1888 $column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT);
1889 $this->setColumnSettings($column_gui);
1890 $this->html = $this->ctrl->forwardCommand($column_gui);
1891 }
1892 } else {
1893 // normal command processing
1894 return $this->getContent();
1895 }
1896 }
1897 }
1898 return "";
1899 }
const IL_SCREEN_SIDE
const IL_COL_RIGHT
const IL_COL_LEFT
Column user interface class.
static getScreenMode()
static getCmdSide()
Get Column Side of Current Command.
setColumnSettings(ilColumnGUI $column_gui)
static _lookupType(int $id, bool $reference=false)

References ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), ilColumnGUI\getCmdSide(), ILIAS\UI\Implementation\Component\Input\ViewControl\getContent(), ilColumnGUI\getScreenMode(), ILIAS\Repository\html(), IL_COL_LEFT, IL_COL_RIGHT, IL_SCREEN_SIDE, and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ getCreatableObjectTypes()

ilObjectGUI::getCreatableObjectTypes ( )
protected

Reimplemented in ilObjTalkTemplateAdministrationGUI, ilObjItemGroupGUI, ilObjOrgUnitGUI, and ilObjSessionGUI.

Definition at line 2057 of file class.ilObjectGUI.php.

2057 : array
2058 {
2059 $subtypes = $this->obj_definition->getCreatableSubObjects(
2060 $this->object->getType(),
2062 $this->object->getRefId()
2063 );
2064
2065 return array_filter(
2066 $subtypes,
2067 fn($key) => $this->access->checkAccess('create_' . $key, '', $this->ref_id, $this->type),
2068 ARRAY_FILTER_USE_KEY
2069 );
2070 }

References ILIAS\Repository\access(), ilObjectDefinition\MODE_REPOSITORY, and ILIAS\Repository\object().

Referenced by ilObjCourseGUI\renderAddNewItem(), ilObjFolderGUI\showPossibleSubObjects(), and ilObjLearningSequenceGUI\showPossibleSubObjects().

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

◆ getCreationFormsHTML()

ilObjectGUI::getCreationFormsHTML ( StandardForm|ilPropertyFormGUI|array  $form)
protected
Parameters
StandardForm|ilPropertyFormGUI|array<ilPropertyFormGUI>$form

Reimplemented in ilObjLTIConsumerGUI.

Definition at line 704 of file class.ilObjectGUI.php.

704 : string
705 {
706 $title = $this->getCreationFormTitle();
707
708 if (is_array($form)) {
709 throw new Exception('We do not deal with arrays here.');
710 }
711
712 $content = $form;
713 if ($form instanceof ilPropertyFormGUI) {
714 $form->setTitle('');
715 $form->setTitleIcon('');
716 $form->setTableWidth('100%');
717 $content = $this->ui_factory->legacy()->content($form->getHTML());
718 }
719
720 return $this->ui_renderer->render(
721 $this->ui_factory->panel()->standard($title, $content)
722 );
723 }
This class represents a property form user interface.

References getCreationFormTitle().

Referenced by createObject(), and ilObjItemGroupGUI\save().

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

◆ getCreationFormTitle()

ilObjectGUI::getCreationFormTitle ( )
protected

Reimplemented in ilObjFileGUI, ilObjectPluginGUI, and ilObjStyleSheetGUI.

Definition at line 733 of file class.ilObjectGUI.php.

733 : string
734 {
735 return $this->lng->txt($this->requested_new_type . '_new');
736 }

References ILIAS\Repository\lng().

Referenced by getCreationFormsHTML().

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

◆ getCreationMode()

◆ getDidacticTemplateVar()

ilObjectGUI::getDidacticTemplateVar ( string  $type)

Get didactic template setting from creation screen.

Deprecated:
10 Will be removed with ILIAS 12

Definition at line 1078 of file class.ilObjectGUI.php.

1078 : int
1079 {
1080 $create_form = $this->initCreateForm($this->type);
1081 if ($create_form instanceof StandardForm) {
1082 try {
1083 $data = $create_form->withRequest($this->request)->getData();
1084 return isset($data['didactic_templates'])
1085 ? $this->parseDidacticTemplateVar($data['didactic_templates'], $type)
1086 : 0;
1087 } catch (InvalidArgumentException $e) {
1088 }
1089 }
1090
1091 if (!$this->post_wrapper->has('didactic_type')) {
1092 return 0;
1093 }
1094
1095 $tpl = $this->post_wrapper->retrieve('didactic_type', $this->refinery->kindlyTo()->string());
1096 return $this->parseDidacticTemplateVar($tpl, $type);
1097 }
ilGlobalTemplateInterface $tpl
parseDidacticTemplateVar(string $var, string $type)

References $data, Vendor\Package\$e, and ILIAS\Repository\refinery().

Referenced by ilObjBookingPoolGUI\afterUpdate(), ilObjItemGroupGUI\afterUpdate(), ilObjSessionGUI\createRecurringSessions(), ilObjLTIConsumerGUI\saveCustom(), ilObjBibliographicGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjLTIConsumerGUI\saveObject(), ilObjLinkResourceGUI\saveObject(), and ilObjSessionGUI\saveObject().

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

◆ getEditFormCustomValues()

ilObjectGUI::getEditFormCustomValues ( array &  $a_values)
protected

◆ getEditFormValues()

ilObjectGUI::getEditFormValues ( )
protected

Reimplemented in ilObjCategoryGUI, ilContainerGUI, ilObjCourseGUI, and ilObjRootFolderGUI.

Definition at line 1211 of file class.ilObjectGUI.php.

1211 : array
1212 {
1213 $values["title"] = $this->object->getTitle();
1214 $values["desc"] = $this->object->getLongDescription();
1215 $this->getEditFormCustomValues($values);
1216 return $values;
1217 }
getEditFormCustomValues(array &$a_values)
Add values to custom edit fields.

Referenced by ilObjItemGroupGUI\edit(), and ilObjEmployeeTalkGUI\editObject().

+ Here is the caller graph for this function:

◆ getFileToImportFromImportFormData()

ilObjectGUI::getFileToImportFromImportFormData ( array  $data)
private

Definition at line 1548 of file class.ilObjectGUI.php.

1549 {
1550 $upload_data = $data['upload'];
1551 if (array_key_first($upload_data) === self::UPLOAD_TYPE_LOCAL
1552 && $this->temp_file_system->hasDir($upload_data[self::UPLOAD_TYPE_LOCAL])) {
1553 $files = $this->temp_file_system->listContents($upload_data[self::UPLOAD_TYPE_LOCAL]);
1554 return CLIENT_DATA_DIR . DIRECTORY_SEPARATOR
1555 . 'temp' . DIRECTORY_SEPARATOR
1556 . $files[0]->getPath();
1557 }
1558 return $upload_data[self::UPLOAD_TYPE_UPLOAD_DIRECTORY];
1559 }
const UPLOAD_TYPE_UPLOAD_DIRECTORY
const CLIENT_DATA_DIR
Definition: constants.php:46

References $data, and CLIENT_DATA_DIR.

◆ getFormAction()

ilObjectGUI::getFormAction ( string  $cmd,
string  $default_form_action = "" 
)

Get form action for command (command is method name without "Object", e.g.

"perm").

Definition at line 1573 of file class.ilObjectGUI.php.

1573 : string
1574 {
1575 if ($this->form_action[$cmd] != "") {
1576 return $this->form_action[$cmd];
1577 }
1578
1579 return $default_form_action;
1580 }

◆ getHTML()

ilObjectGUI::getHTML ( )

Reimplemented in ilObject2GUI.

Definition at line 527 of file class.ilObjectGUI.php.

527 : string
528 {
529 return $this->html;
530 }

References $html.

◆ getMultiObjectPropertiesManipulator()

ilObjectGUI::getMultiObjectPropertiesManipulator ( )
private

Definition at line 220 of file class.ilObjectGUI.php.

221 {
222 if (!isset($this->multi_object_manipulator)) {
223 $this->multi_object_manipulator = LocalDIC::dic()['properties.multi_manipulator'];
224 }
226 }
MultiPropertiesManipulator $multi_object_manipulator

References $multi_object_manipulator.

◆ getObject()

ilObjectGUI::getObject ( )

Definition at line 255 of file class.ilObjectGUI.php.

255 : ?ilObject
256 {
257 return $this->object;
258 }
Class ilObject Basic functions for all objects.

References $object.

Referenced by ilContainerSkillGUI\__construct(), ilContSkillAdminGUI\__construct(), ilContSkillPresentationGUI\__construct(), ilContainerFilterAdminGUI\__construct(), ilCourseContentGUI\__construct(), ilBookingParticipantGUI\__construct(), ilLOEditorGUI\__construct(), ilDclRecordListGUI\__construct(), ilContainerNewsSettingsGUI\__construct(), ilExtIdGUI\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilBookingGatewayGUI\__construct(), ilLocalUserGUI\__construct(), ilMediaCastTableGUI\__construct(), ilMediaCastManageTableGUI\__construct(), ilOrgUnitExportGUI\__construct(), ilTestPersonalDefaultSettingsTableGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilObjLearningSequenceGUI\checkLPAccess(), ilObjCategoryGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjDataCollectionGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjItemGroupGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilChatroom\getChatURL(), ilObjLearningSequenceGUI\getGUILearningProgress(), ilObjLearningSequenceGUI\getGUIMembers(), ilObjLearningSequenceGUI\getGUISettings(), ilContainerGUI\getItemPresentation(), ilContainerGUI\getModeManager(), ilObjLearningSequenceGUI\getTabs(), ilObjQuestionPoolGUI\importVerifiedQuestionsFileObject(), ilObjWikiGUI\infoScreen(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjItemGroupGUI\initCreateForm(), ilObjCourseGUI\performUnsubscribeObject(), and ilObjLearningSequenceGUI\unparticipate().

+ Here is the caller graph for this function:

◆ getObjectService()

◆ getRefId()

◆ getReturnLocation()

ilObjectGUI::getReturnLocation ( string  $cmd,
string  $default_location = "" 
)
protected

Get return location for command (command is method name without "Object", e.g.

"perm")

Reimplemented in ilObject2GUI.

Definition at line 1590 of file class.ilObjectGUI.php.

1590 : string
1591 {
1592 if (($this->return_location[$cmd] ?? "") !== "") {
1593 return $this->return_location[$cmd];
1594 } else {
1595 return $default_location;
1596 }
1597 }

Referenced by ilObjCourseGUI\afterSave(), ilObjLearningSequenceGUI\afterSave(), ilObjOrgUnitGUI\afterSave(), and ilObjStudyProgrammeGUI\afterSave().

+ Here is the caller graph for this function:

◆ getRightColumnHTML()

ilObjectGUI::getRightColumnHTML ( )
protected

Display right column.

Reimplemented in ilObject2GUI.

Definition at line 1904 of file class.ilObjectGUI.php.

1904 : string
1905 {
1906 $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1907 $obj_type = ilObject::_lookupType($obj_id);
1908
1909 $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1910
1911 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
1912 return "";
1913 }
1914
1915 $this->setColumnSettings($column_gui);
1916
1917 $html = "";
1918 if (
1919 $this->ctrl->getNextClass() == "ilcolumngui" &&
1920 $column_gui->getCmdSide() == IL_COL_RIGHT &&
1921 $column_gui->getScreenMode() == IL_SCREEN_SIDE
1922 ) {
1923 return $this->ctrl->forwardCommand($column_gui);
1924 }
1925
1926 if (!$this->ctrl->isAsynch()) {
1927 return $this->ctrl->getHTML($column_gui);
1928 }
1929
1930 return $html;
1931 }
const IL_SCREEN_FULL

References ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), IL_COL_RIGHT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ getTabs()

◆ getTargetFrame()

ilObjectGUI::getTargetFrame ( string  $cmd,
string  $default_target_frame = "" 
)
protected

get target frame for command (command is method name without "Object", e.g.

"perm")

Reimplemented in ilObject2GUI.

Definition at line 1610 of file class.ilObjectGUI.php.

1610 : string
1611 {
1612 if (isset($this->target_frame[$cmd]) && $this->target_frame[$cmd] != "") {
1613 return $this->target_frame[$cmd];
1614 }
1615
1616 if (!empty($default_target_frame)) {
1617 return "target=\"" . $default_target_frame . "\"";
1618 }
1619
1620 return "";
1621 }

◆ getTitleForCreationFormPage()

ilObjectGUI::getTitleForCreationFormPage ( )
protected

Definition at line 725 of file class.ilObjectGUI.php.

725 : string
726 {
727 if (!$this->obj_definition->isPlugin($this->requested_new_type)) {
728 return $this->lng->txt('obj_' . $this->requested_new_type);
729 }
730 return ilObjectPlugin::lookupTxtById($this->requested_new_type, "obj_{$this->requested_new_type}");
731 }
static lookupTxtById(string $plugin_id, string $lang_var)

References ILIAS\Repository\lng(), and ilObjectPlugin\lookupTxtById().

Referenced by createObject().

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

◆ getTranslatedObjectTypeNameFromItemArray()

ilObjectGUI::getTranslatedObjectTypeNameFromItemArray ( array  $item_array)
private

Definition at line 2239 of file class.ilObjectGUI.php.

2239 : string
2240 {
2241 return empty($item_array['plugin'])
2242 ? $this->lng->txt('obj_' . $item_array['lng'])
2243 : ilObjectPlugin::lookupTxtById($item_array['lng'], 'obj_' . $item_array['lng']);
2244 }

References ILIAS\Repository\lng(), and ilObjectPlugin\lookupTxtById().

+ Here is the call graph for this function:

◆ importFile()

ilObjectGUI::importFile ( string  $file_to_import,
string  $path_to_uploaded_file_in_temp_dir 
)
protected

Reimplemented in ilObjSAHSLearningModuleGUI, ilObjSurveyQuestionPoolGUI, ilObjTestGUI, and ilObjQuestionPoolGUI.

Definition at line 1404 of file class.ilObjectGUI.php.

1404 : void
1405 {
1406 if ($this instanceof ilContainerGUI) {
1407 $imp = new ilImportContainer($this->requested_ref_id);
1408 } else {
1409 $imp = new ilImport($this->requested_ref_id);
1410 }
1411
1412 try {
1413 $new_id = $imp->importObject(
1414 null,
1415 $file_to_import,
1416 basename($file_to_import),
1417 $this->type,
1418 '',
1419 true
1420 );
1421 } catch (ilException $e) {
1422 $this->tmp_import_dir = $imp->getTemporaryImportDir();
1423 $this->tpl->setOnScreenMessage(
1424 'failure',
1425 $this->lng->txt('obj_import_file_error') . ' <br />' . $e->getMessage()
1426 );
1427 $this->deleteUploadedImportFile($path_to_uploaded_file_in_temp_dir);
1428 return;
1429 }
1430
1431 if ($new_id === null
1432 || $new_id === 0) {
1433 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('import_file_not_valid_here'));
1434 $this->deleteUploadedImportFile($path_to_uploaded_file_in_temp_dir);
1435 return;
1436 }
1437
1438 $this->ctrl->setParameter($this, 'new_type', '');
1439
1440 $new_obj = ilObjectFactory::getInstanceByObjId($new_id);
1441 // put new object id into tree - already done in import for containers
1442 if (!$this->obj_definition->isContainer($this->type)) {
1443 $this->putObjectInTree($new_obj);
1444 } else {
1445 $ref_ids = ilObject::_getAllReferences($new_obj->getId());
1446 if (count($ref_ids) === 1) {
1447 $new_obj->setRefId((int) current($ref_ids));
1448 }
1449 $this->callCreationCallback($new_obj, $this->obj_definition, $this->requested_crtcb); // see #24244
1450 }
1451
1452 if ($path_to_uploaded_file_in_temp_dir !== ''
1453 && $this->temp_file_system->hasDir($path_to_uploaded_file_in_temp_dir)) {
1454 $this->temp_file_system->deleteDir($path_to_uploaded_file_in_temp_dir);
1455 }
1456
1457 $this->afterImport($new_obj);
1458 $this->ctrl->setParameterByClass(get_class($new_obj), 'ref_id', $new_obj->getRefId());
1459 $this->ctrl->redirectByClass(get_class($new_obj));
1460 }
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder,...
Base class for ILIAS Exception handling.
Import class.
deleteUploadedImportFile(string $path_to_uploaded_file_in_temp_dir)
putObjectInTree(ilObject $obj, ?int $parent_node_id=null)
Add object to tree at given position.
afterImport(ilObject $new_object)
Post (successful) object import hook.
callCreationCallback(\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)

References Vendor\Package\$e, ilObject\_getAllReferences(), ILIAS\Repository\ctrl(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initAddnewItemElementsFromDefaultGroups()

ilObjectGUI::initAddnewItemElementsFromDefaultGroups ( string  $create_target_class,
array  $default_groups,
array  $subtypes 
)
private

Definition at line 2133 of file class.ilObjectGUI.php.

2137 : array {
2138 $add_new_item_elements = [];
2139 $grouped_types = [];
2140
2141 foreach ($default_groups['groups'] as $group_id => $group) {
2142 $obj_types_in_group = array_keys(
2143 array_filter(
2144 $default_groups['items'],
2145 fn($item_group_id) => $item_group_id === $group_id
2146 )
2147 );
2148 $grouped_types = array_merge($grouped_types, $obj_types_in_group);
2149
2150 $group_element = $this->buildGroup(
2151 $create_target_class,
2152 $obj_types_in_group,
2153 $group['title'],
2154 $subtypes
2155 );
2156
2157 if ($group_element !== null) {
2158 $add_new_item_elements[$group['pos']] = $group_element;
2159 }
2160 }
2161
2162 $ungrouped_types = array_diff(array_keys($subtypes), $grouped_types);
2163 if ($ungrouped_types !== []) {
2164 $add_new_item_elements[] = $this->buildGroup(
2165 $create_target_class,
2166 $ungrouped_types,
2167 $this->lng->txt('rep_new_item_group_other'),
2168 $subtypes
2169 );
2170 }
2171
2172 return $add_new_item_elements;
2173 }
buildGroup(string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)

◆ initAddNewItemElementsFromNewItemGroups()

ilObjectGUI::initAddNewItemElementsFromNewItemGroups ( string  $create_target_class,
array  $new_item_groups,
array  $new_item_groups_subitems,
array  $subtypes 
)
private

Definition at line 2102 of file class.ilObjectGUI.php.

2107 : array {
2108 if ($new_item_groups === []) {
2109 return [];
2110 }
2111
2112 $new_item_groups[0] = $this->lng->txt('rep_new_item_group_other');
2113 $add_new_item_elements = [];
2114 foreach ($new_item_groups as $group_id => $group) {
2115 if (empty($new_item_groups_subitems[$group_id])) {
2116 continue;
2117 }
2118 $group_element = $this->buildGroup(
2119 $create_target_class,
2120 $new_item_groups_subitems[$group_id],
2121 $group['title'] ?? $group,
2122 $subtypes
2123 );
2124
2125 if ($group_element !== null) {
2126 $add_new_item_elements[] = $group_element;
2127 }
2128 }
2129
2130 return $add_new_item_elements;
2131 }

◆ initCreateForm()

ilObjectGUI::initCreateForm ( string  $new_type)
protected

Reimplemented in ilObjCmiXapiGUI, ilObjLTIConsumerGUI, ilObjBibliographicGUI, ilContainerReferenceGUI, ilObjEmployeeTalkSeriesGUI, ilObjFileGUI, ilObjGlossaryGUI, ilObjItemGroupGUI, ilObjSAHSLearningModuleGUI, ilObjLinkResourceGUI, and ilObjWikiGUI.

Definition at line 738 of file class.ilObjectGUI.php.

738 : StandardForm|ilPropertyFormGUI|array
739 {
740 $form_fields['title_and_description'] = (new ilObject())->getObjectProperties()->getPropertyTitleAndDescription()->toForm(
741 $this->lng,
742 $this->ui_factory->input()->field(),
744 );
745
746 $didactic_templates = $this->didacticTemplatesToForm();
747
748 if ($didactic_templates !== null) {
749 $form_fields['didactic_templates'] = $didactic_templates;
750 }
751
752 return $this->ui_factory->input()->container()->form()->standard(
753 $this->ctrl->getFormAction($this, 'save'),
754 $form_fields
755 )->withSubmitLabel(
756 !$this->obj_definition->isPlugin($new_type)
757 ? $this->lng->txt($new_type . '_add')
759 $this->requested_new_type,
760 "{$this->requested_new_type}_add"
761 )
762 );
763 }
Refinery $refinery

References $refinery, ILIAS\Repository\ctrl(), didacticTemplatesToForm(), ILIAS\Repository\lng(), and ilObjectPlugin\lookupTxtById().

Referenced by createObject(), and ilObjStudyProgrammeGUI\getAsyncCreationForm().

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

◆ initDidacticTemplate()

ilObjectGUI::initDidacticTemplate ( ilPropertyFormGUI  $form)
protected
Deprecated:
ILIAS 11 This will be removed with the next version

Reimplemented in ilObjLearningSequenceGUI, and ilObjPortfolioTemplateGUI.

Definition at line 810 of file class.ilObjectGUI.php.

811 {
812 list($existing_exclusive, $options) = $this->buildDidacticTemplateOptions();
813
814 if (sizeof($options) < 2) {
815 return $form;
816 }
817
819 $this->lng->txt('type'),
820 'didactic_type'
821 );
822 // workaround for containers in edit mode
823 if (!$this->getCreationMode()) {
824 $value = 'dtpl_' . ilDidacticTemplateObjSettings::lookupTemplateId($this->object->getRefId());
825
826 $type->setValue($value);
827
828 if (!in_array($value, array_keys($options)) || ($existing_exclusive && $value == "dtpl_0")) {
829 //add or rename actual value to not available
830 $options[$value] = [$this->lng->txt('not_available')];
831 }
832 } else {
833 if ($existing_exclusive) {
834 //if an exclusive template exists use the second template as default value - Whatever the f*** that means!
835 $keys = array_keys($options);
836 $type->setValue($keys[1]);
837 } else {
838 $type->setValue('dtpl_0');
839 }
840 }
841 $form->addItem($type);
842
843 foreach ($options as $id => $data) {
844 $option = new ilRadioOption($data[0] ?? '', (string) $id, $data[1] ?? '');
845 if ($existing_exclusive && $id == 'dtpl_0') {
846 //set default disabled if an exclusive template exists
847 $option->setDisabled(true);
848 }
849
850 $type->addOption($option);
851 }
852
853 return $form;
854 }
This class represents a property in a property form.
This class represents an option in a radio group.

References $data, $id, $type, ilPropertyFormGUI\addItem(), buildDidacticTemplateOptions(), getCreationMode(), ILIAS\Repository\lng(), ilDidacticTemplateObjSettings\lookupTemplateId(), and ILIAS\Repository\object().

Referenced by ilObjCmiXapiGUI\initCreateForm(), ilObjBibliographicGUI\initCreateForm(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjItemGroupGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilObjFolderGUI\initEditForm(), ilObjSessionGUI\initForm(), and ilObjGroupGUI\initForm().

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

◆ initEditCustomForm()

ilObjectGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected

Add custom fields to update form.

Reimplemented in ilObjContentPageGUI, ilObjTalkTemplateGUI, ilObjForumGUI, ilObjPollGUI, ilObjPortfolioBaseGUI, ilObjBookingPoolGUI, and ilObjItemGroupGUI.

Definition at line 1207 of file class.ilObjectGUI.php.

1207 : void
1208 {
1209 }

◆ initEditForm()

ilObjectGUI::initEditForm ( )
protected

Reimplemented in ilObjCategoryGUI, ilContainerGUI, ilObjCourseGUI, ilObjTalkTemplateGUI, ilObjFolderGUI, ilObjPortfolioGUI, ilObjectPluginGUI, ilObjRootFolderGUI, and ilRemoteObjectBaseGUI.

Definition at line 1175 of file class.ilObjectGUI.php.

1176 {
1177 $lng = $this->lng;
1178
1179 $lng->loadLanguageModule($this->object->getType());
1180
1181 $form = new ilPropertyFormGUI();
1182 $form->setFormAction($this->ctrl->getFormAction($this, "update"));
1183 $form->setTitle($this->lng->txt($this->object->getType() . "_edit"));
1184
1185 $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
1186 $ti->setSize(min(40, ilObject::TITLE_LENGTH));
1187 $ti->setMaxLength(ilObject::TITLE_LENGTH);
1188 $ti->setRequired(true);
1189 $form->addItem($ti);
1190
1191 $ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
1192 $ta->setCols(40);
1193 $ta->setRows(2);
1194 $ta->setMaxNumOfChars(ilObject::LONG_DESC_LENGTH);
1195 $form->addItem($ta);
1196
1197 $this->initEditCustomForm($form);
1198
1199 $form->addCommandButton("update", $this->lng->txt("save"));
1200
1201 return $form;
1202 }
loadLanguageModule(string $a_module)
Load language module.
initEditCustomForm(ilPropertyFormGUI $a_form)
Add custom fields to update form.
const TITLE_LENGTH
const LONG_DESC_LENGTH
This class represents a text area property in a property form.
This class represents a text property in a property form.

References $lng, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilObject\LONG_DESC_LENGTH, ILIAS\Repository\object(), and ilObject\TITLE_LENGTH.

Referenced by ilObjItemGroupGUI\edit(), ilObjEmployeeTalkGUI\editObject(), ilObjIndividualAssessmentGUI\getBaseEditForm(), and ilObjEmployeeTalkGUI\updateObject().

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

◆ initHeaderAction()

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

Add header action menu.

Reimplemented in ilObjFileGUI, ilObjLTIConsumerGUI, ilObjBookingPoolGUI, ilObjCmiXapiGUI, ilObjCourseGUI, ilObjForumGUI, ilObjGroupGUI, ilObject2GUI, and ilObjStudyProgrammeGUI.

Definition at line 407 of file class.ilObjectGUI.php.

408 {
409 if (!$this->creation_mode && $this->object) {
410 $dispatcher = $this->createActionDispatcherGUI();
411
412 $dispatcher->setSubObject($sub_type, $sub_id);
413
415 $this->ctrl->getLinkTarget($this, 'redrawHeaderAction', '', true),
416 "",
417 $this->ctrl->getLinkTargetByClass([ilCommonActionDispatcherGUI::class, ilTaggingGUI::class], '', '', true)
418 );
419
420 $lg = $dispatcher->initHeaderAction();
421
422 if (is_object($lg)) {
423 // to enable add to desktop / remove from desktop
424 if ($this instanceof ilDesktopItemHandling) {
425 $lg->setContainerObject($this);
426 }
427 // enable multi download
428 $lg->enableMultiDownload(true);
429
430 // comments settings are always on (for the repository)
431 // should only be shown if active or permission to toggle
432 if (
433 $this->access->checkAccess("write", "", $this->ref_id) ||
434 $this->access->checkAccess("edit_permissions", "", $this->ref_id) ||
435 $this->notes_service->domain()->commentsActive($this->object->getId())
436 ) {
437 $lg->enableComments(true);
438 }
439
440 $lg->enableNotes(true);
441 $lg->enableTags(true);
442 }
443
444 return $lg;
445 }
446 return null;
447 }
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ?ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.

References ILIAS\Repository\access(), createActionDispatcherGUI(), ILIAS\Repository\ctrl(), and ilObjectListGUI\prepareJsLinks().

Referenced by addHeaderAction(), and redrawHeaderActionObject().

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

◆ insertHeaderAction()

ilObjectGUI::insertHeaderAction ( ?ilObjectListGUI  $list_gui = null)
protected

Insert header action into main template.

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

452 : void
453 {
454 if (
455 !is_object($this->object) ||
456 ilContainer::_lookupContainerSetting($this->object->getId(), "hide_top_actions")
457 ) {
458 return;
459 }
460
461 if (is_object($list_gui)) {
462 $this->tpl->setHeaderActionMenu($list_gui->getHeaderAction());
463 }
464 }
static _lookupContainerSetting(int $a_id, string $a_keyword, ?string $a_default_value=null)

References ilContainer\_lookupContainerSetting(), and ILIAS\Repository\object().

Referenced by addHeaderAction().

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

◆ isVisible()

ilObjectGUI::isVisible ( int  $ref_id,
string  $type 
)

Reimplemented in ilObject2GUI.

Definition at line 1631 of file class.ilObjectGUI.php.

1631 : bool
1632 {
1633 $visible = $this->checkPermissionBool("visible,read", "", "", $ref_id);
1634
1635 if ($visible && $type == 'crs') {
1637 if ($crs_id = $tree->checkForParentType($ref_id, 'crs')) {
1638 if (!$this->checkPermissionBool("write", "", "", $crs_id)) {
1639 // Show only activated courses
1640 $tmp_obj = ilObjectFactory::getInstanceByRefId($crs_id, false);
1641
1642 if (!$tmp_obj->isActivated()) {
1643 unset($tmp_obj);
1644 $visible = false;
1645 }
1646 }
1647 }
1648 }
1649
1650 return $visible;
1651 }
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 $ref_id, ilTree\checkForParentType(), and ilObjectFactory\getInstanceByRefId().

+ Here is the call graph for this function:

◆ omitLocator()

ilObjectGUI::omitLocator ( bool  $omit = true)
protected

Reimplemented in ilObject2GUI.

Definition at line 568 of file class.ilObjectGUI.php.

568 : void
569 {
570 $this->omit_locator = $omit;
571 }

Referenced by ilObjEmployeeTalkGUI\__construct(), and ilObjEmployeeTalkSeriesGUI\__construct().

+ Here is the caller graph for this function:

◆ parseDidacticTemplateVar()

ilObjectGUI::parseDidacticTemplateVar ( string  $var,
string  $type 
)
protected

Definition at line 1099 of file class.ilObjectGUI.php.

1099 : int
1100 {
1101 if (substr($var, 0, strlen($type) + 1) != $type . "_") {
1102 return 0;
1103 }
1104
1105 return (int) substr($var, strlen($type) + 1);
1106 }

Referenced by ilObjItemGroupGUI\save().

+ Here is the caller graph for this function:

◆ prepareOutput()

ilObjectGUI::prepareOutput ( bool  $show_sub_objects = true)

Reimplemented in ilObject2GUI, ilObjSessionGUI, and ilObjGroupGUI.

Definition at line 307 of file class.ilObjectGUI.php.

307 : bool
308 {
309 $this->tpl->loadStandardTemplate();
310 $base_class = $this->request_wrapper->retrieve("baseClass", $this->refinery->kindlyTo()->string());
311 if (strtolower($base_class) == "iladministrationgui") {
312 $this->addAdminLocatorItems();
313 $this->tpl->setLocator();
314
315 $this->setTitleAndDescription();
316
317 if ($this->getCreationMode() != true) {
318 $this->setAdminTabs();
319 }
320
321 return false;
322 }
323 $this->setLocator();
324
325 // in creation mode (parent) object and gui object do not fit
326 if ($this->getCreationMode() === true) {
327 // repository vs. workspace
328 if ($this->call_by_reference) {
329 // get gui class of parent and call their title and description method
330 $obj_type = ilObject::_lookupType($this->requested_ref_id, true);
331 $class_name = $this->obj_definition->getClassName($obj_type);
332 $class = strtolower("ilObj" . $class_name . "GUI");
333 $class_path = $this->ctrl->lookupClassPath($class);
334 $class_name = $this->ctrl->getClassForClasspath($class_path);
335 }
336 } else {
337 $this->setTitleAndDescription();
338
339 // set tabs
340 $this->setTabs();
341
342 $file_upload_dropzone = new ilObjFileUploadDropzone($this->ref_id);
343 if ($file_upload_dropzone->isUploadAllowed($this->object->getType())) {
345 }
346 }
347
348 return true;
349 }
enableDragDropFileUpload()
Enables the file upload into this object by dropping files.
setAdminTabs()
set admin tabs
addAdminLocatorItems(bool $do_not_add_object=false)
should be overwritten to add object specific items (repository items are preloaded)
setTabs()
set admin tabs

References ilObject\_lookupType(), addAdminLocatorItems(), ILIAS\Repository\ctrl(), enableDragDropFileUpload(), getCreationMode(), ILIAS\Repository\refinery(), setAdminTabs(), setLocator(), setTabs(), and setTitleAndDescription().

Referenced by ilObjFileBasedLMGUI\edit(), ilObjRoleFolderGUI\executeCommand(), ilObjRoleGUI\executeCommand(), ilObjRoleTemplateGUI\executeCommand(), ilObjExternalToolsSettingsGUI\executeCommand(), ilObjRecoveryFolderGUI\executeCommand(), ilObjAwarenessAdministrationGUI\executeCommand(), ilObjBadgeAdministrationGUI\executeCommand(), ilObjBibliographicAdminGUI\executeCommand(), ilObjBlogAdministrationGUI\executeCommand(), ilObjCalendarSettingsGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjCertificateSettingsGUI\executeCommand(), ilObjChatroomAdminGUI\executeCommand(), ilObjChatroomGUI\executeCommand(), ilObjCmiXapiAdministrationGUI\executeCommand(), ilObjComponentSettingsGUI\executeCommand(), ilContainerReferenceGUI\executeCommand(), ilObjContentPageAdministrationGUI\executeCommand(), ilObjAdvancedEditingGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjCourseReferenceGUI\executeCommand(), ilObjDashboardSettingsGUI\executeCommand(), ilObjObjectTemplateAdministrationGUI\executeCommand(), ilObjExerciseAdministrationGUI\executeCommand(), ilObjFileAccessSettingsGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjForumAdministrationGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), executeCommand(), ilObjObjectFolderGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjLanguageFolderGUI\executeCommand(), ilObjLearningHistorySettingsGUI\executeCommand(), ilObjLearningResourcesSettingsGUI\executeCommand(), ilObjLearningSequenceAdminGUI\executeCommand(), ilObjLoggingSettingsGUI\executeCommand(), ilObjLTIAdministrationGUI\executeCommand(), ilObjMailGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjMediaCastSettingsGUI\executeCommand(), ilObjMediaObjectsSettingsGUI\executeCommand(), ilMembershipAdministrationGUI\executeCommand(), ilObjMDSettingsGUI\executeCommand(), ilObjNewsSettingsGUI\executeCommand(), ilObjCommentsSettingsGUI\executeCommand(), ilObjNotesSettingsGUI\executeCommand(), ilObjNotificationAdminGUI\executeCommand(), ilObjPersonalWorkspaceSettingsGUI\executeCommand(), ilObjPortfolioAdministrationGUI\executeCommand(), ilObjPrivacySecurityGUI\executeCommand(), ilObjRepositorySettingsGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjSAHSLearningModuleGUI\executeCommand(), ilObjSearchSettingsGUI\executeCommand(), ilObjSkillManagementGUI\executeCommand(), ilObjSkillTreeGUI\executeCommand(), ilObjStudyProgrammeAdminGUI\executeCommand(), ilObjStyleSettingsGUI\executeCommand(), ilObjStyleSheetGUI\executeCommand(), ilObjSurveyAdministrationGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjSystemCheckGUI\executeCommand(), ilObjSystemFolderGUI\executeCommand(), ilObjTaggingSettingsGUI\executeCommand(), ilObjTaxonomyAdministrationGUI\executeCommand(), ilObjTestFolderGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjUserTrackingGUI\executeCommand(), ilObjUserFolderGUI\executeCommand(), ilObjUserGUI\executeCommand(), ilObjWebDAVGUI\executeCommand(), ilObjWebResourceAdministrationGUI\executeCommand(), ilObjECSSettingsGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjChatroomGUI\fallback(), ilObjChatroomGUI\infoScreen(), ilObjChatroomGUI\settings(), ilChatroomObjectGUI\switchToVisibleMode(), and ilObjLearningModuleGUI\view().

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

◆ putObjectInTree()

ilObjectGUI::putObjectInTree ( ilObject  $obj,
?int  $parent_node_id = null 
)

Add object to tree at given position.

Reimplemented in ilObjFileGUI, and ilObject2GUI.

Definition at line 1111 of file class.ilObjectGUI.php.

1111 : void
1112 {
1113 if (!$parent_node_id) {
1114 $parent_node_id = $this->requested_ref_id;
1115 }
1116
1117 // add new object to custom parent container
1118 if ($this->requested_crtptrefid > 0) {
1119 $parent_node_id = $this->requested_crtptrefid;
1120 }
1121
1122 $obj->createReference();
1123 $obj->putInTree($parent_node_id);
1124 $obj->setPermissions($parent_node_id);
1125
1126 $this->obj_id = $obj->getId();
1127 $this->ref_id = $obj->getRefId();
1128
1129 // BEGIN ChangeEvent: Record save object.
1130 ilChangeEvent::_recordWriteEvent($this->obj_id, $this->user->getId(), 'create');
1131 // END ChangeEvent: Record save object.
1132
1133 // rbac log
1134 $rbac_log_roles = $this->rbac_review->getParentRoleIds($this->ref_id, false);
1135 $rbac_log = ilRbacLog::gatherFaPa($this->ref_id, array_keys($rbac_log_roles), true);
1136 ilRbacLog::add(ilRbacLog::CREATE_OBJECT, $this->ref_id, $rbac_log);
1137
1138 // use forced callback after object creation
1139 $this->callCreationCallback($obj, $this->obj_definition, $this->requested_crtcb);
1140 }
static _recordWriteEvent(int $obj_id, int $usr_id, string $action, ?int $parent_obj_id=null)
Records a write event.
setPermissions(int $parent_ref_id)
createReference()
creates reference for object
putInTree(int $parent_ref_id)
maybe this method should be in tree object!?
static add(int $action, int $ref_id, array $diff, bool $source_ref_id=false)
static gatherFaPa(int $ref_id, array $role_ids, bool $add_action=false)
const CREATE_OBJECT

References $requested_ref_id, ilChangeEvent\_recordWriteEvent(), ilRbacLog\add(), ilRbacLog\CREATE_OBJECT, ilObject\createReference(), ilRbacLog\gatherFaPa(), ilObject\getId(), ilObject\getRefId(), ilObject\putInTree(), ilObject\setPermissions(), and ILIAS\Repository\user().

Referenced by ilObjFileBasedLMGUI\createFromDirectory(), ilObjSAHSLearningModuleGUI\importFile(), ilObjSurveyQuestionPoolGUI\importFile(), ilContainerReferenceGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), and ilObjGlossaryGUI\saveObject().

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

◆ redirectToRefId()

ilObjectGUI::redirectToRefId ( int  $ref_id,
string  $cmd = "" 
)
protected

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

Reimplemented in ilObject2GUI, and ilObjOrgUnitGUI.

Definition at line 1856 of file class.ilObjectGUI.php.

1856 : void
1857 {
1858 $obj_type = ilObject::_lookupType($ref_id, true);
1859 $class_name = $this->obj_definition->getClassName($obj_type);
1860 $class = strtolower("ilObj" . $class_name . "GUI");
1861 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $ref_id);
1862 $this->ctrl->redirectByClass(["ilrepositorygui", $class], $cmd);
1863 }

References $ref_id, ilObject\_lookupType(), and ILIAS\Repository\ctrl().

Referenced by ilObjFolderGUI\afterSave(), ilObjUserGUI\saveObject(), and ilObjSessionGUI\unregisterObject().

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

◆ redrawHeaderActionObject()

ilObjectGUI::redrawHeaderActionObject ( )
protected

Ajax call: redraw action header only.

Definition at line 477 of file class.ilObjectGUI.php.

477 : void
478 {
479 $lg = $this->initHeaderAction();
480 echo $lg->getHeaderAction();
481
482 // we need to add onload code manually (rating, comments, etc.)
483 echo $this->tpl->getOnLoadCodeForAsynch();
484 exit;
485 }
exit

References exit, and initHeaderAction().

Referenced by ilObjLearningSequenceGUI\executeCommand(), and ilObjFileBasedLMGUI\redrawHeaderAction().

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

◆ removeFromDeskObject()

ilObjectGUI::removeFromDeskObject ( )

Definition at line 2048 of file class.ilObjectGUI.php.

2048 : void
2049 {
2050 $this->lng->loadLanguageModule("rep");
2051 $item_ref_id = $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int());
2052 $this->favourites->remove($this->user->getId(), $item_ref_id);
2053 $this->tpl->setOnScreenMessage("success", $this->lng->txt("rep_removed_from_favourites"), true);
2054 $this->ctrl->redirectToURL(ilLink::_getLink($this->requested_ref_id));
2055 }

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

+ Here is the call graph for this function:

◆ retrieveAdditionalDidacticTemplateOptions()

ilObjectGUI::retrieveAdditionalDidacticTemplateOptions ( )
protected
Returns
array<string>

Reimplemented in ilObjSurveyGUI, and ilObjTestGUI.

Definition at line 891 of file class.ilObjectGUI.php.

891 : array
892 {
893 return [];
894 }

Referenced by buildDidacticTemplateOptions().

+ Here is the caller graph for this function:

◆ retrieveAndCheckImportData()

ilObjectGUI::retrieveAndCheckImportData ( )
private

Definition at line 1470 of file class.ilObjectGUI.php.

1470 : ?array
1471 {
1472 $modal = $this->buildImportModal()->withRequest($this->request);
1473 $data = $modal->getData();
1474
1475 if ($data !== null) {
1476 return $data;
1477 }
1478
1479 $this->import_modal = $modal->withOnLoad($modal->getShowSignal());
1480 return null;
1481 }

References $data.

◆ retrieveAndCheckImportTypeData()

ilObjectGUI::retrieveAndCheckImportTypeData ( )
private

Definition at line 1483 of file class.ilObjectGUI.php.

1483 : ?array
1484 {
1485 $modal = $this->buildImportTypeSelectorModal()->withRequest($this->request);
1486 $data = $modal->getData();
1487
1488 if ($data !== null) {
1489 return $data;
1490 }
1491
1492 $this->import_type_selector_modal = $modal->withOnLoad($modal->getShowSignal());
1493 return null;
1494 }
buildImportTypeSelectorModal(?string $file_to_import=null, ?string $upload_file_name=null)

References $data.

◆ retrieveFilesAndUploadTypeFromData()

ilObjectGUI::retrieveFilesAndUploadTypeFromData ( array  $data)
private

Definition at line 1511 of file class.ilObjectGUI.php.

1511 : array
1512 {
1513 if (isset($data['type']) && isset($data['file_to_import']) && isset($data['temp_file'])) {
1514 return [
1515 $data['type'],
1516 implode(
1517 DIRECTORY_SEPARATOR,
1518 [CLIENT_DATA_DIR, 'temp', $data['temp_file'], $data['file_to_import']]
1519 ),
1520 $data['temp_file']
1521 ];
1522 }
1523 $file_to_import = $this->getFileToImportFromImportFormData($data);
1524 $path_to_uploaded_file_in_temp_dir = '';
1525 if (array_key_first($data['upload']) === self::UPLOAD_TYPE_LOCAL) {
1526 $path_to_uploaded_file_in_temp_dir = $data['upload'][self::UPLOAD_TYPE_LOCAL];
1527 }
1528
1529 return [
1530 $this->extractFileTypeFromImportFilename(basename($file_to_import)),
1531 $file_to_import,
1532 $path_to_uploaded_file_in_temp_dir
1533 ];
1534 }
getFileToImportFromImportFormData(array $data)

References $data, and CLIENT_DATA_DIR.

◆ routeImportCmdObject()

ilObjectGUI::routeImportCmdObject ( )
protected

Definition at line 1356 of file class.ilObjectGUI.php.

1356 : void
1357 {
1358 if ($this->request_wrapper->has('step')) {
1360 } else {
1362 }
1363
1364 if ($data === null) {
1365 $this->viewObject();
1366 return;
1367 }
1368
1369 [$new_type, $file_to_import, $path_to_uploaded_file_in_temp_dir] = $this
1370 ->retrieveFilesAndUploadTypeFromData($data);
1371
1372 if ($new_type === null) {
1374 basename($file_to_import),
1375 $path_to_uploaded_file_in_temp_dir
1376 );
1377 return;
1378 }
1379
1380 // create permission is already checked in createObject. This check here is done to prevent hacking attempts
1381 if (!$this->checkPermissionBool('create', '', $new_type)
1382 || !in_array($new_type, $this->obj_definition->getAllObjects())
1383 || !array_key_exists($new_type, $this->object->getPossibleSubObjects())) {
1384 $this->deleteUploadedImportFile($path_to_uploaded_file_in_temp_dir);
1385 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_create_permission'));
1386 $this->viewObject();
1387 return;
1388 }
1389
1390 $this->lng->loadLanguageModule($new_type);
1391 $this->ctrl->setParameter($this, 'new_type', $new_type);
1392
1393 $target_class = 'ilObj' . $this->obj_definition->getClassName($new_type) . 'GUI';
1394 try {
1395 $target = new $target_class('', 0, false, false);
1396 } catch (TypeError $e) {
1397 $target = new $target_class(0, ilObject2GUI::REPOSITORY_NODE_ID, $this->getRefId());
1398 }
1399 $target->importFile($file_to_import, $path_to_uploaded_file_in_temp_dir);
1400 $this->ctrl->clearParameterByClass(get_class($this), 'new_type');
1401 $this->viewObject();
1402 }
viewObject()
viewObject container presentation for "administration -> repository, trash, permissions"
showImportTypeSelectorModal(?string $file_to_import=null, ?string $path_to_uploaded_file_in_temp_dir=null)

References $data, Vendor\Package\$e, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilObject2GUI\REPOSITORY_NODE_ID.

Referenced by ilObjLearningSequenceGUI\executeCommand(), and ilObjOrgUnitGUI\executeCommand().

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

◆ saveAvailabilityPeriodObject()

ilObjectGUI::saveAvailabilityPeriodObject ( )

Definition at line 997 of file class.ilObjectGUI.php.

997 : void
998 {
999 $availability_period_modal = $this->getMultiObjectPropertiesManipulator()->saveEditAvailabilityPeriodPropertiesModal(
1000 $this,
1001 fn($ref_ids): bool => $this->checkPermissionBool('write') || $this->checkWritePermissionOnRefIdArray($ref_ids),
1002 $this->request
1003 );
1004 if ($availability_period_modal === true) {
1005 $this->tpl->setOnScreenMessage('success', $this->lng->txt('availability_period_changed'));
1006 } elseif ($availability_period_modal === false) {
1007 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_write'));
1008 } else {
1009 $this->tpl->setVariable(
1010 'IL_OBJECT_EPHEMRAL_MODALS',
1011 $this->ui_renderer->render(
1012 $availability_period_modal->withOnLoad(
1013 $availability_period_modal->getShowSignal()
1014 )
1015 )
1016 );
1017 }
1018 $this->renderObject();
1019 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ saveObject()

ilObjectGUI::saveObject ( )

Reimplemented in ilObjRoleGUI, ilObjRoleTemplateGUI, ilObjRecoveryFolderGUI, ilObjBibliographicGUI, ilContainerReferenceGUI, ilObjAdvancedEditingGUI, ilObjEmployeeTalkSeriesGUI, ilObjGlossaryGUI, ilObjTypeDefinitionGUI, ilObjLanguageExtGUI, ilObjLTIConsumerGUI, ilObjMailGUI, ilObjMediaObjectGUI, ilObjStudyProgrammeReferenceGUI, ilObjStyleSheetGUI, ilObjUserGUI, and ilObjLinkResourceGUI.

Definition at line 1029 of file class.ilObjectGUI.php.

1029 : void
1030 {
1031 // create permission is already checked in createObject. This check here is done to prevent hacking attempts
1032 if (!$this->checkPermissionBool("create", "", $this->requested_new_type)) {
1033 $this->error->raiseError($this->lng->txt("no_create_permission"), $this->error->MESSAGE);
1034 }
1035
1036 $this->lng->loadLanguageModule($this->requested_new_type);
1037 $this->ctrl->setParameter($this, "new_type", $this->requested_new_type);
1038
1039 $form = $this->initCreateForm($this->requested_new_type)
1040 ->withRequest($this->request);
1041 $data = $form->getData();
1042 if ($data === null) {
1043 $this->tpl->setContent($this->getCreationFormsHTML($form));
1044 return;
1045 }
1046
1047 $this->ctrl->setParameter($this, 'new_type', '');
1048
1049 $class_name = 'ilObj' . $this->obj_definition->getClassName($this->requested_new_type);
1050
1051 $new_obj = new $class_name();
1052 $new_obj->setType($this->requested_new_type);
1053 $new_obj->processAutoRating();
1054 $new_obj->setTitle($data['title_and_description']->getTitle());
1055 $new_obj->setDescription($data['title_and_description']->getDescription());
1056 $new_obj->create();
1057
1058 $new_obj->getObjectProperties()->storePropertyTitleAndDescription(
1059 $data['title_and_description']
1060 );
1061
1062 $this->putObjectInTree($new_obj);
1063
1064 $dtpl = $data['didactic_templates'] ?? null;
1065 if ($dtpl !== null) {
1066 $dtpl_id = $this->parseDidacticTemplateVar($dtpl, 'dtpl');
1067 $new_obj->applyDidacticTemplate($dtpl_id);
1068 }
1069
1070 $this->afterSave($new_obj);
1071 }
afterSave(ilObject $new_object)
Post (successful) object creation hook.

References $data, ILIAS\Repository\ctrl(), error(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), and ILIAS\Repository\lng().

Referenced by ilObjSessionGUI\saveAndAssignMaterialsObject().

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

◆ setAdminMode()

ilObjectGUI::setAdminMode ( string  $mode)

Definition at line 233 of file class.ilObjectGUI.php.

233 : void
234 {
235 if (!in_array($mode, [
236 self::ADMIN_MODE_NONE,
237 self::ADMIN_MODE_REPOSITORY,
238 self::ADMIN_MODE_SETTINGS
239 ])) {
240 throw new ilObjectException("Unknown Admin Mode $mode.");
241 }
242 $this->admin_mode = $mode;
243 }
Base exception class for object service.

◆ setAdminTabs()

ilObjectGUI::setAdminTabs ( )
finalprotected

set admin tabs

Definition at line 498 of file class.ilObjectGUI.php.

498 : void
499 {
500 $this->getAdminTabs();
501 }
getAdminTabs()
administration tabs show only permissions and trash folder

References getAdminTabs().

Referenced by ilObjectPluginGUI\executeCommand(), and prepareOutput().

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

◆ setColumnSettings()

ilObjectGUI::setColumnSettings ( ilColumnGUI  $column_gui)

Reimplemented in ilContainerGUI, ilObjForumGUI, and ilObject2GUI.

Definition at line 1933 of file class.ilObjectGUI.php.

1933 : void
1934 {
1935 $column_gui->setRepositoryMode(true);
1936 $column_gui->setEnableEdit(false);
1937 if ($this->checkPermissionBool("write")) {
1938 $column_gui->setEnableEdit(true);
1939 }
1940 }
setEnableEdit(bool $a_enableedit)
setRepositoryMode(bool $a_repositorymode)

References ilColumnGUI\setEnableEdit(), and ilColumnGUI\setRepositoryMode().

+ Here is the call graph for this function:

◆ setCreationMode()

ilObjectGUI::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.

Reimplemented in ilObject2GUI.

Definition at line 285 of file class.ilObjectGUI.php.

285 : void
286 {
287 $this->creation_mode = $mode;
288 }

Referenced by ilContainerReferenceGUI\executeCommand(), ilObjTalkTemplateGUI\executeCommand(), and ilObjStyleSheetGUI\executeCommand().

+ Here is the caller graph for this function:

◆ setFormAction()

ilObjectGUI::setFormAction ( string  $cmd,
string  $form_action 
)
protected

Definition at line 1582 of file class.ilObjectGUI.php.

1582 : void
1583 {
1584 $this->form_action[$cmd] = $form_action;
1585 }

◆ setLocator()

ilObjectGUI::setLocator ( )
protected

Reimplemented in ilObjGlossaryGUI, ilObject2GUI, and ilOrgUnitExtensionGUI.

Definition at line 532 of file class.ilObjectGUI.php.

532 : void
533 {
534 $ilLocator = $this->locator;
536
537 if ($this->omit_locator) {
538 return;
539 }
540
541 // repository vs. workspace
542 if ($this->call_by_reference) {
543 // todo: admin workaround
544 // in the future, object gui classes should not be called in
545 // admin section anymore (rbac/trash handling in own classes)
547 if ($this->requested_ref_id === 0) {
548 $ref_id = $this->object->getRefId();
549 }
550 $ilLocator->addRepositoryItems($ref_id);
551 }
552
553 if (!$this->creation_mode) {
554 $this->addLocatorItems();
555 }
556
557 $tpl->setLocator();
558 }
addLocatorItems()
should be overwritten to add object specific items (repository items are preloaded)
ilLocatorGUI $locator
setLocator()
Insert locator.

References $locator, $ref_id, $requested_ref_id, $tpl, addLocatorItems(), and ILIAS\UICore\GlobalTemplate\setLocator().

Referenced by ilObjFileBasedLMGUI\executeCommand(), ilObjSAHSLearningModuleGUI\executeCommand(), and prepareOutput().

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

◆ setReturnLocation()

ilObjectGUI::setReturnLocation ( string  $cmd,
string  $location 
)
protected

set specific return location for command

Reimplemented in ilObject2GUI.

Definition at line 1602 of file class.ilObjectGUI.php.

1602 : void
1603 {
1604 $this->return_location[$cmd] = $location;
1605 }
$location
Definition: buildRTE.php:22

References $location.

◆ setTabs()

◆ setTargetFrame()

ilObjectGUI::setTargetFrame ( string  $cmd,
string  $target_frame 
)
protected

Set specific target frame for command.

Reimplemented in ilObject2GUI.

Definition at line 1626 of file class.ilObjectGUI.php.

1626 : void
1627 {
1628 $this->target_frame[$cmd] = "target=\"" . $target_frame . "\"";
1629 }

◆ setTitleAndDescription()

ilObjectGUI::setTitleAndDescription ( )
protected

Reimplemented in ilContainerGUI, ilObjContentPageGUI, ilObjTalkTemplateAdministrationGUI, ilObjEmployeeTalkSeriesGUI, ilObjFileServicesGUI, ilObject2GUI, ilObjLanguageExtGUI, ilObjOrgUnitGUI, ilObjPortfolioGUI, ilObjRootFolderGUI, ilObjQuestionPoolGUI, ilObjUserGUI, ilObjWebDAVGUI, and ilObjWorkspaceRootFolderGUI.

Definition at line 351 of file class.ilObjectGUI.php.

351 : void
352 {
353 if (!is_object($this->object)) {
354 if ($this->requested_crtptrefid > 0) {
355 $cr_obj_id = ilObject::_lookupObjId($this->requested_crtcb);
356 $this->tpl->setTitle(
357 $this->refinery->encode()->htmlSpecialCharsAsEntities()->transform(
358 ilObject::_lookupTitle($cr_obj_id)
359 )
360 );
361 $this->tpl->setTitleIcon(ilObject::_getIcon($cr_obj_id));
362 }
363 return;
364 }
365 $this->tpl->setTitle(
366 $this->refinery->encode()->htmlSpecialCharsAsEntities()->transform(
367 $this->object->getPresentationTitle()
368 )
369 );
370 $this->tpl->setDescription(
371 $this->refinery->encode()->htmlSpecialCharsAsEntities()->transform(
372 $this->object->getLongDescription()
373 )
374 );
375
376 $base_class = $this->request_wrapper->retrieve("baseClass", $this->refinery->kindlyTo()->string());
377 if (strtolower($base_class) === "iladministrationgui") {
378 // alt text would be same as heading -> empty alt text
379 $this->tpl->setTitleIcon(ilObject::_getIcon(0, "big", $this->object->getType()));
380 } else {
381 $this->tpl->setTitleIcon(
382 ilObject::_getIcon($this->object->getId(), "big", $this->object->getType()),
383 $this->lng->txt("obj_" . $this->object->getType())
384 );
385 }
386 if (!$this->obj_definition->isAdministrationObject($this->object->getType())) {
387 $lgui = ilObjectListGUIFactory::_getListGUIByType($this->object->getType());
388 $lgui->initItem($this->object->getRefId(), $this->object->getId(), $this->object->getType());
389 $this->tpl->setAlertProperties($lgui->getAlertProperties());
390 }
391 }
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.

References ilObject\_getIcon(), ilObjectListGUIFactory\_getListGUIByType(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ILIAS\Repository\object(), and ILIAS\Repository\refinery().

Referenced by prepareOutput(), and ilObjFileBasedLMGUI\setTabs().

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

◆ showImportTypeSelectorModal()

ilObjectGUI::showImportTypeSelectorModal ( ?string  $file_to_import = null,
?string  $path_to_uploaded_file_in_temp_dir = null 
)
private

Definition at line 1496 of file class.ilObjectGUI.php.

1499 : void {
1500 $this->ctrl->setParameterByClass(static::class, 'step', 'select_type');
1501 $modal = $this->buildImportTypeSelectorModal(
1502 $file_to_import,
1503 $path_to_uploaded_file_in_temp_dir
1504 );
1505 $this->ctrl->clearParameterByClass(static::class, 'step');
1506 $this->import_type_selector_modal = $modal->withOnLoad($modal->getShowSignal());
1507 $this->viewObject();
1508 return;
1509 }

◆ showPossibleSubObjects()

ilObjectGUI::showPossibleSubObjects ( )
protected

show possible sub objects (pull down menu)

Reimplemented in ilObjRecoveryFolderGUI, ilContainerGUI, ilObjCourseGUI, ilObjTalkTemplateAdministrationGUI, ilObjFolderGUI, ilObject2GUI, ilObjLearningSequenceGUI, ilObjOrgUnitGUI, and ilObjUserFolderGUI.

Definition at line 1801 of file class.ilObjectGUI.php.

1801 : void
1802 {
1803 if ($this->sub_objects == "") {
1804 $sub_objects = $this->obj_definition->getCreatableSubObjects(
1805 $this->object->getType(),
1807 $this->ref_id
1808 );
1809 } else {
1811 }
1812
1813 $subobj = [];
1814 if (count($sub_objects) > 0) {
1815 foreach ($sub_objects as $row) {
1816 $count = 0;
1817 if ($row["max"] > 0) {
1818 //how many elements are present?
1819 for ($i = 0; $i < count($this->data["ctrl"]); $i++) {
1820 if ($this->data["ctrl"][$i]["type"] == $row["name"]) {
1821 $count++;
1822 }
1823 }
1824 }
1825
1826 if ($row["max"] == "" || $count < $row["max"]) {
1827 $subobj[] = $row["name"];
1828 }
1829 }
1830 }
1831
1832 if (count($subobj) > 0) {
1833 $opts = ilLegacyFormElementsUtil::formSelect(12, "new_type", $subobj);
1834 $this->tpl->setCurrentBlock("add_object");
1835 $this->tpl->setVariable("SELECT_OBJTYPE", $opts);
1836 $this->tpl->setVariable("BTN_NAME", "create");
1837 $this->tpl->setVariable("TXT_ADD", $this->lng->txt("add"));
1838 $this->tpl->parseCurrentBlock();
1839 }
1840 }
static formSelect( $selected, string $varname, array $options, bool $multiple=false, bool $direct_text=false, int $size=0, string $style_class="", array $attribs=[], bool $disabled=false)
Builds a select form field with options and shows the selected option first.

References ilLegacyFormElementsUtil\formSelect(), ILIAS\Repository\lng(), ilObjectDefinition\MODE_REPOSITORY, and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ updateCustom()

ilObjectGUI::updateCustom ( ilPropertyFormGUI  $form)
protected

Insert custom update form values into object.

Reimplemented in ilObjExerciseGUI, ilObjContentPageGUI, ilObjTalkTemplateGUI, ilObjFolderGUI, ilObjForumGUI, ilObjItemGroupGUI, ilObjPollGUI, ilObjPortfolioBaseGUI, ilObjPortfolioGUI, and ilObjPortfolioTemplateGUI.

Definition at line 1263 of file class.ilObjectGUI.php.

1263 : void
1264 {
1265 }

Referenced by ilObjEmployeeTalkGUI\updateObject().

+ Here is the caller graph for this function:

◆ updateObject()

ilObjectGUI::updateObject ( )

updates object entry in object_data

Reimplemented in ilObjRoleGUI, ilObjRoleTemplateGUI, ilObjBibliographicGUI, ilObjCategoryGUI, ilContainerReferenceGUI, ilObjCourseGUI, ilObjEmployeeTalkGUI, ilObjGroupGUI, ilObjRootFolderGUI, ilObjSessionGUI, ilObjStudyProgrammeReferenceGUI, ilObjStyleSheetGUI, ilObjSurveyQuestionPoolGUI, ilObjQuestionPoolGUI, ilObjUserGUI, and ilRemoteObjectBaseGUI.

Definition at line 1229 of file class.ilObjectGUI.php.

1229 : void
1230 {
1231 if (!$this->checkPermissionBool("write")) {
1232 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
1233 }
1234
1235 $form = $this->initEditForm();
1236 if ($form->checkInput() && $this->validateCustom($form)) {
1237 $this->updateCustom($form);
1238 $this->object->setTitle($form->getInput('title'));
1239 $this->object->setDescription($form->getInput('desc'));
1240 $this->object->update();
1241
1242 $this->afterUpdate();
1243 return;
1244 }
1245
1246 // display form again to correct errors
1247 $this->tabs_gui->activateTab("settings");
1248 $form->setValuesByPost();
1249 $this->tpl->setContent($form->getHTML());
1250 }
afterUpdate()
Post (successful) object update hook.
updateCustom(ilPropertyFormGUI $form)
Insert custom update form values into object.

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

Referenced by ilObjFileBasedLMGUI\update().

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

◆ validateCustom()

ilObjectGUI::validateCustom ( ilPropertyFormGUI  $form)
protected

Validate custom values (if not possible with checkInput())

Reimplemented in ilObjEmployeeTalkGUI, and ilObjPollGUI.

Definition at line 1255 of file class.ilObjectGUI.php.

1255 : bool
1256 {
1257 return true;
1258 }

◆ viewObject()

ilObjectGUI::viewObject ( )

viewObject container presentation for "administration -> repository, trash, permissions"

Reimplemented in ilObjRoleFolderGUI, ilObjAuthSettingsGUI, ilObjCategoryGUI, ilObjTalkTemplateAdministrationGUI, ilObjTalkTemplateGUI, ilObjEmployeeTalkGUI, ilObjEmployeeTalkSeriesGUI, ilObjExerciseGUI, ilObjFolderGUI, ilObjGlossaryGUI, ilObjGroupGUI, ilObjObjectFolderGUI, ilObjTypeDefinitionGUI, ilObjIndividualAssessmentGUI, ilObjLanguageFolderGUI, ilObjMailGUI, ilObjRootFolderGUI, ilObjStyleSheetGUI, ilObjSystemFolderGUI, ilObjUserFolderGUI, and ilObjWikiGUI.

Definition at line 1656 of file class.ilObjectGUI.php.

1656 : void
1657 {
1658 $this->checkPermission('visible') && $this->checkPermission('read');
1659
1660 $this->tabs_gui->activateTab('view');
1661
1663 $this->object->getType(),
1664 $this->object->getRefId(),
1665 $this->object->getId(),
1666 $this->user->getId()
1667 );
1668
1669 if (!$this->withReferences()) {
1670 $this->ctrl->setParameter($this, 'obj_id', $this->obj_id);
1671 }
1672
1673 $itab = new ilAdminSubItemsTableGUI(
1674 $this,
1675 "view",
1676 $this->requested_ref_id,
1677 $this->checkPermissionBool('write')
1678 );
1679
1680 $this->tpl->setContent($itab->getHTML());
1681 }
TableGUI class for sub items listed in repository administration.
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, bool $isCatchupWriteEvents=true, $a_ext_rc=null, $a_ext_time=null)
withReferences()
determines whether objects are referenced or not (got ref ids or not)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)

References ilChangeEvent\_recordReadEvent(), ILIAS\Repository\ctrl(), and ILIAS\Repository\object().

Referenced by ilObjLanguageExtGUI\applyFilterObject(), ilObjLanguageExtGUI\cancelObject(), ilObjCourseGUI\executeCommand(), ilObjCourseGUI\gatewayObject(), ilObjCourseGUI\leaveObject(), ilObjCourseGUI\renderObject(), ilObjLanguageExtGUI\resetFilterObject(), and ilObjLanguageExtGUI\saveObject().

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

◆ withReferences()

ilObjectGUI::withReferences ( )

determines whether objects are referenced or not (got ref ids or not)

Reimplemented in ilObject2GUI.

Definition at line 275 of file class.ilObjectGUI.php.

275 : bool
276 {
278 }

References $call_by_reference.

Field Documentation

◆ $access

ilAccessHandler ilObjectGUI::$access
protected

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

Referenced by ilObjCourseReferenceGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjIndividualAssessmentGUI\_goto(), ilObjStudyProgrammeReferenceGUI\_goto(), ilObjRoleGUI\adoptPermSaveObject(), ilContainerReferenceGUI\createObject(), ilObjCategoryGUI\executeCommand(), ilObjEmployeeTalkSeriesGUI\executeCommand(), ilObjRepositorySettingsGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjMediaObjectsSettingsGUI\getAdminTabs(), ilObjSkillManagementGUI\getAdminTabs(), ilObjSkillTreeGUI\getAdminTabs(), ilObjMediaCastSettingsGUI\getForm(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjFolderGUI\infoScreen(), ilObjWikiGUI\infoScreen(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjCourseReferenceGUI\initForm(), ilObjBadgeAdministrationGUI\initFormSettings(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjBookingPoolGUI\initHeaderAction(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjMediaCastGUI\listItemsObject(), ilObjRepositorySettingsGUI\listModules(), ilObjRepositorySettingsGUI\listNewItemGroups(), ilObjBadgeAdministrationGUI\listTypes(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilObjRepositorySettingsGUI\saveModules(), ilContainerReferenceGUI\saveObject(), ilObjStudyProgrammeReferenceGUI\saveObject(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjWikiGUI\setSettingsSubTabs(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), and ilObjSystemFolderGUI\viewObject().

◆ $admin_mode

string ilObjectGUI::$admin_mode = self::ADMIN_MODE_NONE
protected

Definition at line 109 of file class.ilObjectGUI.php.

Referenced by getAdminMode().

◆ $call_by_reference

◆ $creation_mode

bool ilObjectGUI::$creation_mode = false
protected

Definition at line 94 of file class.ilObjectGUI.php.

Referenced by getCreationMode().

◆ $ctrl

ilCtrl ilObjectGUI::$ctrl
protected

Definition at line 77 of file class.ilObjectGUI.php.

Referenced by ilObjCourseReferenceGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjExerciseGUI\addContentSubTabs(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjExerciseGUI\afterSave(), ilObjSystemFolderGUI\benchmarkSubTabs(), ilObjAwarenessAdministrationGUI\cancel(), ilObjBlogAdministrationGUI\cancel(), ilObjExerciseAdministrationGUI\cancel(), ilObjMediaCastSettingsGUI\cancel(), ilObjPortfolioAdministrationGUI\cancel(), ilObjTaggingSettingsGUI\cancel(), ilObjSkillTreeGUI\confirmedDeleteTrees(), ilObjSkillTreeGUI\delete(), ilObjSkillTreeGUI\deleteNodes(), ilObjMediaCastGUI\editCastItemObject(), ilObjContentObjectGUI\editMenuProperties(), ilObjStyleSheetGUI\editObject(), ilObjSkillManagementGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjCategoryGUI\executeCommand(), ilContainerReferenceGUI\executeCommand(), ilObjLearningHistorySettingsGUI\executeCommand(), ilObjCommentsSettingsGUI\executeCommand(), ilObjNotesSettingsGUI\executeCommand(), ilObjPersonalWorkspaceSettingsGUI\executeCommand(), ilObjStyleSheetGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjLearningSequenceGUI\forwardByClass(), ilObjLearningHistorySettingsGUI\getAdminTabs(), ilObjCommentsSettingsGUI\getAdminTabs(), ilObjNotesSettingsGUI\getAdminTabs(), ilObjPersonalWorkspaceSettingsGUI\getAdminTabs(), ilObjStyleSheetGUI\getCloneForm(), ilObjStyleSheetGUI\getCreateForm(), ilObjStyleSheetGUI\getImportForm(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjBookingPoolGUI\infoScreen(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjPortfolioAdministrationGUI\initAuthorshipForm(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjBookingPoolGUI\initHeaderAction(), ilObjContentObjectGUI\initMenuForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSkillTreeGUI\initTreeForm(), ilObjExerciseGUI\listAssignmentsObject(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjContentObjectGUI\proceedDragDrop(), ilObjFileBasedLMGUI\redirectAfterCreation(), ilContainerReferenceGUI\redirectObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjExternalToolsSettingsGUI\saveMapsObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjBookingPoolGUI\saveNotificationObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjSystemFolderGUI\setGeneralSettingsSubTabs(), ilObjSystemFolderGUI\setServerInfoSubTabs(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), ilObjSystemFolderGUI\setSystemCheckSubTabs(), ilObjSkillTreeGUI\showLocator(), ilObjBookingPoolGUI\showProfileObject(), ilObjSkillTreeGUI\showTree(), ilObjTaggingSettingsGUI\showUsers(), and ilObjExerciseGUI\startAssignmentObject().

◆ $custom_icon_factory

CustomIconFactory ilObjectGUI::$custom_icon_factory
protected

Definition at line 86 of file class.ilObjectGUI.php.

◆ $data

ilObjectGUI::$data
protected

Definition at line 95 of file class.ilObjectGUI.php.

Referenced by ilObjStudyProgrammeReferenceGUI\__construct(), ilObjMDSettingsGUI\__construct(), ilObjCertificateSettingsGUI\__construct(), ilObjObjectFolderGUI\__construct(), ilObjTypeDefinitionGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjSCORMLearningModuleGUI\__construct(), ilObjComponentSettingsGUI\__construct(), ilObjLearningSequenceAdminGUI\__construct(), ilObjStudyProgrammeAdminGUI\__construct(), ilObjForumGUI\__construct(), ilObjIndividualAssessmentGUI\__construct(), ilObjChatroomAdminGUI\__construct(), ilObjChatroomGUI\__construct(), ilObjSurveyGUI\afterSave(), ilObjWikiGUI\afterSave(), buildRefIdsFromData(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), confirmedDeleteObject(), ilObjLTIConsumerGUI\contentSelectionRequest(), ilObjForumAdministrationGUI\cronMessage(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjTypeDefinitionGUI\displayList(), ilObjDataCollectionGUI\editNotification(), ilObjTypeDefinitionGUI\editObject(), ilObjDataProtectionGUI\form(), ilObjTermsOfServiceGUI\form(), ilObjSessionGUI\getAttendanceListUserData(), ilObjLearningSequenceAdminGUI\getForm(), initDidacticTemplate(), ilObjSessionGUI\materialsObject(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjContentPageAdministrationGUI\save(), ilObjItemGroupGUI\save(), ilObjLearningSequenceAdminGUI\save(), ilObjSkillTreeGUI\save(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjContactAdministrationGUI\saveConfigurationForm(), ilObjLTIConsumerGUI\saveContentSelection(), ilObjTestFolderGUI\saveGlobalSettingsObject(), ilObjTestFolderGUI\saveLogSettingsObject(), ilObjRoleGUI\saveObject(), ilObjRoleTemplateGUI\saveObject(), ilObjDashboardSettingsGUI\savePresentation(), ilObjForumAdministrationGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjNotificationAdminGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjDashboardSettingsGUI\saveSorting(), ilObjDataCollectionGUI\update(), ilObjLinkResourceGUI\updateLinks(), ilCourseContentGUI\updateManagedTimings(), ilObjRoleGUI\updateObject(), ilObjRoleTemplateGUI\updateObject(), ilCourseContentGUI\updatePersonalTimings(), ilObjQuestionPoolGUI\uploadQuestionsImportObject(), and ilObjLanguageExtGUI\viewObject().

◆ $error

ilErrorHandling ilObjectGUI::$error
protected

◆ $favourites

ilFavouritesManager ilObjectGUI::$favourites
protected

Definition at line 85 of file class.ilObjectGUI.php.

◆ $form_action

◆ $html

string ilObjectGUI::$html = ""
protected

◆ $http

GlobalHttpState ilObjectGUI::$http
protected

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

Referenced by ilObjCourseGUI\_goto(), and ilObjGroupGUI\_goto().

◆ $id

int ilObjectGUI::$id
protected

Definition at line 96 of file class.ilObjectGUI.php.

Referenced by ilObjContentObjectGUI\__construct(), ilObjStudyProgrammeReferenceGUI\__construct(), ilObjMDSettingsGUI\__construct(), ilObjCertificateSettingsGUI\__construct(), ilObjObjectFolderGUI\__construct(), ilObjTypeDefinitionGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjSCORMLearningModuleGUI\__construct(), ilObjComponentSettingsGUI\__construct(), ilObjLearningSequenceAdminGUI\__construct(), ilObjStudyProgrammeAdminGUI\__construct(), ilObjForumGUI\__construct(), ilObjIndividualAssessmentGUI\__construct(), ilObjChatroomAdminGUI\__construct(), ilObjChatroomGUI\__construct(), ilObjFileServicesGUI\__construct(), ilObject2GUI\__construct(), ilObjCmiXapiVerificationGUI\_goto(), ilObjLTIConsumerVerificationGUI\_goto(), ilObjBibliographicGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjCourseVerificationGUI\_goto(), ilObjPollGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSCORMVerificationGUI\_goto(), ilObjTestVerificationGUI\_goto(), ilObjWorkspaceFolderGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilObjLanguageExtGUI\addNewEntryObject(), ilObjRoleGUI\adoptPermObject(), ilObjLanguageFolderGUI\buildConfirmModal(), ilObjSkillTreeGUI\confirmedDelete(), ilObjContentObjectGUI\confirmedDelete(), ilObjSkillTreeGUI\confirmedDeleteTrees(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjContentObjectGUI\delete(), ilObjSkillTreeGUI\deleteNodes(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilObjEmployeeTalkSeriesGUI\executeCommand(), ilObjLanguageExtGUI\getId(), ilObjLinkResourceGUI\getLinkToListModal(), ilObjBlogGUI\getListItems(), ilObjStyleSheetGUI\getRenderedCreationFormsHTML(), ilObjDashboardSettingsGUI\getViewSectionSorting(), ilObjLearningSequenceGUI\hasAccess(), ilObjLanguageExtGUI\initAddNewEntryForm(), initDidacticTemplate(), ilObjRepositorySettingsGUI\initNewItemGroupForm(), ilObjLearningSequenceGUI\isAccessible(), ilObjLanguageFolderGUI\refreshSelectedObject(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjLanguageExtGUI\saveNewEntryObject(), ilObjFileServicesGUI\saveSettings(), ilObjBibliographicGUI\showDetails(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), ilObjDashboardSettingsGUI\sortingCheckbox(), ilObjDashboardSettingsGUI\sortingInputs(), ilObjLanguageFolderGUI\uninstallChangesObject(), and ilObjObjectFolderGUI\viewObject().

◆ $ilias

ILIAS ilObjectGUI::$ilias
protected

Definition at line 81 of file class.ilObjectGUI.php.

◆ $import_modal

RoundTrip ilObjectGUI::$import_modal = null
private

Definition at line 117 of file class.ilObjectGUI.php.

◆ $import_type_selector_modal

RoundTrip ilObjectGUI::$import_type_selector_modal = null
private

Definition at line 118 of file class.ilObjectGUI.php.

◆ $link_params

string ilObjectGUI::$link_params
protected

Definition at line 114 of file class.ilObjectGUI.php.

◆ $lng

ilLanguage ilObjectGUI::$lng
protected

Definition at line 79 of file class.ilObjectGUI.php.

Referenced by ilObjSurveyAdministrationGUI\__construct(), ilObjExternalToolsSettingsGUI\__construct(), ilObjMediaCastGUI\__construct(), ilObjDashboardSettingsGUI\__construct(), ilObjMediaObjectGUI\__construct(), ilObjContentObjectGUI\__construct(), ilObjFileBasedLMGUI\__construct(), ilObjExerciseGUI\__construct(), ilObjLanguageExtGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjStudyProgrammeGUI\__construct(), ilObjSCORM2004LearningModuleGUI\__construct(), ilObjFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjGroupGUI\_goto(), ilObjIndividualAssessmentGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilObjBadgeAdministrationGUI\activateTypes(), ilObjExerciseGUI\addContentSubTabs(), ilObjSystemFolderGUI\benchmarkSubTabs(), ilObjSkillTreeGUI\create(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjSkillTreeGUI\deleteNodes(), ilObjContentObjectGUI\editMenuProperties(), ilObjSkillManagementGUI\editSettings(), ilObjBlogAdministrationGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjLearningHistorySettingsGUI\getAdminTabs(), ilObjCommentsSettingsGUI\getAdminTabs(), ilObjNotesSettingsGUI\getAdminTabs(), ilObjPersonalWorkspaceSettingsGUI\getAdminTabs(), ilObjPortfolioAdministrationGUI\getAdminTabs(), ilObjSkillManagementGUI\getAdminTabs(), ilObjSkillTreeGUI\getAdminTabs(), ilObjMediaCastGUI\getCastItemValues(), ilObjMediaCastSettingsGUI\getForm(), ilObjSystemCheckGUI\getLang(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjContentObjectGUI\getMultiLangHeader(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjFileBasedLMGUI\getTabs(), ilObjRootFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjSAHSLearningModuleGUI\getTemplate(), ilObjDashboardSettingsGUI\getViewSectionPresentation(), ilObjWikiGUI\infoScreen(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjPortfolioAdministrationGUI\initAuthorshipForm(), ilObjSAHSLearningModuleGUI\initCreateForm(), ilObjWikiGUI\initCreateForm(), ilObjFolderGUI\initEditForm(), ilObjPrivacySecurityGUI\initErrorMessages(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjBookingPoolGUI\initHeaderAction(), ilObjContentObjectGUI\initMenuForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjSystemFolderGUI\initServerInfoForm(), ilObjSkillTreeGUI\initTreeForm(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjMediaCastGUI\listItemsObject(), ilObjContentObjectGUI\properties(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjContentObjectGUI\saveProperties(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjSAHSLearningModuleGUI\setSettingsSubTabs(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), ilObjSCORMLearningModuleGUI\setSubTabs(), ilObjFolderGUI\setSubTabs(), ilObjRootFolderGUI\setTitleAndDescription(), ilObjSkillTreeGUI\showTree(), and ilObjTaggingSettingsGUI\showUsers().

◆ $locator

◆ $maxcount

int ilObjectGUI::$maxcount
protected

Definition at line 101 of file class.ilObjectGUI.php.

◆ $multi_object_manipulator

MultiPropertiesManipulator ilObjectGUI::$multi_object_manipulator
private

Definition at line 90 of file class.ilObjectGUI.php.

Referenced by getMultiObjectPropertiesManipulator().

◆ $notes_service

ILIAS Notes Service ilObjectGUI::$notes_service
protected

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

◆ $obj_definition

ilObjectDefinition ilObjectGUI::$obj_definition
protected

Definition at line 74 of file class.ilObjectGUI.php.

◆ $obj_id

◆ $object

◆ $object_service

◆ $omit_locator

bool ilObjectGUI::$omit_locator = false
protected

Definition at line 107 of file class.ilObjectGUI.php.

◆ $post_wrapper

ArrayBasedRequestWrapper ilObjectGUI::$post_wrapper
protected

Definition at line 82 of file class.ilObjectGUI.php.

◆ $prepare_output

◆ $rbac_admin

ilRbacAdmin ilObjectGUI::$rbac_admin
protected

Definition at line 70 of file class.ilObjectGUI.php.

◆ $rbac_review

ilRbacReview ilObjectGUI::$rbac_review
protected

◆ $rbac_system

◆ $ref_id

◆ $refinery

Refinery ilObjectGUI::$refinery
protected

Definition at line 84 of file class.ilObjectGUI.php.

Referenced by initCreateForm().

◆ $request

◆ $request_wrapper

RequestWrapper ilObjectGUI::$request_wrapper
protected

Definition at line 83 of file class.ilObjectGUI.php.

◆ $requested_crtcb

int ilObjectGUI::$requested_crtcb = 0
protected

Definition at line 112 of file class.ilObjectGUI.php.

◆ $requested_crtptrefid

int ilObjectGUI::$requested_crtptrefid = 0
protected

Definition at line 111 of file class.ilObjectGUI.php.

◆ $requested_new_type

string ilObjectGUI::$requested_new_type = ""
protected

Definition at line 113 of file class.ilObjectGUI.php.

Referenced by createObject().

◆ $requested_ref_id

int ilObjectGUI::$requested_ref_id = 0
protected

Definition at line 110 of file class.ilObjectGUI.php.

Referenced by ilObjMediaCastGUI\getFeedLink(), and setLocator().

◆ $retriever

ilObjectRequestRetriever ilObjectGUI::$retriever
private

Definition at line 89 of file class.ilObjectGUI.php.

◆ $return_location

array ilObjectGUI::$return_location = []
protected

Definition at line 103 of file class.ilObjectGUI.php.

◆ $settings

ilSetting ilObjectGUI::$settings
protected

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

Referenced by ilObjMediaCastGUI\__construct(), ilObjPortfolioAdministrationGUI\addToExternalSettingsForm(), ilObjRepositorySettingsGUI\addToExternalSettingsForm(), ilObjLearningSequenceGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjBlogAdministrationGUI\editSettings(), ilObjECSSettingsGUI\executeCommand(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjCourseGUI\initEditForm(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSystemFolderGUI\initServerInfoForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjContentPageAdministrationGUI\save(), ilObjLearningSequenceAdminGUI\save(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilObjRepositorySettingsGUI\saveModules(), ilObjRepositorySettingsGUI\saveNewItemGroupOrder(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjContentObjectGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjNewsSettingsGUI\saveSettings(), ilObjNotificationAdminGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjNotificationAdminGUI\showSettings(), ilObjCourseGUI\updateObject(), and ilObjEmployeeTalkGUI\validateCustom().

◆ $sub_objects

string ilObjectGUI::$sub_objects = ""
protected

Definition at line 106 of file class.ilObjectGUI.php.

Referenced by ilObjSystemCheckGUI\initFormTrash().

◆ $tabs_gui

◆ $target_frame

array ilObjectGUI::$target_frame = []
protected

◆ $temp_file_system

Filesystem ilObjectGUI::$temp_file_system
protected

Definition at line 91 of file class.ilObjectGUI.php.

◆ $tmp_import_dir

string ilObjectGUI::$tmp_import_dir
protected

Definition at line 105 of file class.ilObjectGUI.php.

◆ $toolbar

◆ $tpl

ilGlobalTemplateInterface ilObjectGUI::$tpl
protected

◆ $tree

◆ $type

◆ $ui_factory

◆ $ui_renderer

UIRenderer ilObjectGUI::$ui_renderer
protected

◆ $user

◆ ADMIN_MODE_NONE

const ilObjectGUI::ADMIN_MODE_NONE = ""

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

◆ ADMIN_MODE_REPOSITORY

const ilObjectGUI::ADMIN_MODE_REPOSITORY = "repository"

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

◆ ADMIN_MODE_SETTINGS

const ilObjectGUI::ADMIN_MODE_SETTINGS = "settings"

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

◆ CFORM_CLONE

const ilObjectGUI::CFORM_CLONE = 3

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

◆ CFORM_IMPORT

const ilObjectGUI::CFORM_IMPORT = 2

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

◆ CFORM_NEW

const ilObjectGUI::CFORM_NEW = 1

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

◆ SUPPORTED_IMPORT_MIME_TYPES

const ilObjectGUI::SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]

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

◆ UPLOAD_TYPE_LOCAL

const ilObjectGUI::UPLOAD_TYPE_LOCAL = 1

Definition at line 55 of file class.ilObjectGUI.php.

◆ UPLOAD_TYPE_UPLOAD_DIRECTORY

const ilObjectGUI::UPLOAD_TYPE_UPLOAD_DIRECTORY = 2

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


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