ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
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 2024 of file class.ilObjectGUI.php.

2024 : void
2025 {
2026 global $DIC;
2027
2028 $ctrl = $DIC->ctrl();
2029 $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", $ref_id);
2030 $ctrl->redirectByClass("ilRepositoryGUI", $cmd);
2031 }
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(), 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 2005 of file class.ilObjectGUI.php.

2005 : void
2006 {
2007 global $DIC;
2008
2009 $ilAccess = $DIC->access();
2010 $ilErr = $DIC["ilErr"];
2011 $lng = $DIC->language();
2012 $ctrl = $DIC->ctrl();
2013
2014 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
2015 $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", ROOT_FOLDER_ID);
2016 $ctrl->redirectByClass("ilRepositoryGUI");
2017 }
2018
2019 if ($raise_error) {
2020 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
2021 }
2022 }
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(), ilObjectPluginGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCmiXapiGUI\_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 2033 of file class.ilObjectGUI.php.

2033 : void
2034 {
2035 global $DIC;
2036
2037 $ctrl = $DIC->ctrl();
2038 $ctrl->setParameterByClass(ilSharedResourceGUI::class, "wsp_id", $wsp_id);
2039 $ctrl->redirectByClass(ilSharedResourceGUI::class, "");
2040 }

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 909 of file class.ilObjectGUI.php.

909 : void
910 {
911 $this->toolbar->addComponent(
912 $this->ui_factory->link()->standard(
913 $this->lng->txt('cntr_adopt_content'),
914 $this->ctrl->getLinkTargetByClass(
915 'ilObjectCopyGUI',
916 'adoptContent'
917 )
918 )
919 );
920 }

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 974 of file class.ilObjectGUI.php.

975 {
977
979 $this->getMultiObjectPropertiesManipulator()->getAvailabilityPeriodButton()
980 );
981 return $toolbar;
982 }
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 1183 of file class.ilObjectGUI.php.

1183 : void
1184 {
1185 // has to be done AFTER setValuesByArray() ...
1186 }

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 922 of file class.ilObjectGUI.php.

922 : void
923 {
924 $modal = $this->import_modal ?? $this->buildImportModal();
925 $this->toolbar->addComponent(
926 $this->ui_factory->button()->standard(
927 $this->lng->txt('import'),
928 $modal->getShowSignal()
929 )
930 );
931
932 $this->tpl->setVariable(
933 'IL_OBJECT_IMPORT_MODAL',
934 $this->ui_renderer->render(
935 $this->import_type_selector_modal === null
936 ? $modal
937 : [$modal, $this->import_type_selector_modal]
938 )
939 );
940 }

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

+ Here is the call graph for this function:

◆ addLocatorItems()

◆ addToDeskObject()

ilObjectGUI::addToDeskObject ( )

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

2050 : void
2051 {
2052 $this->favourites->add(
2053 $this->user->getId(),
2054 $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int())
2055 );
2056 $this->lng->loadLanguageModule("rep");
2057 $this->tpl->setOnScreenMessage("success", $this->lng->txt("rep_added_to_favourites"), true);
2058 $this->ctrl->redirectToURL(ilLink::_getLink($this->requested_ref_id));
2059 }

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 1577 of file class.ilObjectGUI.php.

1577 : void
1578 {
1579 $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
1580 $this->ctrl->returnToParent($this);
1581 }

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 1283 of file class.ilObjectGUI.php.

1283 : void
1284 {
1285 $this->tpl->setOnScreenMessage("success", $this->lng->txt("msg_obj_modified"), true);
1286 $this->ctrl->redirect($this, "edit");
1287 }

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 2085 of file class.ilObjectGUI.php.

2089 : array {
2090 if ($subtypes === []) {
2091 return [];
2092 }
2093 if ($redirect_target_ref_id !== null) {
2094 $this->ctrl->setParameterByClass($create_target_class, 'crtcb', (string) $redirect_target_ref_id);
2095 }
2096
2097 $this->lng->loadLanguageModule('wsp');
2098 $this->lng->loadLanguageModule('rep');
2099 $this->lng->loadLanguageModule('cntr');
2100
2101 $elements = $this->initAddNewItemElementsFromNewItemGroups(
2102 $create_target_class,
2105 $subtypes
2106 );
2107 if ($elements === []) {
2108 $elements = $this->initAddnewItemElementsFromDefaultGroups(
2109 $create_target_class,
2111 $subtypes
2112 );
2113 }
2114
2115 $this->ctrl->clearParameterByClass(self::class, 'crtcb');
2116 return $elements;
2117 }
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 1733 of file class.ilObjectGUI.php.

1734 {
1735 [$listing_items, $inputs, $has_additional_references] = $this->buildDeletionModalItems($request_ids);
1736
1737 $msg = $this->lng->txt('info_delete_sure');
1738 if (!$this->settings->get('enable_trash')) {
1739 $msg .= "<br/>" . $this->lng->txt('info_delete_warning_no_trash');
1740 }
1741
1742 $content = [
1743 $this->ui_factory->messageBox()->confirmation($msg),
1744 $this->ui_factory->listing()->unordered($listing_items)
1745 ];
1746
1747 if ($has_additional_references) {
1748 $content[] = $this->ui_factory->messageBox()->confirmation(
1749 $this->lng->txt('multiple_reference_deletion_info') . ' '
1750 . $this->lng->txt('rep_multiple_reference_deletion_instruction')
1751 );
1752 }
1753
1754 $this->ctrl->setParameterByClass(static::class, 'id', implode(',', $request_ids));
1755 $target_url = $this->ctrl->getFormActionByClass(static::class, 'confirmedDelete');
1756 $this->ctrl->clearParameterByClass(static::class, 'id');
1757
1758 return $this->ui_factory->modal()->roundtrip(
1759 $this->lng->txt('confirm'),
1760 $content,
1761 $inputs,
1762 $target_url
1763 )->withSubmitLabel($this->lng->txt('delete'));
1764 }
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 1766 of file class.ilObjectGUI.php.

1766 : array
1767 {
1768 $path_gui = new ilPathGUI();
1769 $path_gui->enableTextOnly(true);
1770 $path_gui->enableHideLeaf(false);
1771 return array_reduce(
1772 $ref_ids,
1773 function (array $c, int $v) use ($path_gui): array {
1776 );
1777 $c[1][] = $this->ui_factory->input()->field()->hidden()->withValue($v);
1778
1779 $other_references = $this->buildInputsForAdditionalDeletionReferences($v, $path_gui);
1780 if ($other_references !== []) {
1781 $c[1][] = $this->ui_factory->input()->field()->multiSelect(
1784 ),
1785 $other_references
1786 );
1787 $c[2] = true;
1788 }
1789 return $c;
1790 },
1791 [[], [], false]
1792 );
1793 }
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 869 of file class.ilObjectGUI.php.

869 : array
870 {
871 $this->lng->loadLanguageModule('didactic');
872 $existing_exclusive = false;
873 $options = [];
874 $options['dtpl_0'] = [
875 $this->lng->txt('didactic_default_type'),
876 sprintf(
877 $this->lng->txt('didactic_default_type_info'),
878 $this->lng->txt('objs_' . $this->type)
879 )
880 ];
881
882 $templates = ilDidacticTemplateSettings::getInstanceByObjectType($this->type)->getTemplates();
883 if ($templates) {
884 foreach ($templates as $template) {
885 if ($template->isEffective((int) $this->requested_ref_id)) {
886 $options["dtpl_" . $template->getId()] = [
887 $template->getPresentationTitle(),
888 $template->getPresentationDescription()
889 ];
890
891 if ($template->isExclusive()) {
892 $existing_exclusive = true;
893 }
894 }
895 }
896 }
897
898 return [$existing_exclusive, array_merge($options, $this->retrieveAdditionalDidacticTemplateOptions())];
899 }
static getInstanceByObjectType(string $a_obj_type)
retrieveAdditionalDidacticTemplateOptions()

References ILIAS\UI\Implementation\Component\Input\Field\$options, 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 2192 of file class.ilObjectGUI.php.

2198 $add_new_items_content_array = $this->buildSubItemsForGroup(
2199 $create_target_class,
2200 $obj_types_in_group,
2201 $subtypes
2202 );
2203 if ($add_new_items_content_array === []) {
2204 return null;
2205 }
2206 return new AddNewItemElement(
2208 $title,
2209 null,
2210 null,
2211 $add_new_items_content_array
2212 );
2213 }
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 1289 of file class.ilObjectGUI.php.

1289 : array
1290 {
1291 $trafo = $this->refinery->custom()->transformation(
1292 function ($vs): array {
1293 if ($vs === null) {
1294 return null;
1295 }
1296 if (!isset($vs[1])) {
1297 return [self::UPLOAD_TYPE_LOCAL => $vs[0]];
1298 } elseif ((int) $vs[1][0] === self::UPLOAD_TYPE_LOCAL) {
1299 return [self::UPLOAD_TYPE_LOCAL => $vs[1][0][0]];
1300 } else {
1301 $upload_factory = new ilImportDirectoryFactory();
1302 $export_upload = $upload_factory->getInstanceForComponent(ilImportDirectoryFactory::TYPE_EXPORT);
1303 $type = $this->extractFileTypeFromImportFilename($vs[1][0]) ?? '';
1304 $file = $export_upload->getAbsolutePathForHash($this->user->getId(), $type, $vs[1][0]);
1305 return [
1306 self::UPLOAD_TYPE_UPLOAD_DIRECTORY => $file
1307 ];
1308 }
1309 }
1310 );
1311
1312 $import_directory_factory = new ilImportDirectoryFactory();
1313 $upload_files = $import_directory_factory->getInstanceForComponent(ilImportDirectoryFactory::TYPE_EXPORT)
1314 ->getFilesFor($this->user->getId());
1315
1316 $field_factory = $this->ui_factory->input()->field();
1317
1318 $file_upload_input = $field_factory->file(new \ImportUploadHandlerGUI(), $this->lng->txt('import_file'))
1319 ->withAcceptedMimeTypes(self::SUPPORTED_IMPORT_MIME_TYPES)
1320 ->withRequired(true)
1321 ->withMaxFiles(1);
1322
1323 if ($upload_files !== []) {
1324 $this->lng->loadLanguageModule('content');
1325
1326 $file_upload_input = $field_factory->switchableGroup(
1327 [
1328 self::UPLOAD_TYPE_LOCAL => $field_factory->group(
1329 [$file_upload_input],
1330 $this->lng->txt('cont_choose_local')
1331 ),
1332 self::UPLOAD_TYPE_UPLOAD_DIRECTORY => $field_factory->group(
1333 [$field_factory->select($this->lng->txt('cont_uploaded_file'), $upload_files)->withRequired(true)],
1334 $this->lng->txt('cont_choose_upload_dir'),
1335 )
1336 ],
1337 $this->lng->txt('cont_choose_file_source')
1338 );
1339 }
1340
1341 return [
1342 'upload' => $file_upload_input->withAdditionalTransformation($trafo)
1343 ];
1344 }
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 942 of file class.ilObjectGUI.php.

942 : RoundTrip
943 {
944 return $this->ui_factory->modal()
945 ->roundtrip(
946 $this->lng->txt('import'),
947 [],
948 $this->buildImportFormInputs(),
949 $this->ctrl->getFormAction($this, 'routeImportCmd')
950 )->withSubmitLabel($this->lng->txt('import'));
951 }

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 1346 of file class.ilObjectGUI.php.

1349 : array {
1350 $ff = $this->ui_factory->input()->field();
1351
1352 $possible_sub_objects = array_map(
1353 fn(array $v): string => $this->getTranslatedObjectTypeNameFromItemArray($v),
1354 $this->object->getPossibleSubObjects()
1355 );
1356
1357 asort($possible_sub_objects);
1358
1359 return [
1360 'type' => $ff->select(
1361 $this->lng->txt('select_object_type'),
1362 $possible_sub_objects
1363 )->withRequired(true),
1364 'file_to_import' => $ff->hidden()->withValue($file_to_import),
1365 'temp_file' => $ff->hidden()->withValue($file_name_in_temp_dir)
1366 ];
1367 }
getTranslatedObjectTypeNameFromItemArray(array $item_array)

◆ buildImportTypeSelectorModal()

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

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

956 : Roundtrip {
957 return $this->ui_factory->modal()
958 ->roundtrip(
959 $this->lng->txt('select_object_type'),
960 [
961 $this->ui_factory->messageBox()->info(
962 $this->lng->txt('select_import_type_info')
963 )
964 ],
965 $this->buildImportTypeSelectorInputs(
966 $file_to_import,
967 $upload_file_name
968 ),
969 $this->ctrl->getFormActionByClass(static::class, 'routeImportCmd')
970 )->withCloseWithKeyboard(false)
971 ->withSubmitLabel($this->lng->txt('import'));
972 }

◆ buildInputsForAdditionalDeletionReferences()

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

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

1795 : array
1796 {
1797 return array_reduce(
1799 function (array $c, int $v) use ($ref_id, $path_gui): array {
1800 if ($v !== $ref_id
1801 && !$this->tree->isDeleted($v)
1802 && $this->access->checkAccess('delete', '', $v)) {
1803 $c[$v] = $path_gui->getPath(ROOT_FOLDER_ID, $v);
1804 }
1805 return $c;
1806 },
1807 []
1808 );
1809 }
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 2215 of file class.ilObjectGUI.php.

2219 : array {
2220 $add_new_items_content_array = [];
2221 foreach ($obj_types_in_group as $type) {
2222 if (!array_key_exists($type, $subtypes)) {
2223 continue;
2224 }
2225 $subitem = $subtypes[$type];
2226 $this->ctrl->setParameterByClass($create_target_class, 'new_type', $type);
2227 $add_new_items_content_array[$subitem['pos']] = new AddNewItemElement(
2228 AddNewItemElementTypes::Object,
2230 empty($subitem['plugin'])
2231 ? $this->ui_factory->symbol()->icon()->standard($type, '')
2232 : $this->ui_factory->symbol()->icon()->custom(
2234 ''
2235 ),
2236 new URI(
2237 ILIAS_HTTP_PATH . '/' . $this->ctrl->getLinkTargetByClass($create_target_class, 'create')
2238 )
2239 );
2240 $this->ctrl->clearParameterByClass($create_target_class, 'new_type', $type);
2241 }
2242 ksort($add_new_items_content_array);
2243 return $add_new_items_content_array;
2244 }
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 1037 of file class.ilObjectGUI.php.

1037 : void
1038 {
1039 $this->ctrl->redirectByClass("ilrepositorygui", "");
1040 }

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, 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 1955 of file class.ilObjectGUI.php.

1955 : void
1956 {
1957 if (!$this->checkPermissionBool($perm, $cmd, $type, $ref_id)) {
1958 if (!is_int(strpos($_SERVER['PHP_SELF'], 'goto.php'))) {
1959 if ($perm != 'create' && !is_object($this->object)) {
1960 return;
1961 }
1962
1963 ilSession::clear('il_rep_ref_id');
1964
1965 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_read'), true);
1966 $parent_ref_id = $this->tree->getParentId($this->object->getRefId());
1967 if ($parent_ref_id > 0) {
1968 $this->ctrl->redirectToURL(ilLink::_getLink($parent_ref_id));
1969 } else {
1970 $this->ctrl->redirectToURL('login.php?cmd=force_login');
1971 }
1972 }
1973
1974 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_read'), true);
1976 }
1977 }
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(), 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(), ilObjUserFolderGUI\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(), ilObjBlogAdministrationGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilObjStudyProgrammeAdminGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjWebResourceAdministrationGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettingsCmd(), 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, ilObjRecoveryFolderGUI, ilObjEmployeeTalkSeriesGUI, and ilObjWikiGUI.

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

1979 : bool
1980 {
1981 if ($perm === "create") {
1982 if (!$ref_id) {
1984 }
1985 return $this->access->checkAccess($perm . "_" . $type, $cmd, $ref_id);
1986 }
1987
1988 if (!is_object($this->object)) {
1989 return false;
1990 }
1991
1992 if (!$ref_id) {
1993 $ref_id = $this->object->getRefId();
1994 }
1995
1996 return $this->access->checkAccess($perm, $cmd, $ref_id);
1997 }

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\listImageTemplatesCmd(), 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 2246 of file class.ilObjectGUI.php.

2246 : bool
2247 {
2248 foreach ($ref_ids as $ref_id) {
2249 if (!$this->access->checkAccess('write', '', $ref_id)) {
2250 return false;
2251 }
2252 }
2253 return true;
2254 }

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 1701 of file class.ilObjectGUI.php.

1701 : void
1702 {
1703 $request_ids = [];
1704 if ($this->post_wrapper->has('id')) {
1705 $request_ids = $this->post_wrapper->retrieve(
1706 'id',
1707 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
1708 );
1709 }
1710
1711 if (
1712 $this->request_wrapper->has('item_ref_id')
1713 && $this->request_wrapper->retrieve('item_ref_id', $this->refinery->kindlyTo()->string()) !== ""
1714 ) {
1715 $request_ids = [$this->request_wrapper->retrieve('item_ref_id', $this->refinery->kindlyTo()->int())];
1716 }
1717
1718 if ($request_ids === []) {
1719 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_checkbox'), true);
1720 $this->ctrl->returnToParent($this);
1721 }
1722
1723 $modal = $this->buildDeleletionModal(array_unique($request_ids));
1724 $this->tpl->setVariable(
1725 'IL_OBJECT_EPHEMRAL_MODALS',
1726 $this->ui_renderer->render(
1727 $modal->withOnLoad($modal->getShowSignal())
1728 )
1729 );
1730 $this->renderObject();
1731 }

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 1475 of file class.ilObjectGUI.php.

1475 : void
1476 {
1477 if ($path_to_uploaded_file_in_temp_dir !== ''
1478 && $this->temp_file_system->hasDir($path_to_uploaded_file_in_temp_dir)) {
1479 $this->temp_file_system->deleteDir($path_to_uploaded_file_in_temp_dir);
1480 }
1481 }

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

+ Here is the caller graph for this function:

◆ didacticTemplatesToForm()

ilObjectGUI::didacticTemplatesToForm ( )
protected

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

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

References ILIAS\UI\Implementation\Component\Input\Field\$options, 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 984 of file class.ilObjectGUI.php.

984 : void
985 {
986 $item_ref_ids = $this->retriever->getSelectedIdsFromObjectList();
987 if (!$this->checkPermissionBool('write')
988 && !$this->checkWritePermissionOnRefIdArray($item_ref_ids)) {
989 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_write'));
990 return;
991 }
992
993 $availability_period_modal = $this->getMultiObjectPropertiesManipulator()->getEditAvailabilityPeriodPropertiesModal(
994 $item_ref_ids,
995 $this
996 );
997 if ($availability_period_modal !== null) {
998 $this->tpl->setVariable(
999 'IL_OBJECT_EPHEMRAL_MODALS',
1000 $this->ui_renderer->render(
1001 $availability_period_modal->withOnLoad(
1002 $availability_period_modal->getShowSignal()
1003 )
1004 )
1005 );
1006 }
1007 $this->renderObject();
1008 }
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 1164 of file class.ilObjectGUI.php.

1164 : void
1165 {
1166 if (!$this->checkPermissionBool("write")) {
1167 $this->error->raiseError($this->lng->txt("msg_no_perm_write"), $this->error->MESSAGE);
1168 }
1169
1170 $this->tabs_gui->activateTab("settings");
1171
1172 $form = $this->initEditForm();
1173 $values = $this->getEditFormValues();
1174 if ($values) {
1175 $form->setValuesByArray($values);
1176 }
1177
1178 $this->addExternalEditFormCustom($form);
1179
1180 $this->tpl->setContent($form->getHTML());
1181 }
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 2045 of file class.ilObjectGUI.php.

2045 : void
2046 {
2047 $this->tpl->setFileUploadRefId($this->ref_id);
2048 }

Referenced by prepareOutput().

+ Here is the caller graph for this function:

◆ executeCommand()

ilObjectGUI::executeCommand ( )

Reimplemented in ilObjRoleFolderGUI, ilObjRoleGUI, ilObjRoleTemplateGUI, ilObjGeneralSettingsGUI, ilObjRecoveryFolderGUI, ilObjServerInfoGUI, ilObjSystemFolderGUI, ilObjAdministrativeNotificationGUI, ilObjAuthSettingsGUI, ilObjAwarenessAdministrationGUI, ilObjBadgeAdministrationGUI, ilObjBenchmarkGUI, ilObjBibliographicAdminGUI, ilObjBibliographicGUI, ilObjBlogAdministrationGUI, ilObjBlogGUI, ilObjCalendarSettingsGUI, ilObjCategoryGUI, ilObjCertificateSettingsGUI, ilObjChatroomAdminGUI, ilObjChatroomGUI, ilObjCmiXapiAdministrationGUI, ilObjComponentSettingsGUI, ilObjContactAdministrationGUI, ilContainerGUI, ilContainerReferenceGUI, ilObjContentPageAdministrationGUI, ilObjAdvancedEditingGUI, ilCourseContentGUI, ilObjCourseGUI, ilObjCourseReferenceGUI, ilObjCronGUI, 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, ilObjMapsGUI, 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, ilObjStaticUrlServiceGUI, ilObjStudyProgrammeAdminGUI, ilObjStudyProgrammeGUI, ilObjStyleSettingsGUI, ilObjStyleSheetGUI, ilObjSurveyAdministrationGUI, ilObjSurveyGUI, ilObjSurveyQuestionPoolGUI, ilObjSystemCheckGUI, 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 1549 of file class.ilObjectGUI.php.

1549 : ?string
1550 {
1551 $matches = [];
1552 $result = preg_match('/[0-9]{10}__[0-9]{1,6}__([a-z]{1,4})_[0-9]{2,9}.zip/', $filename, $matches);
1553 if ($result === false
1554 || $result === 0
1555 || !isset($matches[1])) {
1556 return null;
1557 }
1558 return $matches[1];
1559 }
$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, ilObjGeneralSettingsGUI, ilObjServerInfoGUI, ilObjSystemFolderGUI, ilObjAuthSettingsGUI, ilObjAwarenessAdministrationGUI, ilObjBadgeAdministrationGUI, ilObjBenchmarkGUI, 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, 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 1881 of file class.ilObjectGUI.php.

1881 : string
1882 {
1883 $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1884 $obj_type = ilObject::_lookupType($obj_id);
1885
1886 if ($this->ctrl->getNextClass() != "ilcolumngui") {
1887 // normal command processing
1888 return $this->getContent();
1889 } else {
1890 if (!$this->ctrl->isAsynch()) {
1891 //if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
1893 // right column wants center
1895 $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1896 $this->setColumnSettings($column_gui);
1897 $this->html = $this->ctrl->forwardCommand($column_gui);
1898 }
1899 // left column wants center
1901 $column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT);
1902 $this->setColumnSettings($column_gui);
1903 $this->html = $this->ctrl->forwardCommand($column_gui);
1904 }
1905 } else {
1906 // normal command processing
1907 return $this->getContent();
1908 }
1909 }
1910 }
1911 return "";
1912 }
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 2070 of file class.ilObjectGUI.php.

2070 : array
2071 {
2072 $subtypes = $this->obj_definition->getCreatableSubObjects(
2073 $this->object->getType(),
2075 $this->object->getRefId()
2076 );
2077
2078 return array_filter(
2079 $subtypes,
2080 fn($key) => $this->access->checkAccess('create_' . $key, '', $this->ref_id, $this->type),
2081 ARRAY_FILTER_USE_KEY
2082 );
2083 }

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 736 of file class.ilObjectGUI.php.

736 : string
737 {
738 if (!$this->obj_definition->isPlugin($this->requested_new_type)) {
739 return $this->lng->txt("{$this->requested_new_type}_new");
740 }
742 $this->requested_new_type,
743 "{$this->requested_new_type}_new"
744 );
745 }
static lookupTxtById(string $plugin_id, string $lang_var)

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

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 1091 of file class.ilObjectGUI.php.

1091 : int
1092 {
1093 $create_form = $this->initCreateForm($this->type);
1094 if ($create_form instanceof StandardForm) {
1095 try {
1096 $data = $create_form->withRequest($this->request)->getData();
1097 return isset($data['didactic_templates'])
1098 ? $this->parseDidacticTemplateVar($data['didactic_templates'], $type)
1099 : 0;
1100 } catch (InvalidArgumentException $e) {
1101 }
1102 }
1103
1104 if (!$this->post_wrapper->has('didactic_type')) {
1105 return 0;
1106 }
1107
1108 $tpl = $this->post_wrapper->retrieve('didactic_type', $this->refinery->kindlyTo()->string());
1109 return $this->parseDidacticTemplateVar($tpl, $type);
1110 }
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

Add values to custom edit fields.

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

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

1235 : void
1236 {
1237 }

◆ getEditFormValues()

ilObjectGUI::getEditFormValues ( )
protected

Reimplemented in ilObjCategoryGUI, ilContainerGUI, ilObjCourseGUI, and ilObjRootFolderGUI.

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

1224 : array
1225 {
1226 $values["title"] = $this->object->getTitle();
1227 $values["desc"] = $this->object->getLongDescription();
1228 $this->getEditFormCustomValues($values);
1229 return $values;
1230 }
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 1561 of file class.ilObjectGUI.php.

1562 {
1563 $upload_data = $data['upload'];
1564 if (array_key_first($upload_data) === self::UPLOAD_TYPE_LOCAL
1565 && $this->temp_file_system->hasDir($upload_data[self::UPLOAD_TYPE_LOCAL])) {
1566 $files = $this->temp_file_system->listContents($upload_data[self::UPLOAD_TYPE_LOCAL]);
1567 return CLIENT_DATA_DIR . DIRECTORY_SEPARATOR
1568 . 'temp' . DIRECTORY_SEPARATOR
1569 . $files[0]->getPath();
1570 }
1571 return $upload_data[self::UPLOAD_TYPE_UPLOAD_DIRECTORY];
1572 }
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 1586 of file class.ilObjectGUI.php.

1586 : string
1587 {
1588 if ($this->form_action[$cmd] != "") {
1589 return $this->form_action[$cmd];
1590 }
1591
1592 return $default_form_action;
1593 }

◆ 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.

Referenced by ilObjMapsGUI\view().

+ Here is the caller graph for this function:

◆ 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(), 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 1603 of file class.ilObjectGUI.php.

1603 : string
1604 {
1605 if (($this->return_location[$cmd] ?? "") !== "") {
1606 return $this->return_location[$cmd];
1607 } else {
1608 return $default_location;
1609 }
1610 }

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 1917 of file class.ilObjectGUI.php.

1917 : string
1918 {
1919 $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1920 $obj_type = ilObject::_lookupType($obj_id);
1921
1922 $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1923
1924 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
1925 return "";
1926 }
1927
1928 $this->setColumnSettings($column_gui);
1929
1930 $html = "";
1931 if (
1932 $this->ctrl->getNextClass() == "ilcolumngui" &&
1933 $column_gui->getCmdSide() == IL_COL_RIGHT &&
1934 $column_gui->getScreenMode() == IL_SCREEN_SIDE
1935 ) {
1936 return $this->ctrl->forwardCommand($column_gui);
1937 }
1938
1939 if (!$this->ctrl->isAsynch()) {
1940 return $this->ctrl->getHTML($column_gui);
1941 }
1942
1943 return $html;
1944 }
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 1623 of file class.ilObjectGUI.php.

1623 : string
1624 {
1625 if (isset($this->target_frame[$cmd]) && $this->target_frame[$cmd] != "") {
1626 return $this->target_frame[$cmd];
1627 }
1628
1629 if (!empty($default_target_frame)) {
1630 return "target=\"" . $default_target_frame . "\"";
1631 }
1632
1633 return "";
1634 }

◆ 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 }
731 $this->requested_new_type,
732 "obj_{$this->requested_new_type}"
733 );
734 }

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 2256 of file class.ilObjectGUI.php.

2256 : string
2257 {
2258 return empty($item_array['plugin'])
2259 ? $this->lng->txt('obj_' . $item_array['lng'])
2260 : ilObjectPlugin::lookupTxtById($item_array['lng'], 'obj_' . $item_array['lng']);
2261 }

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 1417 of file class.ilObjectGUI.php.

1417 : void
1418 {
1419 if ($this instanceof ilContainerGUI) {
1420 $imp = new ilImportContainer($this->requested_ref_id);
1421 } else {
1422 $imp = new ilImport($this->requested_ref_id);
1423 }
1424
1425 try {
1426 $new_id = $imp->importObject(
1427 null,
1428 $file_to_import,
1429 basename($file_to_import),
1430 $this->type,
1431 '',
1432 true
1433 );
1434 } catch (ilException $e) {
1435 $this->tmp_import_dir = $imp->getTemporaryImportDir();
1436 $this->tpl->setOnScreenMessage(
1437 'failure',
1438 $this->lng->txt('obj_import_file_error') . ' <br />' . $e->getMessage()
1439 );
1440 $this->deleteUploadedImportFile($path_to_uploaded_file_in_temp_dir);
1441 return;
1442 }
1443
1444 if ($new_id === null
1445 || $new_id === 0) {
1446 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('import_file_not_valid_here'));
1447 $this->deleteUploadedImportFile($path_to_uploaded_file_in_temp_dir);
1448 return;
1449 }
1450
1451 $this->ctrl->setParameter($this, 'new_type', '');
1452
1453 $new_obj = ilObjectFactory::getInstanceByObjId($new_id);
1454 // put new object id into tree - already done in import for containers
1455 if (!$this->obj_definition->isContainer($this->type)) {
1456 $this->putObjectInTree($new_obj);
1457 } else {
1458 $ref_ids = ilObject::_getAllReferences($new_obj->getId());
1459 if (count($ref_ids) === 1) {
1460 $new_obj->setRefId((int) current($ref_ids));
1461 }
1462 $this->callCreationCallback($new_obj, $this->obj_definition, $this->requested_crtcb); // see #24244
1463 }
1464
1465 if ($path_to_uploaded_file_in_temp_dir !== ''
1466 && $this->temp_file_system->hasDir($path_to_uploaded_file_in_temp_dir)) {
1467 $this->temp_file_system->deleteDir($path_to_uploaded_file_in_temp_dir);
1468 }
1469
1470 $this->afterImport($new_obj);
1471 $this->ctrl->setParameterByClass(get_class($new_obj), 'ref_id', $new_obj->getRefId());
1472 $this->ctrl->redirectByClass(get_class($new_obj));
1473 }
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 2150 of file class.ilObjectGUI.php.

2154 : array {
2155 $add_new_item_elements = [];
2156 $grouped_types = [];
2157
2158 foreach ($default_groups['groups'] as $group_id => $group) {
2159 $obj_types_in_group = array_keys(
2160 array_filter(
2161 $default_groups['items'],
2162 fn($item_group_id) => $item_group_id === $group_id
2163 )
2164 );
2165 $grouped_types = array_merge($grouped_types, $obj_types_in_group);
2166
2167 $group_element = $this->buildGroup(
2168 $create_target_class,
2169 $obj_types_in_group,
2170 $group['title'],
2171 $subtypes
2172 );
2173
2174 if ($group_element !== null) {
2175 $add_new_item_elements[$group['pos']] = $group_element;
2176 }
2177 }
2178
2179 $ungrouped_types = array_diff(array_keys($subtypes), $grouped_types);
2180 if ($ungrouped_types !== []) {
2181 $add_new_item_elements[] = $this->buildGroup(
2182 $create_target_class,
2183 $ungrouped_types,
2184 $this->lng->txt('rep_new_item_group_other'),
2185 $subtypes
2186 );
2187 }
2188
2189 return $add_new_item_elements;
2190 }
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 2119 of file class.ilObjectGUI.php.

2124 : array {
2125 if ($new_item_groups === []) {
2126 return [];
2127 }
2128
2129 $new_item_groups[0] = $this->lng->txt('rep_new_item_group_other');
2130 $add_new_item_elements = [];
2131 foreach ($new_item_groups as $group_id => $group) {
2132 if (empty($new_item_groups_subitems[$group_id])) {
2133 continue;
2134 }
2135 $group_element = $this->buildGroup(
2136 $create_target_class,
2137 $new_item_groups_subitems[$group_id],
2138 $group['title'] ?? $group,
2139 $subtypes
2140 );
2141
2142 if ($group_element !== null) {
2143 $add_new_item_elements[] = $group_element;
2144 }
2145 }
2146
2147 return $add_new_item_elements;
2148 }

◆ initCreateForm()

ilObjectGUI::initCreateForm ( string  $new_type)
protected

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

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

747 : StandardForm|ilPropertyFormGUI|array
748 {
749 $form_fields['title_and_description'] = (new ilObject())->getObjectProperties()->getPropertyTitleAndDescription()->toForm(
750 $this->lng,
751 $this->ui_factory->input()->field(),
753 );
754
755 $didactic_templates = $this->didacticTemplatesToForm();
756
757 if ($didactic_templates !== null) {
758 $form_fields['didactic_templates'] = $didactic_templates;
759 }
760
761 return $this->ui_factory->input()->container()->form()->standard(
762 $this->ctrl->getFormAction($this, 'save'),
763 $form_fields
764 )->withSubmitLabel(
765 !$this->obj_definition->isPlugin($new_type)
766 ? $this->lng->txt($new_type . '_add')
768 $this->requested_new_type,
769 "{$this->requested_new_type}_add"
770 )
771 );
772 }
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 823 of file class.ilObjectGUI.php.

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

References $data, $id, ILIAS\UI\Implementation\Component\Input\Field\$options, $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 1220 of file class.ilObjectGUI.php.

1220 : void
1221 {
1222 }

◆ initEditForm()

ilObjectGUI::initEditForm ( )
protected

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

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

1189 {
1190 $lng = $this->lng;
1191
1192 $lng->loadLanguageModule($this->object->getType());
1193
1194 $form = new ilPropertyFormGUI();
1195 $form->setFormAction($this->ctrl->getFormAction($this, "update"));
1196 $form->setTitle($this->lng->txt($this->object->getType() . "_edit"));
1197
1198 $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
1199 $ti->setSize(min(40, ilObject::TITLE_LENGTH));
1200 $ti->setMaxLength(ilObject::TITLE_LENGTH);
1201 $ti->setRequired(true);
1202 $form->addItem($ti);
1203
1204 $ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
1205 $ta->setCols(40);
1206 $ta->setRows(2);
1207 $ta->setMaxNumOfChars(ilObject::LONG_DESC_LENGTH);
1208 $form->addItem($ta);
1209
1210 $this->initEditCustomForm($form);
1211
1212 $form->addCommandButton("update", $this->lng->txt("save"));
1213
1214 return $form;
1215 }
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 1644 of file class.ilObjectGUI.php.

1644 : bool
1645 {
1646 $visible = $this->checkPermissionBool("visible,read", "", "", $ref_id);
1647
1648 if ($visible && $type == 'crs') {
1650 if ($crs_id = $tree->checkForParentType($ref_id, 'crs')) {
1651 if (!$this->checkPermissionBool("write", "", "", $crs_id)) {
1652 // Show only activated courses
1653 $tmp_obj = ilObjectFactory::getInstanceByRefId($crs_id, false);
1654
1655 if (!$tmp_obj->isActivated()) {
1656 unset($tmp_obj);
1657 $visible = false;
1658 }
1659 }
1660 }
1661 }
1662
1663 return $visible;
1664 }
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 1112 of file class.ilObjectGUI.php.

1112 : int
1113 {
1114 if (substr($var, 0, strlen($type) + 1) != $type . "_") {
1115 return 0;
1116 }
1117
1118 return (int) substr($var, strlen($type) + 1);
1119 }

Referenced by ilObjCmiXapiGUI\save(), and 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(), 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(), 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 1124 of file class.ilObjectGUI.php.

1124 : void
1125 {
1126 if (!$parent_node_id) {
1127 $parent_node_id = $this->requested_ref_id;
1128 }
1129
1130 // add new object to custom parent container
1131 if ($this->requested_crtptrefid > 0) {
1132 $parent_node_id = $this->requested_crtptrefid;
1133 }
1134
1135 $obj->createReference();
1136 $obj->putInTree($parent_node_id);
1137 $obj->setPermissions($parent_node_id);
1138
1139 $this->obj_id = $obj->getId();
1140 $this->ref_id = $obj->getRefId();
1141
1142 // BEGIN ChangeEvent: Record save object.
1143 ilChangeEvent::_recordWriteEvent($this->obj_id, $this->user->getId(), 'create');
1144 // END ChangeEvent: Record save object.
1145
1146 // rbac log
1147 $rbac_log_roles = $this->rbac_review->getParentRoleIds($this->ref_id, false);
1148 $rbac_log = ilRbacLog::gatherFaPa($this->ref_id, array_keys($rbac_log_roles), true);
1149 ilRbacLog::add(ilRbacLog::CREATE_OBJECT, $this->ref_id, $rbac_log);
1150
1151 // use forced callback after object creation
1152 $this->callCreationCallback($obj, $this->obj_definition, $this->requested_crtcb);
1153 }
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 1869 of file class.ilObjectGUI.php.

1869 : void
1870 {
1871 $obj_type = ilObject::_lookupType($ref_id, true);
1872 $class_name = $this->obj_definition->getClassName($obj_type);
1873 $class = strtolower("ilObj" . $class_name . "GUI");
1874 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $ref_id);
1875 $this->ctrl->redirectByClass(["ilrepositorygui", $class], $cmd);
1876 }

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 2061 of file class.ilObjectGUI.php.

2061 : void
2062 {
2063 $this->lng->loadLanguageModule("rep");
2064 $item_ref_id = $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int());
2065 $this->favourites->remove($this->user->getId(), $item_ref_id);
2066 $this->tpl->setOnScreenMessage("success", $this->lng->txt("rep_removed_from_favourites"), true);
2067 $this->ctrl->redirectToURL(ilLink::_getLink($this->requested_ref_id));
2068 }

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.

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

904 : array
905 {
906 return [];
907 }

Referenced by buildDidacticTemplateOptions().

+ Here is the caller graph for this function:

◆ retrieveAndCheckImportData()

ilObjectGUI::retrieveAndCheckImportData ( )
private

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

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

References $data.

◆ retrieveAndCheckImportTypeData()

ilObjectGUI::retrieveAndCheckImportTypeData ( )
private

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

1496 : ?array
1497 {
1498 $modal = $this->buildImportTypeSelectorModal()->withRequest($this->request);
1499 $data = $modal->getData();
1500
1501 if ($data !== null) {
1502 return $data;
1503 }
1504
1505 $this->import_type_selector_modal = $modal->withOnLoad($modal->getShowSignal());
1506 return null;
1507 }
buildImportTypeSelectorModal(?string $file_to_import=null, ?string $upload_file_name=null)

References $data.

◆ retrieveFilesAndUploadTypeFromData()

ilObjectGUI::retrieveFilesAndUploadTypeFromData ( array  $data)
private

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

1524 : array
1525 {
1526 if (isset($data['type']) && isset($data['file_to_import']) && isset($data['temp_file'])) {
1527 return [
1528 $data['type'],
1529 implode(
1530 DIRECTORY_SEPARATOR,
1531 [CLIENT_DATA_DIR, 'temp', $data['temp_file'], $data['file_to_import']]
1532 ),
1533 $data['temp_file']
1534 ];
1535 }
1536 $file_to_import = $this->getFileToImportFromImportFormData($data);
1537 $path_to_uploaded_file_in_temp_dir = '';
1538 if (array_key_first($data['upload']) === self::UPLOAD_TYPE_LOCAL) {
1539 $path_to_uploaded_file_in_temp_dir = $data['upload'][self::UPLOAD_TYPE_LOCAL];
1540 }
1541
1542 return [
1543 $this->extractFileTypeFromImportFilename(basename($file_to_import)),
1544 $file_to_import,
1545 $path_to_uploaded_file_in_temp_dir
1546 ];
1547 }
getFileToImportFromImportFormData(array $data)

References $data, and CLIENT_DATA_DIR.

◆ routeImportCmdObject()

ilObjectGUI::routeImportCmdObject ( )
protected

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

1369 : void
1370 {
1371 if ($this->request_wrapper->has('step')) {
1373 } else {
1375 }
1376
1377 if ($data === null) {
1378 $this->viewObject();
1379 return;
1380 }
1381
1382 [$new_type, $file_to_import, $path_to_uploaded_file_in_temp_dir] = $this
1383 ->retrieveFilesAndUploadTypeFromData($data);
1384
1385 if ($new_type === null) {
1387 basename($file_to_import),
1388 $path_to_uploaded_file_in_temp_dir
1389 );
1390 return;
1391 }
1392
1393 // create permission is already checked in createObject. This check here is done to prevent hacking attempts
1394 if (!$this->checkPermissionBool('create', '', $new_type)
1395 || !in_array($new_type, $this->obj_definition->getAllObjects())
1396 || !array_key_exists($new_type, $this->object->getPossibleSubObjects())) {
1397 $this->deleteUploadedImportFile($path_to_uploaded_file_in_temp_dir);
1398 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_create_permission'));
1399 $this->viewObject();
1400 return;
1401 }
1402
1403 $this->lng->loadLanguageModule($new_type);
1404 $this->ctrl->setParameter($this, 'new_type', $new_type);
1405
1406 $target_class = 'ilObj' . $this->obj_definition->getClassName($new_type) . 'GUI';
1407 try {
1408 $target = new $target_class('', 0, false, false);
1409 } catch (TypeError $e) {
1410 $target = new $target_class(0, ilObject2GUI::REPOSITORY_NODE_ID, $this->getRefId());
1411 }
1412 $target->importFile($file_to_import, $path_to_uploaded_file_in_temp_dir);
1413 $this->ctrl->clearParameterByClass(get_class($this), 'new_type');
1414 $this->viewObject();
1415 }
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 1010 of file class.ilObjectGUI.php.

1010 : void
1011 {
1012 $availability_period_modal = $this->getMultiObjectPropertiesManipulator()->saveEditAvailabilityPeriodPropertiesModal(
1013 $this,
1014 fn($ref_ids): bool => $this->checkPermissionBool('write') || $this->checkWritePermissionOnRefIdArray($ref_ids),
1015 $this->request
1016 );
1017 if ($availability_period_modal === true) {
1018 $this->tpl->setOnScreenMessage('success', $this->lng->txt('availability_period_changed'));
1019 } elseif ($availability_period_modal === false) {
1020 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_write'));
1021 } else {
1022 $this->tpl->setVariable(
1023 'IL_OBJECT_EPHEMRAL_MODALS',
1024 $this->ui_renderer->render(
1025 $availability_period_modal->withOnLoad(
1026 $availability_period_modal->getShowSignal()
1027 )
1028 )
1029 );
1030 }
1031 $this->renderObject();
1032 }

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 1042 of file class.ilObjectGUI.php.

1042 : void
1043 {
1044 // create permission is already checked in createObject. This check here is done to prevent hacking attempts
1045 if (!$this->checkPermissionBool("create", "", $this->requested_new_type)) {
1046 $this->error->raiseError($this->lng->txt("no_create_permission"), $this->error->MESSAGE);
1047 }
1048
1049 $this->lng->loadLanguageModule($this->requested_new_type);
1050 $this->ctrl->setParameter($this, "new_type", $this->requested_new_type);
1051
1052 $form = $this->initCreateForm($this->requested_new_type)
1053 ->withRequest($this->request);
1054 $data = $form->getData();
1055 if ($data === null) {
1056 $this->tpl->setContent($this->getCreationFormsHTML($form));
1057 return;
1058 }
1059
1060 $this->ctrl->setParameter($this, 'new_type', '');
1061
1062 $class_name = 'ilObj' . $this->obj_definition->getClassName($this->requested_new_type);
1063
1064 $new_obj = new $class_name();
1065 $new_obj->setType($this->requested_new_type);
1066 $new_obj->processAutoRating();
1067 $new_obj->setTitle($data['title_and_description']->getTitle());
1068 $new_obj->setDescription($data['title_and_description']->getDescription());
1069 $new_obj->create();
1070
1071 $new_obj->getObjectProperties()->storePropertyTitleAndDescription(
1072 $data['title_and_description']
1073 );
1074
1075 $this->putObjectInTree($new_obj);
1076
1077 $dtpl = $data['didactic_templates'] ?? null;
1078 if ($dtpl !== null) {
1079 $dtpl_id = $this->parseDidacticTemplateVar($dtpl, 'dtpl');
1080 $new_obj->applyDidacticTemplate($dtpl_id);
1081 }
1082
1083 $this->afterSave($new_obj);
1084 }
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 1946 of file class.ilObjectGUI.php.

1946 : void
1947 {
1948 $column_gui->setRepositoryMode(true);
1949 $column_gui->setEnableEdit(false);
1950 if ($this->checkPermissionBool("write")) {
1951 $column_gui->setEnableEdit(true);
1952 }
1953 }
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 1595 of file class.ilObjectGUI.php.

1595 : void
1596 {
1597 $this->form_action[$cmd] = $form_action;
1598 }

◆ 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 1615 of file class.ilObjectGUI.php.

1615 : void
1616 {
1617 $this->return_location[$cmd] = $location;
1618 }
$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 1639 of file class.ilObjectGUI.php.

1639 : void
1640 {
1641 $this->target_frame[$cmd] = "target=\"" . $target_frame . "\"";
1642 }

◆ 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 1509 of file class.ilObjectGUI.php.

1512 : void {
1513 $this->ctrl->setParameterByClass(static::class, 'step', 'select_type');
1514 $modal = $this->buildImportTypeSelectorModal(
1515 $file_to_import,
1516 $path_to_uploaded_file_in_temp_dir
1517 );
1518 $this->ctrl->clearParameterByClass(static::class, 'step');
1519 $this->import_type_selector_modal = $modal->withOnLoad($modal->getShowSignal());
1520 $this->viewObject();
1521 return;
1522 }

◆ 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 1814 of file class.ilObjectGUI.php.

1814 : void
1815 {
1816 if ($this->sub_objects == "") {
1817 $sub_objects = $this->obj_definition->getCreatableSubObjects(
1818 $this->object->getType(),
1820 $this->ref_id
1821 );
1822 } else {
1824 }
1825
1826 $subobj = [];
1827 if (count($sub_objects) > 0) {
1828 foreach ($sub_objects as $row) {
1829 $count = 0;
1830 if ($row["max"] > 0) {
1831 //how many elements are present?
1832 for ($i = 0; $i < count($this->data["ctrl"]); $i++) {
1833 if ($this->data["ctrl"][$i]["type"] == $row["name"]) {
1834 $count++;
1835 }
1836 }
1837 }
1838
1839 if ($row["max"] == "" || $count < $row["max"]) {
1840 $subobj[] = $row["name"];
1841 }
1842 }
1843 }
1844
1845 if (count($subobj) > 0) {
1846 $opts = ilLegacyFormElementsUtil::formSelect(12, "new_type", $subobj);
1847 $this->tpl->setCurrentBlock("add_object");
1848 $this->tpl->setVariable("SELECT_OBJTYPE", $opts);
1849 $this->tpl->setVariable("BTN_NAME", "create");
1850 $this->tpl->setVariable("TXT_ADD", $this->lng->txt("add"));
1851 $this->tpl->parseCurrentBlock();
1852 }
1853 }
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, and ilObjPortfolioBaseGUI.

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

1276 : void
1277 {
1278 }

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 1242 of file class.ilObjectGUI.php.

1242 : void
1243 {
1244 if (!$this->checkPermissionBool("write")) {
1245 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
1246 }
1247
1248 $form = $this->initEditForm();
1249 if ($form->checkInput() && $this->validateCustom($form)) {
1250 $this->updateCustom($form);
1251 $this->object->setTitle($form->getInput('title'));
1252 $this->object->setDescription($form->getInput('desc'));
1253 $this->object->update();
1254
1255 $this->afterUpdate();
1256 return;
1257 }
1258
1259 // display form again to correct errors
1260 $this->tabs_gui->activateTab("settings");
1261 $form->setValuesByPost();
1262 $this->tpl->setContent($form->getHTML());
1263 }
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 1268 of file class.ilObjectGUI.php.

1268 : bool
1269 {
1270 return true;
1271 }

◆ viewObject()

ilObjectGUI::viewObject ( )

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

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

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

1669 : void
1670 {
1671 $this->checkPermission('visible') && $this->checkPermission('read');
1672
1673 $this->tabs_gui->activateTab('view');
1674
1676 $this->object->getType(),
1677 $this->object->getRefId(),
1678 $this->object->getId(),
1679 $this->user->getId()
1680 );
1681
1682 if (!$this->withReferences()) {
1683 $this->ctrl->setParameter($this, 'obj_id', $this->obj_id);
1684 }
1685
1686 $itab = new ilAdminSubItemsTableGUI(
1687 $this,
1688 "view",
1689 $this->requested_ref_id,
1690 $this->checkPermissionBool('write')
1691 );
1692
1693 $this->tpl->setContent($itab->getHTML());
1694 }
TableGUI class for sub items listed in repository administration.
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, $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(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjFolderGUI\infoScreen(), ilObjWikiGUI\infoScreen(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjCourseReferenceGUI\initForm(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjBookingPoolGUI\initHeaderAction(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjMediaCastGUI\listItemsObject(), ilObjRepositorySettingsGUI\listModules(), ilObjRepositorySettingsGUI\listNewItemGroups(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilObjRepositorySettingsGUI\saveModules(), ilContainerReferenceGUI\saveObject(), ilObjStudyProgrammeReferenceGUI\saveObject(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjWikiGUI\setSettingsSubTabs(), and ilObjSCORM2004LearningModuleGUI\showTrackingItems().

◆ $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(), ilObjMapsGUI\buildForm(), 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(), 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(), ilObjContentObjectGUI\proceedDragDrop(), ilObjFileBasedLMGUI\redirectAfterCreation(), ilContainerReferenceGUI\redirectObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjMediaCastGUI\saveCastItemObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjBookingPoolGUI\saveNotificationObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), 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(), ilObjMapsGUI\__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(), ilObjCmiXapiGUI\save(), 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 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(), ilObjMapsGUI\__construct(), ilObjChatroomAdminGUI\__construct(), ilObjChatroomGUI\__construct(), ilObjServerInfoGUI\__construct(), ilObjBenchmarkGUI\__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(), ilObjSkillTreeGUI\delete(), 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(), ilObjMediaCastGUI\__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(), ilObjExerciseGUI\addContentSubTabs(), ilObjMapsGUI\buildForm(), ilObjSkillTreeGUI\create(), 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(), 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(), ilObjSkillTreeGUI\initTreeForm(), ilObjMediaCastGUI\listItemsObject(), ilObjContentObjectGUI\properties(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), 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

◆ $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

◆ $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.

Referenced by ilAdministrationGUI\__construct().

◆ ADMIN_MODE_SETTINGS

const ilObjectGUI::ADMIN_MODE_SETTINGS = "settings"

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

Referenced by ilAdministrationGUI\__construct().

◆ 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: