ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Private Member Functions

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

Private Attributes

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

Detailed Description

Class ilObjectGUI Basic methods of all Output classes.

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

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

Member Function Documentation

◆ _gotoRepositoryNode()

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

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

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

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

2011  : void
2012  {
2013  global $DIC;
2014 
2015  $ctrl = $DIC->ctrl();
2016  $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", $ref_id);
2017  $ctrl->redirectByClass("ilRepositoryGUI", $cmd);
2018  }
setParameterByClass(string $a_class, string $a_parameter, $a_value)
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
global $DIC
Definition: shib_login.php:26
+ 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

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

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

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

1992  : void
1993  {
1994  global $DIC;
1995 
1996  $ilAccess = $DIC->access();
1997  $ilErr = $DIC["ilErr"];
1998  $lng = $DIC->language();
1999  $ctrl = $DIC->ctrl();
2000 
2001  if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
2002  $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", ROOT_FOLDER_ID);
2003  $ctrl->redirectByClass("ilRepositoryGUI");
2004  }
2005 
2006  if ($raise_error) {
2007  $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
2008  }
2009  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
const ROOT_FOLDER_ID
Definition: constants.php:32
setParameterByClass(string $a_class, string $a_parameter, $a_value)
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
$ilErr
Definition: raiseError.php:33
ilLanguage $lng
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _gotoSharedWorkspaceNode()

static ilObjectGUI::_gotoSharedWorkspaceNode ( int  $wsp_id)
static

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

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

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

2020  : void
2021  {
2022  global $DIC;
2023 
2024  $ctrl = $DIC->ctrl();
2025  $ctrl->setParameterByClass(ilSharedResourceGUI::class, "wsp_id", $wsp_id);
2026  $ctrl->redirectByClass(ilSharedResourceGUI::class, "");
2027  }
setParameterByClass(string $a_class, string $a_parameter, $a_value)
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
global $DIC
Definition: shib_login.php:26
+ 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)

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

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

Referenced by prepareOutput().

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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addAdoptContentLinkToToolbar()

ilObjectGUI::addAdoptContentLinkToToolbar ( )
protected

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

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

Referenced by ilObjCourseGUI\renderObject(), and ilObjGroupGUI\viewObject().

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

◆ addAvailabilityPeriodButtonToToolbar()

ilObjectGUI::addAvailabilityPeriodButtonToToolbar ( ilToolbarGUI  $toolbar)
protected

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

References $toolbar, ilToolbarGUI\addComponent(), ilToolbarGUI\addSeparator(), and getMultiObjectPropertiesManipulator().

Referenced by ilContainerGUI\showAdministrationPanel().

961  : ilToolbarGUI
962  {
963  $toolbar->addSeparator();
964 
965  $toolbar->addComponent(
966  $this->getMultiObjectPropertiesManipulator()->getAvailabilityPeriodButton()
967  );
968  return $toolbar;
969  }
addComponent(\ILIAS\UI\Component\Component $a_comp)
ilToolbarGUI $toolbar
getMultiObjectPropertiesManipulator()
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addExternalEditFormCustom()

ilObjectGUI::addExternalEditFormCustom ( ilPropertyFormGUI  $form)

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

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

1170  : void
1171  {
1172  // has to be done AFTER setValuesByArray() ...
1173  }
+ Here is the caller graph for this function:

◆ addHeaderAction()

ilObjectGUI::addHeaderAction ( )
protected

Add header action menu.

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

References initHeaderAction(), and insertHeaderAction().

Referenced by ilObjExerciseGUI\__construct(), ilObjCmiXapiGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjBlogGUI\addHeaderActionForCommand(), ilObjContentObjectGUI\checkCtrlPath(), ilObjContentObjectGUI\doExportHTML(), ilObjContentObjectGUI\doExportXML(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjItemGroupGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjSCORM2004LearningModuleGUI\executeCommand(), ilObjLinkResourceGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjChatroomGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjBibliographicGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjWorkspaceFolderGUI\executeCommand(), ilObjLearningSequenceGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjTestGUI\forwardToEvaluationGUI(), ilObjFileGUI\getParentId(), ilObjForumGUI\getSafePostCommands(), ilObjContentPageGUI\renderHeaderActions(), ilObjContentObjectGUI\showExportOptionsHTML(), ilObjContentObjectGUI\showExportOptionsXML(), and ilObjForumGUI\viewThreadObject().

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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addImportButtonToToolbar()

ilObjectGUI::addImportButtonToToolbar ( )
protected

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

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

Referenced by ilContainerGUI\renderObject().

909  : void
910  {
911  $modal = $this->import_modal ?? $this->buildImportModal();
912  $this->toolbar->addComponent(
913  $this->ui_factory->button()->standard(
914  $this->lng->txt('import'),
915  $modal->getShowSignal()
916  )
917  );
918 
919  $this->tpl->setVariable(
920  'IL_OBJECT_IMPORT_MODAL',
921  $this->ui_renderer->render(
922  $this->import_type_selector_modal === null
923  ? $modal
924  : [$modal, $this->import_type_selector_modal]
925  )
926  );
927  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLocatorItems()

ilObjectGUI::addLocatorItems ( )
protected

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

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

Referenced by setLocator().

564  : void
565  {
566  }
+ Here is the caller graph for this function:

◆ addToDeskObject()

ilObjectGUI::addToDeskObject ( )

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

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

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

◆ afterImport()

ilObjectGUI::afterImport ( ilObject  $new_object)
protected

Post (successful) object import hook.

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

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

Referenced by importFile(), and ilObjBibliographicGUI\removeFromDesk().

1564  : void
1565  {
1566  $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
1567  $this->ctrl->returnToParent($this);
1568  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterSave()

ilObjectGUI::afterSave ( ilObject  $new_object)
protected

Post (successful) object creation hook.

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

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

Referenced by ilObjEmployeeTalkSeriesGUI\cancelObject(), ilObjPortfolioTemplateGUI\initDidacticTemplate(), ilObjExerciseVerificationGUI\save(), ilObjSCORMVerificationGUI\save(), ilObjLTIConsumerVerificationGUI\save(), ilObjCmiXapiVerificationGUI\save(), ilObjCourseVerificationGUI\save(), ilObjTestVerificationGUI\save(), ilObjEmployeeTalkSeriesGUI\saveObject(), and saveObject().

1145  : void
1146  {
1147  $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
1148  $this->ctrl->returnToParent($this);
1149  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterUpdate()

ilObjectGUI::afterUpdate ( )
protected

Post (successful) object update hook.

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

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

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

1270  : void
1271  {
1272  $this->tpl->setOnScreenMessage("success", $this->lng->txt("msg_obj_modified"), true);
1273  $this->ctrl->redirect($this, "edit");
1274  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ assignObject()

ilObjectGUI::assignObject ( )
protected

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

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

Referenced by ilObjLearningModuleGUI\__construct().

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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildAddNewItemElements()

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

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

References ILIAS\Repository\ctrl(), ilObjRepositorySettings\getDefaultNewItemGrouping(), ilObjRepositorySettings\getNewItemGroups(), ilObjRepositorySettings\getNewItemGroupSubItems(), initAddnewItemElementsFromDefaultGroups(), initAddNewItemElementsFromNewItemGroups(), and null.

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

2076  : array {
2077  if ($subtypes === []) {
2078  return [];
2079  }
2080  if ($redirect_target_ref_id !== null) {
2081  $this->ctrl->setParameterByClass($create_target_class, 'crtcb', (string) $redirect_target_ref_id);
2082  }
2083 
2084  $elements = $this->initAddNewItemElementsFromNewItemGroups(
2085  $create_target_class,
2088  $subtypes
2089  );
2090  if ($elements === []) {
2091  $elements = $this->initAddnewItemElementsFromDefaultGroups(
2092  $create_target_class,
2094  $subtypes
2095  );
2096  }
2097 
2098  $this->ctrl->clearParameterByClass(self::class, 'crtcb');
2099  return $elements;
2100  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildDeleletionModal()

ilObjectGUI::buildDeleletionModal ( array  $request_ids)
private

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

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

Referenced by confirmedDeleteObject(), and deleteObject().

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

◆ buildDeletionModalItems()

ilObjectGUI::buildDeletionModalItems ( array  $ref_ids)
private

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

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

Referenced by buildDeleletionModal().

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

◆ buildDidacticTemplateOptions()

ilObjectGUI::buildDidacticTemplateOptions ( )
private

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

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

Referenced by didacticTemplatesToForm(), and initDidacticTemplate().

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

◆ buildGroup()

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

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

References buildSubItemsForGroup(), ILIAS\ILIASObject\Creation\Group, and null.

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

2180  : ?AddNewItemElement {
2181  $add_new_items_content_array = $this->buildSubItemsForGroup(
2182  $create_target_class,
2183  $obj_types_in_group,
2184  $subtypes
2185  );
2186  if ($add_new_items_content_array === []) {
2187  return null;
2188  }
2189  return new AddNewItemElement(
2191  $title,
2192  null,
2193  null,
2194  $add_new_items_content_array
2195  );
2196  }
buildSubItemsForGroup(string $create_target_class, array $obj_types_in_group, array $subtypes)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildImportFormInputs()

ilObjectGUI::buildImportFormInputs ( )
private

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

References $type, extractFileTypeFromImportFilename(), ILIAS\Repository\lng(), null, ILIAS\Repository\refinery(), ilImportDirectoryFactory\TYPE_EXPORT, and ILIAS\Repository\user().

Referenced by buildImportModal().

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

◆ buildImportModal()

ilObjectGUI::buildImportModal ( )
private

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

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

Referenced by addImportButtonToToolbar(), and retrieveAndCheckImportData().

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

◆ buildImportTypeSelectorInputs()

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

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

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

Referenced by buildImportTypeSelectorModal().

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

◆ buildImportTypeSelectorModal()

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

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

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

Referenced by retrieveAndCheckImportTypeData(), and showImportTypeSelectorModal().

943  : Roundtrip {
944  return $this->ui_factory->modal()
945  ->roundtrip(
946  $this->lng->txt('select_object_type'),
947  [
948  $this->ui_factory->messageBox()->info(
949  $this->lng->txt('select_import_type_info')
950  )
951  ],
953  $file_to_import,
954  $upload_file_name
955  ),
956  $this->ctrl->getFormActionByClass(static::class, 'routeImportCmd')
957  )->withCloseWithKeyboard(false)
958  ->withSubmitLabel($this->lng->txt('import'));
959  }
buildImportTypeSelectorInputs(?string $file_to_import=null, ?string $file_name_in_temp_dir=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildInputsForAdditionalDeletionReferences()

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

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

References $c, ilObject\_getAllReferences(), ilObject\_lookupObjId(), ILIAS\Repository\access(), ilPathGUI\getPath(), and ROOT_FOLDER_ID.

Referenced by buildDeletionModalItems().

1782  : array
1783  {
1784  return array_reduce(
1786  function (array $c, int $v) use ($ref_id, $path_gui): array {
1787  if ($v !== $ref_id
1788  && !$this->tree->isDeleted($v)
1789  && $this->access->checkAccess('delete', '', $v)) {
1790  $c[$v] = $path_gui->getPath(ROOT_FOLDER_ID, $v);
1791  }
1792  return $c;
1793  },
1794  []
1795  );
1796  }
const ROOT_FOLDER_ID
Definition: constants.php:32
static _getAllReferences(int $id)
get all reference ids for object ID
$c
Definition: deliver.php:25
static _lookupObjId(int $ref_id)
getPath(int $a_startnode, int $a_endnode)
get path
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildRefIdsFromData()

ilObjectGUI::buildRefIdsFromData ( array  $data)
private

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

References $c, null, ILIAS\Repository\refinery(), and ILIAS\Refinery\transform().

Referenced by confirmedDeleteObject().

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  }
$c
Definition: deliver.php:25
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildSubItemsForGroup()

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

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

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

Referenced by buildGroup().

2202  : array {
2203  $add_new_items_content_array = [];
2204  foreach ($obj_types_in_group as $type) {
2205  if (!array_key_exists($type, $subtypes)) {
2206  continue;
2207  }
2208  $subitem = $subtypes[$type];
2209  $this->ctrl->setParameterByClass($create_target_class, 'new_type', $type);
2210  $add_new_items_content_array[$subitem['pos']] = new AddNewItemElement(
2211  AddNewItemElementTypes::Object,
2213  empty($subitem['plugin'])
2214  ? $this->ui_factory->symbol()->icon()->standard($type, '')
2215  : $this->ui_factory->symbol()->icon()->custom(
2216  ilObject::getIconForType($type),
2217  ''
2218  ),
2219  new URI(
2220  ILIAS_HTTP_PATH . '/' . $this->ctrl->getLinkTargetByClass($create_target_class, 'create')
2221  )
2222  );
2223  $this->ctrl->clearParameterByClass($create_target_class, 'new_type', $type);
2224  }
2225  ksort($add_new_items_content_array);
2226  return $add_new_items_content_array;
2227  }
getTranslatedObjectTypeNameFromItemArray(array $item_array)
static getIconForType(string $type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancelCreation()

ilObjectGUI::cancelCreation ( )

cancel create action and go back to repository parent

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

References ILIAS\Repository\ctrl().

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

1024  : void
1025  {
1026  $this->ctrl->redirectByClass("ilrepositorygui", "");
1027  }
+ 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

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

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

Referenced by ilObjFileBasedLMGUI\cancel().

669  : void
670  {
671  ilSession::clear("saved_post");
672  $this->ctrl->returnToParent($this);
673  }
static clear(string $a_var)
+ 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

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

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

Referenced by ilObjBibliographicAdminGUI\__construct(), ilObjExerciseGUI\__construct(), ilObjMediaCastGUI\addCastItemObject(), ilObjBadgeAdministrationGUI\addImageTemplate(), ilObjWikiGUI\addImportantPageObject(), ilObjRoleFolderGUI\adjustRoleObject(), ilObjWikiGUI\allPagesObject(), ilObjCategoryGUI\assignRolesObject(), ilObjCategoryGUI\assignSave(), ilObjSessionGUI\attendanceListObject(), ilObjCourseGUI\autoFillObject(), ilObjContentObjectGUI\checkCtrlPath(), ilObjLanguageFolderGUI\checkLanguageObject(), ilObjBadgeAdministrationGUI\confirmDeleteImageTemplates(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilObjLanguageFolderGUI\confirmRefreshObject(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilContainerGUI\confirmRemoveFromSystemObject(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ilObjLTIAdministrationGUI\createLTIConsumer(), ilObjMediaCastGUI\deleteItemsObject(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjCategoryGUI\deleteUsersObject(), ilObjMediaCastGUI\downloadItemObject(), ilObjWikiGUI\downloadUserHTMLExportObject(), ilObjWikiGUI\downloadUserHTMLExportWithCommentsObject(), ilObjMediaCastGUI\editCastItemObject(), ilObjBadgeAdministrationGUI\editImageTemplate(), ilObjWikiGUI\editImportantPagesObject(), ilObjCourseGUI\editInfoObject(), ilObjCategoryGUI\editInfoObject(), ilObjGroupGUI\editInfoObject(), ilObjUserTrackingGUI\editLPDefaultsObject(), ilObjGroupGUI\editObject(), ilObjMediaCastGUI\editOrderObject(), ilObjLoggingSettingsGUI\errorSettings(), ilObjLearningSequenceAdminGUI\executeCommand(), ilObjSystemCheckGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjLanguageFolderGUI\executeCommand(), ilObjAuthSettingsGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\exportObject(), ilObjUserFolderGUI\exportObject(), ilObjMediaCastGUI\extractPreviewImageObject(), ilContainerGUI\forwardToPageObject(), ilObjForumGUI\getSafePostCommands(), ilObjExerciseGUI\getService(), ilObjWikiGUI\getUserHTMLExportProgressObject(), ilObjSurveyGUI\importSurveyObject(), ilObjCourseGUI\infoScreen(), ilObjBookingPoolGUI\infoScreen(), ilObjMediaCastGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjSurveyQuestionPoolGUI\infoScreenForward(), ilObjWikiGUI\infoScreenObject(), ilObjMediaCastGUI\infoScreenObject(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjWikiGUI\initUserHTMLExportObject(), ilObjLanguageFolderGUI\installLocalObject(), ilObjLanguageFolderGUI\installObject(), ilObjSessionGUI\joinObject(), ilObjGroupGUI\leaveObject(), ilObjCourseGUI\leaveObject(), ilObjWikiGUI\listContributorsObject(), ilObjMediaCastGUI\listItemsObject(), ilObjWikiGUI\newPagesObject(), ilObjWikiGUI\orphanedPagesObject(), ilObjCategoryGUI\performDeleteUsersObject(), ilObjUserFolderGUI\performExportObject(), ilObjWikiGUI\performSearchObject(), ilObjCourseGUI\performUnsubscribeObject(), ilObjWikiGUI\popularPagesObject(), ilObjSessionGUI\printAttendanceListObject(), ilObjSurveyGUI\propertiesObject(), ilObjWikiGUI\randomPageObject(), ilObjWikiGUI\recentChangesObject(), ilObjLanguageFolderGUI\refreshObject(), ilObjLanguageFolderGUI\refreshSelectedObject(), ilObjSessionGUI\registerObject(), ilContainerGUI\removeFromSystemObject(), ilObjWikiGUI\removeImportantPagesObject(), ilObjFolderGUI\renderObject(), ilObjCourseGUI\renderObject(), ilObjLoggingSettingsGUI\resetComponentLevels(), ilObjCalendarSettingsGUI\save(), ilObjMediaCastGUI\saveCastItemObject(), ilObjLoggingSettingsGUI\saveComponentLevels(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjWikiGUI\saveGradingObject(), ilObjBadgeAdministrationGUI\saveImageTemplate(), ilObjUserTrackingGUI\saveLPDefaultsObject(), ilObjAdvancedEditingGUI\saveObject(), ilObjWikiGUI\saveOrderingAndIndentObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjWebResourceAdministrationGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjStudyProgrammeAdminGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjUserTrackingGUI\saveSettingsObject(), ilObjWikiGUI\setAsStartPageObject(), ilObjLanguageFolderGUI\setSystemLanguageObject(), ilObjLanguageFolderGUI\setUserLanguageObject(), ilObjSessionGUI\showJoinRequestButton(), ilObjExerciseGUI\showOverviewObject(), ilObjTaggingSettingsGUI\showUsers(), ilObjWikiGUI\startUserHTMLExportObject(), ilObjSystemCheckGUI\trash(), ilContainerGUI\trashObject(), ilObjLanguageFolderGUI\uninstallChangesObject(), ilObjLanguageFolderGUI\uninstallObject(), ilObjGroupGUI\unsubscribeObject(), ilObjMediaCastGUI\updateCastItemObject(), ilObjLoggingSettingsGUI\updateErrorSettings(), ilObjBadgeAdministrationGUI\updateImageTemplate(), ilObjCourseGUI\updateInfoObject(), ilObjCategoryGUI\updateInfoObject(), ilObjGroupGUI\updateInfoObject(), ilObjLTIAdministrationGUI\updateLTIConsumer(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjFolderGUI\viewObject(), ilObjRootFolderGUI\viewObject(), ilObjWikiGUI\viewObject(), viewObject(), and ilObjWikiGUI\viewPageObject().

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

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

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

Referenced by ilObjExerciseGUI\__construct(), ilObjBadgeAdministrationGUI\activateTypes(), ilObjExerciseGUI\addContentSubTabs(), ilObjBookingPoolGUI\addExternalEditFormCustom(), ilObjSurveyGUI\addToNavigationHistory(), checkPermission(), ilObjLoggingSettingsGUI\components(), ilObjFileBasedLMGUI\createFromDirectory(), createObject(), ilObjTestGUI\createQuestionPoolAndCopyObject(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjBadgeAdministrationGUI\deleteImageTemplates(), editAvailabilityPeriodObject(), ilObjMediaCastGUI\editObject(), ilObjFolderGUI\editObject(), editObject(), ilObjSystemCheckGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjObjectTemplateAdministrationGUI\getAdminTabs(), ilObjExerciseAdministrationGUI\getAdminTabs(), ilObjNotificationAdminGUI\getAdminTabs(), ilObjBlogAdministrationGUI\getAdminTabs(), ilObjPortfolioAdministrationGUI\getAdminTabs(), ilObjSystemCheckGUI\getAdminTabs(), getAdminTabs(), ilObjEmployeeTalkGUI\getAdminTabs(), ilObjRoleFolderGUI\getAdminTabs(), ilContainerGUI\getAdminTabs(), ilObjForumGUI\getSafePostCommands(), ilObjExerciseGUI\getService(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjUserTrackingGUI\getTabs(), ilObjSurveyAdministrationGUI\getTabs(), ilObjSurveyGUI\getTabs(), ilObjLanguageFolderGUI\getTabs(), ilObjSurveyQuestionPoolGUI\getTabs(), ilObjCourseGUI\hasAdminPermission(), ilObjFileBasedLMGUI\importFromUploadDir(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilObjCourseGUI\infoScreen(), ilObjBookingPoolGUI\infoScreen(), ilObjMediaCastGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjSAHSLearningModuleGUI\infoScreenForward(), ilObjSurveyQuestionPoolGUI\infoScreenForward(), ilObjMediaCastGUI\infoScreenObject(), ilObjSessionGUI\initForm(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjCalendarSettingsGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjUserTrackingGUI\initLPDefaultsForm(), ilObjAdvancedEditingGUI\initPageEditorForm(), ilObjPrivacySecurityGUI\initPrivacyForm(), ilObjUserTrackingGUI\initSettingsForm(), isVisible(), ilObjExerciseGUI\listAssignmentsObject(), ilObjLTIAdministrationGUI\listConsumers(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjFileBasedLMGUI\properties(), ilObjSurveyQuestionPoolGUI\questionsObject(), routeImportCmdObject(), saveAvailabilityPeriodObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilContainerReferenceGUI\saveObject(), ilObjGlossaryGUI\saveObject(), saveObject(), ilObjNotificationAdminGUI\saveOSDSettings(), ilObjFileBasedLMGUI\saveProperties(), ilObjRoleFolderGUI\saveSettingsObject(), ilObjUserFolderGUI\searchUserAccessFilterCallable(), setColumnSettings(), ilObjSystemCheckGUI\setMainSubTabs(), ilObjFileBasedLMGUI\setStartFile(), ilObjRootFolderGUI\updateObject(), ilObjCategoryGUI\updateObject(), updateObject(), ilObjUserFolderGUI\usrExportCsvObject(), ilObjUserFolderGUI\usrExportX86Object(), ilObjUserFolderGUI\usrExportXmlObject(), ilObjLanguageFolderGUI\viewObject(), and viewObject().

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

◆ checkWritePermissionOnRefIdArray()

ilObjectGUI::checkWritePermissionOnRefIdArray ( array  $ref_ids)
private

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

References ILIAS\Repository\access().

Referenced by editAvailabilityPeriodObject(), and saveAvailabilityPeriodObject().

2229  : bool
2230  {
2231  foreach ($ref_ids as $ref_id) {
2232  if (!$this->access->checkAccess('write', '', $ref_id)) {
2233  return false;
2234  }
2235  }
2236  return true;
2237  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedDeleteObject()

ilObjectGUI::confirmedDeleteObject ( )

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

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

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

Referenced by ilObjLearningSequenceGUI\executeCommand().

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 
622  $data = $this->buildDeleletionModal(
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)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Repository GUI Utilities.
buildDeleletionModal(array $request_ids)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createActionDispatcherGUI()

ilObjectGUI::createActionDispatcherGUI ( )
protected

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

References $ref_id, 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

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

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

Referenced by ilObjLTIConsumerGUI\applyProviderFilter(), ilContainerGUI\cloneAllObject(), ilObjGlossaryGUI\importObject(), ilObjLTIConsumerGUI\resetProviderFilter(), and ilObjSessionGUI\saveObject().

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  }
getCreationFormsHTML(StandardForm|ilPropertyFormGUI|array $form)
string $requested_new_type
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
initCreateForm(string $new_type)
static getIconForType(string $type)
+ 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)

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

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

Referenced by ilObjLearningSequenceGUI\executeCommand().

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

◆ deleteUploadedImportFile()

ilObjectGUI::deleteUploadedImportFile ( string  $path_to_uploaded_file_in_temp_dir)
protected

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

Referenced by ilObjQuestionPoolGUI\cleanupAfterImport(), ilObjSAHSLearningModuleGUI\importFile(), ilObjSurveyQuestionPoolGUI\importFile(), ilObjTestGUI\importFile(), importFile(), ilObjTestGUI\importVerifiedFileObject(), and routeImportCmdObject().

1462  : void
1463  {
1464  if ($path_to_uploaded_file_in_temp_dir !== ''
1465  && $this->temp_file_system->hasDir($path_to_uploaded_file_in_temp_dir)) {
1466  $this->temp_file_system->deleteDir($path_to_uploaded_file_in_temp_dir);
1467  }
1468  }
+ Here is the caller graph for this function:

◆ didacticTemplatesToForm()

ilObjectGUI::didacticTemplatesToForm ( )
protected

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

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

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

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

◆ editAvailabilityPeriodObject()

ilObjectGUI::editAvailabilityPeriodObject ( )

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

References checkPermissionBool(), checkWritePermissionOnRefIdArray(), getMultiObjectPropertiesManipulator(), ILIAS\Repository\lng(), and null.

971  : void
972  {
973  $item_ref_ids = $this->retriever->getSelectedIdsFromObjectList();
974  if (!$this->checkPermissionBool('write')
975  && !$this->checkWritePermissionOnRefIdArray($item_ref_ids)) {
976  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_write'));
977  return;
978  }
979 
980  $availability_period_modal = $this->getMultiObjectPropertiesManipulator()->getEditAvailabilityPeriodPropertiesModal(
981  $item_ref_ids,
982  $this
983  );
984  if ($availability_period_modal !== null) {
985  $this->tpl->setVariable(
986  'IL_OBJECT_EPHEMRAL_MODALS',
987  $this->ui_renderer->render(
988  $availability_period_modal->withOnLoad(
989  $availability_period_modal->getShowSignal()
990  )
991  )
992  );
993  }
994  $this->renderObject();
995  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
checkWritePermissionOnRefIdArray(array $ref_ids)
getMultiObjectPropertiesManipulator()
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ editObject()

ilObjectGUI::editObject ( )

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

References addExternalEditFormCustom(), checkPermissionBool(), getEditFormValues(), initEditForm(), and ILIAS\Repository\lng().

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

1151  : void
1152  {
1153  if (!$this->checkPermissionBool("write")) {
1154  $this->error->raiseError($this->lng->txt("msg_no_perm_write"), $this->error->MESSAGE);
1155  }
1156 
1157  $this->tabs_gui->activateTab("settings");
1158 
1159  $form = $this->initEditForm();
1160  $values = $this->getEditFormValues();
1161  if ($values) {
1162  $form->setValuesByArray($values);
1163  }
1164 
1165  $this->addExternalEditFormCustom($form);
1166 
1167  $this->tpl->setContent($form->getHTML());
1168  }
addExternalEditFormCustom(ilPropertyFormGUI $form)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ 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.

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

Referenced by prepareOutput().

2032  : void
2033  {
2034  $this->tpl->setFileUploadRefId($this->ref_id);
2035  }
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjectGUI::executeCommand ( )

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

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

Referenced by ilObjAccessibilitySettingsGUI\__construct(), ilObjExerciseGUI\__construct(), ilObjContentObjectGUI\checkCtrlPath(), ilObjForumGUI\getSafePostCommands(), and ilObjMediaObjectGUI\returnToContextObject().

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)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extractFileTypeFromImportFilename()

ilObjectGUI::extractFileTypeFromImportFilename ( string  $filename)
private

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

References null.

Referenced by buildImportFormInputs(), and retrieveFilesAndUploadTypeFromData().

1536  : ?string
1537  {
1538  $matches = [];
1539  $result = preg_match('/[0-9]{10}__[0-9]{1,6}__([a-z]{1,4})_[0-9]{2,9}.zip/', $filename, $matches);
1540  if ($result === false
1541  || $result === 0
1542  || !isset($matches[1])) {
1543  return null;
1544  }
1545  return $matches[1];
1546  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$filename
Definition: buildRTE.php:78
+ Here is the caller graph for this function:

◆ getAdminMode()

ilObjectGUI::getAdminMode ( )

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

References $admin_mode.

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

245  : string
246  {
247  return $this->admin_mode;
248  }
+ Here is the caller graph for this function:

◆ getAdminTabs()

ilObjectGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

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

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

Referenced by setAdminTabs(), and ilObjBibliographicAdminGUI\view().

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  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCenterColumnHTML()

ilObjectGUI::getCenterColumnHTML ( )
protected

Get center column.

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

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, ILIAS\Repository\object(), and setColumnSettings().

Referenced by ilObjForumGUI\showThreadsObject().

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

◆ getCreatableObjectTypes()

ilObjectGUI::getCreatableObjectTypes ( )
protected

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

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

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

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

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

References getCreationFormTitle().

Referenced by createObject(), ilObjItemGroupGUI\save(), saveObject(), and ilObjFileGUI\uploadFiles().

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  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCreationFormTitle()

ilObjectGUI::getCreationFormTitle ( )
protected

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

References ILIAS\Repository\lng().

Referenced by getCreationFormsHTML().

733  : string
734  {
735  return $this->lng->txt($this->requested_new_type . '_new');
736  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCreationMode()

◆ getDidacticTemplateVar()

ilObjectGUI::getDidacticTemplateVar ( string  $type)

Get didactic template setting from creation screen.

Deprecated:
10 Will be removed with ILIAS 12

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

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

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

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

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

Referenced by ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), and getEditFormValues().

1222  : void
1223  {
1224  }
+ Here is the caller graph for this function:

◆ getEditFormValues()

ilObjectGUI::getEditFormValues ( )
protected

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

References getEditFormCustomValues().

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

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

◆ getFileToImportFromImportFormData()

ilObjectGUI::getFileToImportFromImportFormData ( array  $data)
private

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

References CLIENT_DATA_DIR.

Referenced by retrieveFilesAndUploadTypeFromData().

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

◆ getFormAction()

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

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

"perm").

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

Referenced by ilObjCourseGUI\redirectLocToTestConfirmation().

1573  : string
1574  {
1575  if ($this->form_action[$cmd] != "") {
1576  return $this->form_action[$cmd];
1577  }
1578 
1579  return $default_form_action;
1580  }
+ Here is the caller graph for this function:

◆ getHTML()

ilObjectGUI::getHTML ( )

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

References $html.

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

◆ getMultiObjectPropertiesManipulator()

ilObjectGUI::getMultiObjectPropertiesManipulator ( )
private

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

References $multi_object_manipulator.

Referenced by addAvailabilityPeriodButtonToToolbar(), editAvailabilityPeriodObject(), and saveAvailabilityPeriodObject().

221  {
222  if (!isset($this->multi_object_manipulator)) {
223  $this->multi_object_manipulator = LocalDIC::dic()['properties.multi_manipulator'];
224  }
226  }
MultiPropertiesManipulator $multi_object_manipulator
+ Here is the caller graph for this function:

◆ getObject()

ilObjectGUI::getObject ( )

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

References $object.

Referenced by ilTestPersonalDefaultSettingsTableGUI\__construct(), ilOrgUnitExportGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilExtIdGUI\__construct(), ilContainerNewsSettingsGUI\__construct(), ilContainerFilterAdminGUI\__construct(), ilContainerSkillGUI\__construct(), ilBookingParticipantGUI\__construct(), ilContSkillPresentationGUI\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilLocalUserGUI\__construct(), ilBookingGatewayGUI\__construct(), ilMediaCastManageTableGUI\__construct(), ilCourseContentGUI\__construct(), ilLOEditorGUI\__construct(), ilDclRecordListGUI\__construct(), ilContSkillAdminGUI\__construct(), ilObjContentObjectGUI\checkCtrlPath(), ilObjLearningSequenceGUI\checkLPAccess(), ilObjForumGUI\checkUsersViewMode(), ilObjItemGroupGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjDataCollectionGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilChatroom\getChatURL(), ilObjLearningSequenceGUI\getGUILearningProgress(), ilObjLearningSequenceGUI\getGUIMembers(), ilObjLearningSequenceGUI\getGUISettings(), ilContainerGUI\getItemPresentation(), ilContainerGUI\getModeManager(), ilChatroomFormFactory\getSettingsForm(), ilObjLearningSequenceGUI\getTabs(), ilObjQuestionPoolGUI\importVerifiedQuestionsFileObject(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjItemGroupGUI\initCreateForm(), assQuestionGUI\outChapterSelector(), assQuestionGUI\outPageSelector(), ilObjBibliographicGUI\overwriteBibliographicFile(), ilAdministrationSettingsFormHandler\parseFieldValue(), ilObjCourseGUI\performUnsubscribeObject(), ilObjCategoryGUI\setEditTabs(), ilMediaPoolPageGUI\setMediaPoolPage(), ilObjGlossaryGUI\setSettingsSubTabs(), ilObjContentPageGUI\setTabs(), ilObjLearningSequenceGUI\unparticipate(), ilObjMediaCastGUI\updateCastItemObject(), and ilObjPortfolioBaseGUI\view().

255  : ?ilObject
256  {
257  return $this->object;
258  }
+ 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")

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

Referenced by ilObjOrgUnitGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjLearningSequenceGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjTestGUI\backToRepositoryObject(), and ilObjAuthSettingsGUI\setAuthModeObject().

1590  : string
1591  {
1592  if (($this->return_location[$cmd] ?? "") !== "") {
1593  return $this->return_location[$cmd];
1594  } else {
1595  return $default_location;
1596  }
1597  }
+ Here is the caller graph for this function:

◆ getRightColumnHTML()

ilObjectGUI::getRightColumnHTML ( )
protected

Display right column.

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

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

Referenced by ilObjForumGUI\setSideBlocks().

1904  : string
1905  {
1906  $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1907  $obj_type = ilObject::_lookupType($obj_id);
1908 
1909  $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1910 
1911  if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
1912  return "";
1913  }
1914 
1915  $this->setColumnSettings($column_gui);
1916 
1917  $html = "";
1918  if (
1919  $this->ctrl->getNextClass() == "ilcolumngui" &&
1920  $column_gui->getCmdSide() == IL_COL_RIGHT &&
1921  $column_gui->getScreenMode() == IL_SCREEN_SIDE
1922  ) {
1923  return $this->ctrl->forwardCommand($column_gui);
1924  }
1925 
1926  if (!$this->ctrl->isAsynch()) {
1927  return $this->ctrl->getHTML($column_gui);
1928  }
1929 
1930  return $html;
1931  }
const IL_COL_RIGHT
static _lookupObjId(int $ref_id)
const IL_SCREEN_FULL
Column user interface class.
setColumnSettings(ilColumnGUI $column_gui)
static _lookupType(int $id, bool $reference=false)
const IL_SCREEN_SIDE
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTabs()

ilObjectGUI::getTabs ( )
protected

overwrite in derived GUI class of your object type

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

Referenced by ilObjExerciseGUI\addContentSubTabs(), and setTabs().

1845  : void
1846  {
1847  }
+ Here is the caller graph for this function:

◆ getTargetFrame()

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

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

"perm")

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

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

◆ getTitleForCreationFormPage()

ilObjectGUI::getTitleForCreationFormPage ( )
protected

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

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

Referenced by createObject().

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

◆ getTranslatedObjectTypeNameFromItemArray()

ilObjectGUI::getTranslatedObjectTypeNameFromItemArray ( array  $item_array)
private

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

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

Referenced by buildImportTypeSelectorInputs(), and buildSubItemsForGroup().

2239  : string
2240  {
2241  return empty($item_array['plugin'])
2242  ? $this->lng->txt('obj_' . $item_array['lng'])
2243  : ilObjectPlugin::lookupTxtById($item_array['lng'], 'obj_' . $item_array['lng']);
2244  }
static lookupTxtById(string $plugin_id, string $lang_var)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ importFile()

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

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

References Vendor\Package\$e, ilObject\_getAllReferences(), afterImport(), ILIAS\Object\ImplementsCreationCallback\callCreationCallback(), ILIAS\Repository\ctrl(), deleteUploadedImportFile(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), null, and putObjectInTree().

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

◆ initAddnewItemElementsFromDefaultGroups()

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

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

References buildGroup(), ILIAS\Repository\lng(), and null.

Referenced by buildAddNewItemElements().

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

◆ initAddNewItemElementsFromNewItemGroups()

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

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

References buildGroup(), ILIAS\Repository\lng(), and null.

Referenced by buildAddNewItemElements().

2107  : array {
2108  if ($new_item_groups === []) {
2109  return [];
2110  }
2111 
2112  $new_item_groups[0] = $this->lng->txt('rep_new_item_group_other');
2113  $add_new_item_elements = [];
2114  foreach ($new_item_groups as $group_id => $group) {
2115  if (empty($new_item_groups_subitems[$group_id])) {
2116  continue;
2117  }
2118  $group_element = $this->buildGroup(
2119  $create_target_class,
2120  $new_item_groups_subitems[$group_id],
2121  $group['title'] ?? $group,
2122  $subtypes
2123  );
2124 
2125  if ($group_element !== null) {
2126  $add_new_item_elements[] = $group_element;
2127  }
2128  }
2129 
2130  return $add_new_item_elements;
2131  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
buildGroup(string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initCreateForm()

ilObjectGUI::initCreateForm ( string  $new_type)
protected

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

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

Referenced by createObject(), ilObjStudyProgrammeGUI\getAsyncCreationForm(), getDidacticTemplateVar(), ilObjTestGUI\getSelectedPersonalDefaultsSettingsFromForm(), and saveObject().

739  {
740  $form_fields['title_and_description'] = (new ilObject())->getObjectProperties()->getPropertyTitleAndDescription()->toForm(
741  $this->lng,
742  $this->ui_factory->input()->field(),
744  );
745 
746  $didactic_templates = $this->didacticTemplatesToForm();
747 
748  if ($didactic_templates !== null) {
749  $form_fields['didactic_templates'] = $didactic_templates;
750  }
751 
752  return $this->ui_factory->input()->container()->form()->standard(
753  $this->ctrl->getFormAction($this, 'save'),
754  $form_fields
755  )->withSubmitLabel(
756  !$this->obj_definition->isPlugin($new_type)
757  ? $this->lng->txt($new_type . '_add')
759  $this->requested_new_type,
760  "{$this->requested_new_type}_add"
761  )
762  );
763  }
Refinery $refinery
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static lookupTxtById(string $plugin_id, string $lang_var)
+ 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

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

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

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

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

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

Referenced by initEditForm(), ilContainerGUI\initEditForm(), ilObjExerciseGUI\listAssignmentsObject(), and ilObjEmployeeTalkGUI\sendUpdateNotification().

1207  : void
1208  {
1209  }
+ Here is the caller graph for this function:

◆ initEditForm()

ilObjectGUI::initEditForm ( )
protected

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

References $lng, ILIAS\Repository\ctrl(), initEditCustomForm(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ilObject\LONG_DESC_LENGTH, ILIAS\Repository\object(), ilTextAreaInputGUI\setCols(), and ilObject\TITLE_LENGTH.

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

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

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

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

Referenced by addHeaderAction(), and redrawHeaderActionObject().

407  : ?ilObjectListGUI
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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ?ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
+ 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.

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

Referenced by addHeaderAction(), and ilObjBlogGUI\addHeaderActionForCommand().

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)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isVisible()

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

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

References $tree, ilTree\checkForParentType(), checkPermissionBool(), and ilObjectFactory\getInstanceByRefId().

1631  : bool
1632  {
1633  $visible = $this->checkPermissionBool("visible,read", "", "", $ref_id);
1634 
1635  if ($visible && $type == 'crs') {
1636  $tree = $this->tree;
1637  if ($crs_id = $tree->checkForParentType($ref_id, 'crs')) {
1638  if (!$this->checkPermissionBool("write", "", "", $crs_id)) {
1639  // Show only activated courses
1640  $tmp_obj = ilObjectFactory::getInstanceByRefId($crs_id, false);
1641 
1642  if (!$tmp_obj->isActivated()) {
1643  unset($tmp_obj);
1644  $visible = false;
1645  }
1646  }
1647  }
1648  }
1649 
1650  return $visible;
1651  }
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ omitLocator()

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

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

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

568  : void
569  {
570  $this->omit_locator = $omit;
571  }
+ Here is the caller graph for this function:

◆ parseDidacticTemplateVar()

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

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

Referenced by getDidacticTemplateVar(), ilObjTestGUI\getSelectedPersonalDefaultsSettingsFromForm(), ilObjItemGroupGUI\save(), and saveObject().

1099  : int
1100  {
1101  if (substr($var, 0, strlen($type) + 1) != $type . "_") {
1102  return 0;
1103  }
1104 
1105  return (int) substr($var, strlen($type) + 1);
1106  }
+ Here is the caller graph for this function:

◆ prepareOutput()

ilObjectGUI::prepareOutput ( bool  $show_sub_objects = true)

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

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

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

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())) {
344  $this->enableDragDropFileUpload();
345  }
346  }
347 
348  return true;
349  }
enableDragDropFileUpload()
Enables the file upload into this object by dropping files.
setTabs()
set admin tabs
addAdminLocatorItems(bool $do_not_add_object=false)
should be overwritten to add object specific items (repository items are preloaded) ...
static _lookupType(int $id, bool $reference=false)
setAdminTabs()
set admin tabs
+ 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.

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

References $requested_crtptrefid, $requested_ref_id, ilChangeEvent\_recordWriteEvent(), ilRbacLog\add(), ILIAS\Object\ImplementsCreationCallback\callCreationCallback(), 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(), importFile(), ilObjSurveyGUI\importSurveyObject(), ilContainerReferenceGUI\saveObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), and saveObject().

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

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

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

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

1856  : void
1857  {
1858  $obj_type = ilObject::_lookupType($ref_id, true);
1859  $class_name = $this->obj_definition->getClassName($obj_type);
1860  $class = strtolower("ilObj" . $class_name . "GUI");
1861  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $ref_id);
1862  $this->ctrl->redirectByClass(["ilrepositorygui", $class], $cmd);
1863  }
static _lookupType(int $id, bool $reference=false)
+ 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.

References exit, and initHeaderAction().

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

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
initHeaderAction(?string $sub_type=null, ?int $sub_id=null)
Add header action menu.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromDeskObject()

ilObjectGUI::removeFromDeskObject ( )

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

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

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

◆ retrieveAdditionalDidacticTemplateOptions()

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

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

Referenced by buildDidacticTemplateOptions().

891  : array
892  {
893  return [];
894  }
+ Here is the caller graph for this function:

◆ retrieveAndCheckImportData()

ilObjectGUI::retrieveAndCheckImportData ( )
private

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

References $data, buildImportModal(), and null.

Referenced by routeImportCmdObject().

1470  : ?array
1471  {
1472  $modal = $this->buildImportModal()->withRequest($this->request);
1473  $data = $modal->getData();
1474 
1475  if ($data !== null) {
1476  return $data;
1477  }
1478 
1479  $this->import_modal = $modal->withOnLoad($modal->getShowSignal());
1480  return null;
1481  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retrieveAndCheckImportTypeData()

ilObjectGUI::retrieveAndCheckImportTypeData ( )
private

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

References $data, buildImportTypeSelectorModal(), and null.

Referenced by routeImportCmdObject().

1483  : ?array
1484  {
1485  $modal = $this->buildImportTypeSelectorModal()->withRequest($this->request);
1486  $data = $modal->getData();
1487 
1488  if ($data !== null) {
1489  return $data;
1490  }
1491 
1492  $this->import_type_selector_modal = $modal->withOnLoad($modal->getShowSignal());
1493  return null;
1494  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
buildImportTypeSelectorModal(?string $file_to_import=null, ?string $upload_file_name=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retrieveFilesAndUploadTypeFromData()

ilObjectGUI::retrieveFilesAndUploadTypeFromData ( array  $data)
private

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

References CLIENT_DATA_DIR, extractFileTypeFromImportFilename(), and getFileToImportFromImportFormData().

1511  : array
1512  {
1513  if (isset($data['type']) && isset($data['file_to_import']) && isset($data['temp_file'])) {
1514  return [
1515  $data['type'],
1516  implode(
1517  DIRECTORY_SEPARATOR,
1518  [CLIENT_DATA_DIR, 'temp', $data['temp_file'], $data['file_to_import']]
1519  ),
1520  $data['temp_file']
1521  ];
1522  }
1523  $file_to_import = $this->getFileToImportFromImportFormData($data);
1524  $path_to_uploaded_file_in_temp_dir = '';
1525  if (array_key_first($data['upload']) === self::UPLOAD_TYPE_LOCAL) {
1526  $path_to_uploaded_file_in_temp_dir = $data['upload'][self::UPLOAD_TYPE_LOCAL];
1527  }
1528 
1529  return [
1530  $this->extractFileTypeFromImportFilename(basename($file_to_import)),
1531  $file_to_import,
1532  $path_to_uploaded_file_in_temp_dir
1533  ];
1534  }
getFileToImportFromImportFormData(array $data)
extractFileTypeFromImportFilename(string $filename)
const CLIENT_DATA_DIR
Definition: constants.php:46
+ Here is the call graph for this function:

◆ routeImportCmdObject()

ilObjectGUI::routeImportCmdObject ( )
protected

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

References $data, Vendor\Package\$e, checkPermissionBool(), ILIAS\Repository\ctrl(), deleteUploadedImportFile(), getRefId(), ILIAS\Repository\lng(), null, ILIAS\Repository\object(), ilObject2GUI\REPOSITORY_NODE_ID, retrieveAndCheckImportData(), retrieveAndCheckImportTypeData(), showImportTypeSelectorModal(), and viewObject().

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

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

◆ saveAvailabilityPeriodObject()

ilObjectGUI::saveAvailabilityPeriodObject ( )

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

References checkPermissionBool(), checkWritePermissionOnRefIdArray(), getMultiObjectPropertiesManipulator(), and ILIAS\Repository\lng().

997  : void
998  {
999  $availability_period_modal = $this->getMultiObjectPropertiesManipulator()->saveEditAvailabilityPeriodPropertiesModal(
1000  $this,
1001  fn($ref_ids): bool => $this->checkPermissionBool('write') || $this->checkWritePermissionOnRefIdArray($ref_ids),
1002  $this->request
1003  );
1004  if ($availability_period_modal === true) {
1005  $this->tpl->setOnScreenMessage('success', $this->lng->txt('availability_period_changed'));
1006  } elseif ($availability_period_modal === false) {
1007  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_write'));
1008  } else {
1009  $this->tpl->setVariable(
1010  'IL_OBJECT_EPHEMRAL_MODALS',
1011  $this->ui_renderer->render(
1012  $availability_period_modal->withOnLoad(
1013  $availability_period_modal->getShowSignal()
1014  )
1015  )
1016  );
1017  }
1018  $this->renderObject();
1019  }
checkWritePermissionOnRefIdArray(array $ref_ids)
getMultiObjectPropertiesManipulator()
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ saveObject()

ilObjectGUI::saveObject ( )

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

References $data, afterSave(), checkPermissionBool(), ILIAS\Repository\ctrl(), getCreationFormsHTML(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), initCreateForm(), ILIAS\Repository\lng(), null, parseDidacticTemplateVar(), and putObjectInTree().

Referenced by ilObjSessionGUI\saveAndAssignMaterialsObject().

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

References getAdminTabs().

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

498  : void
499  {
500  $this->getAdminTabs();
501  }
getAdminTabs()
administration tabs show only permissions and trash folder
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setColumnSettings()

ilObjectGUI::setColumnSettings ( ilColumnGUI  $column_gui)

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

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

Referenced by getCenterColumnHTML(), and getRightColumnHTML().

1933  : void
1934  {
1935  $column_gui->setRepositoryMode(true);
1936  $column_gui->setEnableEdit(false);
1937  if ($this->checkPermissionBool("write")) {
1938  $column_gui->setEnableEdit(true);
1939  }
1940  }
setRepositoryMode(bool $a_repositorymode)
setEnableEdit(bool $a_enableedit)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:
+ Here is the caller 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.

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

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

285  : void
286  {
287  $this->creation_mode = $mode;
288  }
+ Here is the caller graph for this function:

◆ setFormAction()

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

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

References $form_action.

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

◆ setLocator()

ilObjectGUI::setLocator ( )
protected

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

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

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

532  : void
533  {
534  $ilLocator = $this->locator;
535  $tpl = $this->tpl;
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  }
setLocator()
Insert locator.
ilGlobalTemplateInterface $tpl
ilLocatorGUI $locator
addLocatorItems()
should be overwritten to add object specific items (repository items are preloaded) ...
+ 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

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

References $location.

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

◆ setTabs()

◆ setTargetFrame()

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

Set specific target frame for command.

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

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

◆ setTitleAndDescription()

ilObjectGUI::setTitleAndDescription ( )
protected

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

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

Referenced by ilObjContentObjectGUI\checkCtrlPath(), ilObjAuthSettingsGUI\executeCommand(), prepareOutput(), ilObjTestGUI\prepareSubGuiOutput(), and ilObjFileBasedLMGUI\setTabs().

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 _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showImportTypeSelectorModal()

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

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

References buildImportTypeSelectorModal(), ILIAS\Repository\ctrl(), and viewObject().

Referenced by routeImportCmdObject().

1499  : void {
1500  $this->ctrl->setParameterByClass(static::class, 'step', 'select_type');
1501  $modal = $this->buildImportTypeSelectorModal(
1502  $file_to_import,
1503  $path_to_uploaded_file_in_temp_dir
1504  );
1505  $this->ctrl->clearParameterByClass(static::class, 'step');
1506  $this->import_type_selector_modal = $modal->withOnLoad($modal->getShowSignal());
1507  $this->viewObject();
1508  return;
1509  }
viewObject()
viewObject container presentation for "administration -> repository, trash, permissions" ...
buildImportTypeSelectorModal(?string $file_to_import=null, ?string $upload_file_name=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showPossibleSubObjects()

ilObjectGUI::showPossibleSubObjects ( )
protected

show possible sub objects (pull down menu)

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

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

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

◆ updateCustom()

ilObjectGUI::updateCustom ( ilPropertyFormGUI  $form)
protected

Insert custom update form values into object.

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

Referenced by ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilObjEmployeeTalkGUI\updateObject(), and updateObject().

1263  : void
1264  {
1265  }
+ Here is the caller graph for this function:

◆ updateObject()

ilObjectGUI::updateObject ( )

updates object entry in object_data

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

References afterUpdate(), checkPermissionBool(), initEditForm(), ILIAS\Repository\lng(), updateCustom(), and validateCustom().

Referenced by ilObjUserGUI\loadUserDefinedDataFromForm(), and ilObjFileBasedLMGUI\update().

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

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

Referenced by updateObject().

1255  : bool
1256  {
1257  return true;
1258  }
+ Here is the caller graph for this function:

◆ viewObject()

ilObjectGUI::viewObject ( )

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

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

References ilChangeEvent\_recordReadEvent(), checkPermission(), checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\object(), ILIAS\Repository\user(), and withReferences().

Referenced by ilObjLanguageExtGUI\applyFilterObject(), ilObjLanguageExtGUI\cancelObject(), ilObjCourseGUI\executeCommand(), ilObjCourseGUI\gatewayObject(), ilObjCourseGUI\leaveObject(), ilObjCourseGUI\renderObject(), ilObjLanguageExtGUI\resetFilterObject(), ilObjCourseGUI\resetObject(), routeImportCmdObject(), ilObjLanguageExtGUI\saveObject(), showImportTypeSelectorModal(), and ilObjContentObjectGUI\view().

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

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

References $call_by_reference.

Referenced by viewObject().

275  : bool
276  {
278  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilObjectGUI::$access
protected

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

Referenced by ilObjMDSettingsGUI\__construct(), ilObjStudyProgrammeReferenceGUI\_goto(), ilObjCourseReferenceGUI\_goto(), ilObjIndividualAssessmentGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjMediaCastGUI\addContentSubTabs(), ilObjRoleGUI\adoptPermSaveObject(), ilObjContentObjectGUI\checkCtrlPath(), ilObjSurveyGUI\checkRbacOrPositionPermission(), ilContainerGUI\cloneAllObject(), ilContainerReferenceGUI\createObject(), ilObjRepositorySettingsGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjEmployeeTalkSeriesGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjTestGUI\forwardToInfoScreen(), ilObjMediaObjectsSettingsGUI\getAdminTabs(), ilObjSkillManagementGUI\getAdminTabs(), ilObjSkillTreeGUI\getAdminTabs(), ilObjMediaCastSettingsGUI\getForm(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjBadgeAdministrationGUI\getObjectBadgesFromMultiAction(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjCategoryGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjFolderGUI\infoScreen(), ilObjWikiGUI\infoScreen(), ilObjCategoryGUI\infoScreen(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjCourseReferenceGUI\initForm(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjBadgeAdministrationGUI\initFormSettings(), ilObjBookingPoolGUI\initHeaderAction(), ilObjMediaObjectsSettingsGUI\initMediaObjectsSettingsForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjMediaCastGUI\listItemsObject(), ilObjRepositorySettingsGUI\listModules(), ilObjRepositorySettingsGUI\listNewItemGroups(), ilObjBadgeAdministrationGUI\listTypes(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilObjRepositorySettingsGUI\saveModules(), ilObjStudyProgrammeReferenceGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjSurveyAdministrationGUI\saveSettingsObject(), ilContainerGUI\setColumnSettings(), ilObjWikiGUI\setSettingsSubTabs(), ilObjMediaCastGUI\setTabs(), ilContainerGUI\showAdministrationPanel(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSystemFolderGUI\viewObject(), and ilObjWikiGUI\viewPageObject().

◆ $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 ilObjExerciseGUI\__construct(), ilObjCourseReferenceGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjExerciseGUI\addContentSubTabs(), ilObjWikiGUI\addImportantPageObject(), ilObjContentObjectGUI\addMenuEntry(), ilObjMediaCastGUI\addMobsToCast(), ilObjWikiGUI\addPagesSubTabs(), ilContainerGUI\addPageTabs(), ilObjWikiGUI\addPageTabs(), ilContainerGUI\addStandardContainerSubTabs(), ilObjContentObjectGUI\addTooltip(), ilObjExerciseGUI\afterSave(), ilObjSystemFolderGUI\benchmarkSubTabs(), ilObjExerciseAdministrationGUI\cancel(), ilObjBlogAdministrationGUI\cancel(), ilObjMediaCastSettingsGUI\cancel(), ilObjPortfolioAdministrationGUI\cancel(), ilObjTaggingSettingsGUI\cancel(), ilObjAwarenessAdministrationGUI\cancel(), ilObjStyleSheetGUI\cancelColorDeletionObject(), ilObjStyleSheetGUI\cancelColorSavingObject(), ilObjWikiGUI\cancelCreationPageUsingTemplateObject(), ilContainerGUI\cancelMoveLinkObject(), ilObjStyleSheetGUI\cancelTemplateDeletionObject(), ilObjStyleSheetGUI\cancelTemplateSavingObject(), ilObjContentObjectGUI\checkCtrlPath(), ilContainerGUI\clipboardObject(), ilContainerGUI\cloneAllObject(), ilContainerGUI\competencesObject(), ilObjBadgeAdministrationGUI\confirmDeleteImageTemplates(), ilObjBadgeAdministrationGUI\confirmDeleteObjectBadges(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilObjSkillTreeGUI\confirmedDeleteTrees(), ilObjContentObjectGUI\confirmGlossarySelection(), ilObjWikiGUI\confirmRemoveImportantPagesObject(), ilObjMediaObjectGUI\confirmSrtDeletionObject(), ilObjContentObjectGUI\copyItems(), ilContainerGUI\copyObject(), ilObjStyleSheetGUI\copyStyleObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilObjContentObjectGUI\cutItems(), ilContainerGUI\cutObject(), ilObjSkillTreeGUI\delete(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjStyleSheetGUI\deleteColorObject(), ilObjSystemFolderGUI\deleteHeaderTitlesObject(), ilObjMediaCastGUI\deleteItemsObject(), ilObjStyleSheetGUI\deleteMediaQueriesObject(), ilObjStyleSheetGUI\deleteMediaQueryConfirmationObject(), ilObjSkillTreeGUI\deleteNodes(), ilObjStyleSheetGUI\deleteObject(), ilObjBadgeAdministrationGUI\deleteObjectBadges(), ilObjMediaObjectGUI\deleteSrtFilesObject(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilObjStyleSheetGUI\deleteTemplateKeepClassesObject(), ilObjStyleSheetGUI\deleteTemplateObject(), ilObjContentObjectGUI\deleteTooltips(), ilObjMediaCastGUI\determinePlaytimeObject(), ilObjMediaCastGUI\downloadItemObject(), ilObjMediaCastGUI\editCastItemObject(), ilObjStyleSheetGUI\editColorObject(), ilObjContentObjectGUI\editGlossaries(), ilObjBadgeAdministrationGUI\editImageTemplate(), ilObjWikiGUI\editImportantPagesObject(), ilObjContentObjectGUI\editMasterLanguage(), ilObjStyleSheetGUI\editMediaQueryObject(), ilObjContentObjectGUI\editMenuEntry(), ilObjContentObjectGUI\editMenuProperties(), ilObjStyleSheetGUI\editObject(), ilObjSkillManagementGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjStyleSheetGUI\editTemplateObject(), ilObjLearningHistorySettingsGUI\executeCommand(), ilObjCommentsSettingsGUI\executeCommand(), ilObjNotesSettingsGUI\executeCommand(), ilContainerReferenceGUI\executeCommand(), ilObjPersonalWorkspaceSettingsGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjStyleSheetGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjMediaObjectGUI\extractPreviewImageObject(), ilObjMediaCastGUI\extractPreviewImageObject(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilObjLearningSequenceGUI\forwardByClass(), ilObjTestGUI\forwardToInfoScreen(), ilContainerGUI\forwardToPageObject(), ilObjLearningHistorySettingsGUI\getAdminTabs(), ilObjCommentsSettingsGUI\getAdminTabs(), ilObjNotesSettingsGUI\getAdminTabs(), ilObjPersonalWorkspaceSettingsGUI\getAdminTabs(), ilObjWikiGUI\getAssignmentButtons(), ilObjStyleSheetGUI\getCloneForm(), ilObjStyleSheetGUI\getCreateForm(), ilObjStyleSheetGUI\getImportForm(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjBadgeAdministrationGUI\getObjectBadgesFromMultiAction(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilContainerGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), ilObjBookingPoolGUI\infoScreen(), ilObjCategoryGUI\infoScreen(), ilObjQuestionPoolGUI\infoScreenForward(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjPortfolioAdministrationGUI\initAuthorshipForm(), ilObjStyleSheetGUI\initColorForm(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjBookingPoolGUI\initHeaderAction(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilObjMediaObjectsSettingsGUI\initMediaObjectsSettingsForm(), ilObjStyleSheetGUI\initMediaQueryForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjContentObjectGUI\initSetPageLayoutForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilObjStyleSheetGUI\initTemplateForm(), ilObjStyleSheetGUI\initTemplateGenerationForm(), ilObjWikiGUI\initTemplateSelectionForm(), ilObjSkillTreeGUI\initTreeForm(), ilContainerGUI\keepObjectsInClipboardObject(), ilContainerGUI\linkObject(), ilObjExerciseGUI\listAssignmentsObject(), ilObjStyleSheetGUI\listColorsObject(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjStyleSheetGUI\listMediaQueriesObject(), ilObjStyleSheetGUI\listTemplatesObject(), ilObjContentObjectGUI\pages(), ilContainerGUI\pasteObject(), ilObjWikiGUI\performSearchObject(), ilObjContentObjectGUI\proceedDragDrop(), ilObjFileBasedLMGUI\redirectAfterCreation(), ilContainerReferenceGUI\redirectObject(), ilObjWikiGUI\removeImportantPagesObject(), ilObjContentObjectGUI\removeLMGlossary(), ilContainerGUI\renderObject(), ilObjContentObjectGUI\resetNumberOfTries(), ilObjStyleSheetGUI\returnToUpperContextObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjContentObjectGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjStyleSheetGUI\saveColorObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjContentObjectGUI\saveExportIds(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjContentObjectGUI\saveHelpMapping(), ilObjBadgeAdministrationGUI\saveImageTemplate(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjExternalToolsSettingsGUI\saveMapsObject(), ilObjStyleSheetGUI\saveMediaQueryObject(), ilObjStyleSheetGUI\saveMediaQueryOrderObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjMediaObjectGUI\saveMultiSrtObject(), ilObjBookingPoolGUI\saveNotificationObject(), ilObjStyleSheetGUI\saveObject(), ilObjWikiGUI\saveOrderingAndIndentObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjContentObjectGUI\savePageLayout(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjSurveyAdministrationGUI\saveSettingsObject(), ilObjStyleSheetGUI\saveTemplateObject(), ilObjContentObjectGUI\saveTooltips(), ilObjContentObjectGUI\selectLMGlossary(), ilObjContentObjectGUI\sendMailToBlockedUsers(), ilObjWikiGUI\setAsStartPageObject(), ilObjContentObjectGUI\setContentSubTabs(), ilObjSystemFolderGUI\setGeneralSettingsSubTabs(), ilObjContentObjectGUI\setPageLayout(), ilObjContentObjectGUI\setPageLayoutInHierarchy(), ilObjMediaObjectGUI\setPropertiesSubTabs(), ilObjContentObjectGUI\setQuestionsSubTabs(), ilObjSystemFolderGUI\setServerInfoSubTabs(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), ilObjSystemFolderGUI\setSystemCheckSubTabs(), ilObjStyleSheetGUI\setTemplatesSubTabs(), ilObjMediaObjectGUI\showAllUsagesObject(), ilContainerGUI\showContainerPageTabs(), ilObjContentObjectGUI\showEntrySelector(), ilObjContentObjectGUI\showExportIDsOverview(), ilObjMediaCastGUI\showGallery(), ilObjContentObjectGUI\showLMGlossarySelector(), ilObjSkillTreeGUI\showLocator(), ilObjBookingPoolGUI\showProfileObject(), ilObjGlossaryGUI\showTaxonomy(), ilObjWikiGUI\showTemplateSelectionObject(), ilObjContentObjectGUI\showTooltipList(), ilObjSkillTreeGUI\showTree(), ilObjTaggingSettingsGUI\showUsers(), ilObjExerciseGUI\startAssignmentObject(), ilObjContentObjectGUI\switchToLanguage(), ilObjStyleSheetGUI\templateGenerationObject(), ilObjBadgeAdministrationGUI\toggleObjectBadges(), ilObjContentObjectGUI\unlockQuestion(), ilObjMediaCastGUI\updateCastItemObject(), ilObjStyleSheetGUI\updateColorObject(), ilObjBadgeAdministrationGUI\updateImageTemplate(), ilObjStyleSheetGUI\updateMediaQueryObject(), ilObjStyleSheetGUI\updateObject(), ilObjStyleSheetGUI\updateTemplateObject(), ilObjMediaObjectGUI\uploadMultipleSubtitleFileFormObject(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), and ilObjWikiGUI\viewPageObject().

◆ $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(), ilObjTypeDefinitionGUI\__construct(), ilObjChatroomGUI\__construct(), ilObjMDSettingsGUI\__construct(), ilObjChatroomAdminGUI\__construct(), ilObjStudyProgrammeAdminGUI\__construct(), ilObjObjectFolderGUI\__construct(), ilObjLearningSequenceAdminGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjSCORMLearningModuleGUI\__construct(), ilObjCertificateSettingsGUI\__construct(), ilObjIndividualAssessmentGUI\__construct(), ilObjComponentSettingsGUI\__construct(), ilObjForumGUI\__construct(), ilContainerGUI\_buildPath(), ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilObjSurveyGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjQuestionPoolGUI\buildInputQuestionType(), ilObjTestGUI\buildInputQuestionType(), ilObjQuestionPoolGUI\cleanupAfterImport(), ilContainerGUI\clipboardObject(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), confirmedDeleteObject(), ilObjLTIConsumerGUI\contentSelectionRequest(), ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), ilObjTestGUI\createQuestionPool(), ilObjForumAdministrationGUI\cronMessage(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilObjTermsOfServiceGUI\form(), ilObjDataProtectionGUI\form(), ilObjSessionGUI\getAttendanceListUserData(), getDidacticTemplateVar(), ilObjLearningSequenceAdminGUI\getForm(), ilObjTestGUI\getSelectedPersonalDefaultsSettingsFromForm(), ilObjUserGUI\getValues(), initDidacticTemplate(), ilObjSessionGUI\materialsObject(), ilObjBibliographicGUI\overwriteBibliographicFile(), ilObjQuestionPoolGUI\printObject(), ilObjFileGUI\putObjectInTree(), ilObjSurveyQuestionPoolGUI\questionsObject(), retrieveAndCheckImportData(), retrieveAndCheckImportTypeData(), routeImportCmdObject(), ilObjLearningSequenceAdminGUI\save(), ilObjContentPageAdministrationGUI\save(), ilObjSkillTreeGUI\save(), ilObjItemGroupGUI\save(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjContactAdministrationGUI\saveConfigurationForm(), ilObjLTIConsumerGUI\saveContentSelection(), ilObjTestFolderGUI\saveGlobalSettingsObject(), ilObjTestFolderGUI\saveLogSettingsObject(), ilObjRoleTemplateGUI\saveObject(), ilObjRoleGUI\saveObject(), saveObject(), ilObjNotificationAdminGUI\saveOSDSettings(), ilObjDashboardSettingsGUI\savePresentation(), ilObjForumAdministrationGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjDashboardSettingsGUI\saveSorting(), ilObjEmployeeTalkGUI\sendUpdateNotification(), ilObjLinkResourceGUI\settings(), ilObjSystemFolderGUI\showHeaderTitleObject(), ilObjDataCollectionGUI\update(), ilObjLinkResourceGUI\updateLinks(), ilCourseContentGUI\updateManagedTimings(), ilObjRoleTemplateGUI\updateObject(), ilObjRoleGUI\updateObject(), ilCourseContentGUI\updatePersonalTimings(), ilObjFileGUI\uploadFiles(), 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

◆ $http

GlobalHttpState ilObjectGUI::$http
protected

◆ $id

int ilObjectGUI::$id
protected

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

Referenced by ilObjChatroomGUI\__construct(), ilObjMDSettingsGUI\__construct(), ilObjChatroomAdminGUI\__construct(), ilObjCertificateSettingsGUI\__construct(), ilObjFileServicesGUI\__construct(), ilObjIndividualAssessmentGUI\__construct(), ilObject2GUI\__construct(), ilObjForumGUI\__construct(), ilObjContentObjectGUI\__construct(), ilObjLearningSequenceGUI\_goto(), ilObjTestVerificationGUI\_goto(), ilObjCmiXapiVerificationGUI\_goto(), ilObjLTIConsumerVerificationGUI\_goto(), ilObjSCORMVerificationGUI\_goto(), ilObjCourseVerificationGUI\_goto(), ilObjBibliographicGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjPollGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjPortfolioGUI\_goto(), ilObjWorkspaceFolderGUI\_goto(), ilObjContentObjectGUI\activatePages(), ilObjForumGUI\addActivationFormModal(), ilObjLanguageExtGUI\addNewEntryObject(), ilObjRoleGUI\adoptPermObject(), ilObjLanguageFolderGUI\buildConfirmModal(), ilObjAuthSettingsGUI\buildRegistrationRoleMappingForm(), ilObjUserFolderGUI\confirmaccessFreeObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjUserFolderGUI\confirmactivateObject(), ilObjUserFolderGUI\confirmdeactivateObject(), ilObjUserFolderGUI\confirmdeleteObject(), ilObjTaxonomyGUI\confirmedDelete(), ilObjSkillTreeGUI\confirmedDelete(), ilObjContentObjectGUI\confirmedDelete(), ilObjSkillTreeGUI\confirmedDeleteTrees(), ilObjMediaCastGUI\confirmItemDeletionObject(), ilObjPortfolioBaseGUI\confirmPortfolioPageDeletion(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ilObjQuestionPoolGUI\copyQuestions(), ilObjPortfolioTemplateGUI\createFromTemplate(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjContentObjectGUI\delete(), ilObjTaxonomyGUI\deleteItems(), ilObjStyleSheetGUI\deleteMediaQueriesObject(), ilObjSkillTreeGUI\deleteNodes(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilObjRoleFolderGUI\deleteRoleObject(), ilObjGlossaryGUI\deleteTerms(), ilObjContentObjectGUI\deleteTooltips(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjTypeDefinitionGUI\displayList(), ilObjForumGUI\doHistoryCheck(), ilObjExerciseVerificationGUI\downloadFromPortfolioPage(), ilObjTypeDefinitionGUI\editObject(), ilObjEmployeeTalkSeriesGUI\executeCommand(), ilObjBlogGUI\filterInactivePostings(), ilObjLanguageExtGUI\getId(), ilObjLinkResourceGUI\getLinkToListModal(), ilObjBlogGUI\getListItems(), ilObjTestGUI\getQuestionsTableQuery(), ilObjStyleSheetGUI\getRenderedCreationFormsHTML(), ilObjTestGUI\getTargetQuestionpoolForm(), ilObjDashboardSettingsGUI\getViewSectionSorting(), ilObjLanguageExtGUI\initAddNewEntryForm(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjUserGUI\initForm(), ilObjForumGUI\initHeaderAction(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilObjRepositorySettingsGUI\initNewItemGroupForm(), ilObjContentObjectGUI\initSetPageLayoutForm(), ilObjUserFolderGUI\initUserRoleAssignmentForm(), ilObjQuestionPoolGUI\moveQuestions(), ilContainerGUI\redrawListItemObject(), ilObjLanguageFolderGUI\refreshSelectedObject(), ilObjBlogGUI\renderNavigationByAuthors(), ilObjBlogGUI\renderNavigationByDate(), ilObjForumGUI\renderSplitButton(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjLanguageExtGUI\saveNewEntryObject(), ilObjMediaCastGUI\saveOrderObject(), ilObjContentObjectGUI\savePageLayout(), ilObjFileServicesGUI\saveSettings(), ilObjContentObjectGUI\saveTooltips(), ilObjUserFolderGUI\showActionConfirmation(), ilObjBibliographicGUI\showDetails(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), ilObjLanguageFolderGUI\uninstallChangesObject(), and ilObjObjectFolderGUI\viewObject().

◆ $ilias

ILIAS ilObjectGUI::$ilias
protected

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

◆ $import_modal

RoundTrip ilObjectGUI::$import_modal = null
private

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

◆ $import_type_selector_modal

RoundTrip ilObjectGUI::$import_type_selector_modal = null
private

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

◆ $link_params

string ilObjectGUI::$link_params
protected

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

◆ $lng

ilLanguage ilObjectGUI::$lng
protected

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

Referenced by ilObjSurveyAdministrationGUI\__construct(), ilObjExternalToolsSettingsGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjSCORM2004LearningModuleGUI\__construct(), ilObjFileBasedLMGUI\__construct(), ilObjDashboardSettingsGUI\__construct(), ilObjMediaCastGUI\__construct(), ilObjLanguageExtGUI\__construct(), ilObjExerciseGUI\__construct(), ilObjMediaObjectGUI\__construct(), ilObjStudyProgrammeGUI\__construct(), ilObjContentObjectGUI\__construct(), ilObjMediaObjectGUI\_getMediaInfoHTML(), ilObjStyleSheetGUI\_getTemplatePreview(), ilObjLearningSequenceGUI\_goto(), ilObjIndividualAssessmentGUI\_goto(), ilObjFolderGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjGroupGUI\_goto(), ilObjForumGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjTestGUI\_goto(), ilObjCourseGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_modifyItemGUI(), ilObjBadgeAdministrationGUI\activateTypes(), ilObjExerciseGUI\addContentSubTabs(), ilObjMediaCastGUI\addContentSubTabs(), ilObjWikiGUI\addImportantPageObject(), ilContainerGUI\addStandardContainerSubTabs(), ilObjContentObjectGUI\addTabs(), ilObjContentObjectGUI\addTooltip(), ilObjGlossaryGUI\addUsagesToInfo(), ilObjCategoryGUI\assignSave(), ilObjSystemFolderGUI\benchmarkSubTabs(), ilObjStyleSheetGUI\cancelObject(), ilObjContentObjectGUI\checkCtrlPath(), ilContainerGUI\clipboardObject(), ilObjBadgeAdministrationGUI\confirmDeleteImageTemplates(), ilObjBadgeAdministrationGUI\confirmDeleteObjectBadges(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilObjContentObjectGUI\confirmGlossarySelection(), ilContainerGUI\confirmRemoveFromSystemObject(), ilObjWikiGUI\confirmRemoveImportantPagesObject(), ilObjMediaObjectGUI\confirmSrtDeletionObject(), ilObjContentObjectGUI\copyItems(), ilObjSkillTreeGUI\create(), ilObjWikiGUI\createPageUsingTemplateObject(), ilObjContentObjectGUI\cutItems(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjSystemFolderGUI\deleteHeaderTitlesObject(), ilObjBadgeAdministrationGUI\deleteImageTemplates(), ilObjStyleSheetGUI\deleteMediaQueryConfirmationObject(), ilObjSkillTreeGUI\deleteNodes(), ilObjBadgeAdministrationGUI\deleteObjectBadges(), ilObjMediaObjectGUI\deleteSrtFilesObject(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilObjContentObjectGUI\deleteTooltips(), ilObjMediaCastGUI\determinePlaytimeObject(), ilObjContentObjectGUI\editGlossaries(), ilObjWikiGUI\editImportantPagesObject(), ilObjContentObjectGUI\editMenuProperties(), ilObjMediaCastGUI\editOrderObject(), ilObjBlogAdministrationGUI\editSettings(), ilObjSkillManagementGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjForumGUI\eventsFormBuilder(), ilObjTestGUI\executeCommand(), ilObjTestGUI\forwardToInfoScreen(), ilContainerGUI\forwardToPageObject(), ilObjPortfolioAdministrationGUI\getAdminTabs(), ilObjLearningHistorySettingsGUI\getAdminTabs(), ilObjCommentsSettingsGUI\getAdminTabs(), ilObjNotesSettingsGUI\getAdminTabs(), ilObjPersonalWorkspaceSettingsGUI\getAdminTabs(), ilObjSkillManagementGUI\getAdminTabs(), ilObjSkillTreeGUI\getAdminTabs(), ilObjWikiGUI\getAssignmentButtons(), ilObjMediaCastGUI\getCastItemValues(), ilObjMediaCastSettingsGUI\getForm(), ilObjSystemCheckGUI\getLang(), ilObjContentObjectGUI\getLayoutOption(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjContentObjectGUI\getMultiLangHeader(), ilObjExerciseGUI\getService(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjStyleSheetGUI\getStyleExampleHTML(), ilObjTestGUI\getTable(), ilObjRootFolderGUI\getTabs(), ilObjSurveyAdministrationGUI\getTabs(), ilObjFolderGUI\getTabs(), ilObjCategoryGUI\getTabs(), ilObjFileBasedLMGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjStyleSheetGUI\getTabs(), ilObjSAHSLearningModuleGUI\getTemplate(), ilObjDashboardSettingsGUI\getViewSectionPresentation(), ilObjDashboardSettingsGUI\getViewSectionSorting(), ilObjWikiGUI\infoScreen(), ilObjQuestionPoolGUI\infoScreenForward(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjPortfolioAdministrationGUI\initAuthorshipForm(), ilObjStyleSheetGUI\initColorForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjSAHSLearningModuleGUI\initCreateForm(), ilObjWikiGUI\initCreateForm(), ilObjFolderGUI\initEditForm(), initEditForm(), ilContainerGUI\initEditForm(), ilObjPrivacySecurityGUI\initErrorMessages(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjBookingPoolGUI\initHeaderAction(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilObjSystemFolderGUI\initJavaServerForm(), ilObjMediaObjectsSettingsGUI\initMediaObjectsSettingsForm(), ilObjStyleSheetGUI\initMediaQueryForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjContentObjectGUI\initMenuForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSystemFolderGUI\initServerInfoForm(), ilObjContentObjectGUI\initSetPageLayoutForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilObjStyleSheetGUI\initTemplateForm(), ilObjStyleSheetGUI\initTemplateGenerationForm(), ilObjWikiGUI\initTemplateSelectionForm(), ilObjSkillTreeGUI\initTreeForm(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjMediaCastGUI\listItemsObject(), ilObjContentObjectGUI\pages(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjWikiGUI\performSearchObject(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjContentObjectGUI\properties(), ilObjWikiGUI\removeImportantPagesObject(), ilObjContentObjectGUI\removeLMGlossary(), ilContainerGUI\renderObject(), ilObjWikiGUI\renderSideBlock(), ilObjContentObjectGUI\resetNumberOfTries(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjStyleSheetGUI\saveColorObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjContentObjectGUI\saveExportIds(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjContentObjectGUI\saveHelpMapping(), ilObjBadgeAdministrationGUI\saveImageTemplate(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjStyleSheetGUI\saveMediaQueryObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjMediaObjectGUI\saveObject(), ilObjWikiGUI\saveOrderingAndIndentObject(), ilObjMediaCastGUI\saveOrderObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjContentObjectGUI\savePageLayout(), ilObjContentObjectGUI\saveProperties(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjStyleSheetGUI\saveTemplateObject(), ilObjContentObjectGUI\saveTooltips(), ilObjContentObjectGUI\selectLMGlossary(), ilObjEmployeeTalkGUI\sendUpdateNotification(), ilObjWikiGUI\setAsStartPageObject(), ilObjContentObjectGUI\setContentSubTabs(), ilObjCourseGUI\setContentSubTabs(), ilContainerGUI\setPageEditorTabs(), ilObjContentObjectGUI\setPageLayout(), ilObjMediaObjectGUI\setPropertiesSubTabs(), ilObjContentObjectGUI\setQuestionsSubTabs(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), ilObjSAHSLearningModuleGUI\setSettingsSubTabs(), ilObjFolderGUI\setSubTabs(), ilObjSCORMLearningModuleGUI\setSubTabs(), ilObjMediaCastGUI\setTabs(), ilObjRootFolderGUI\setTitleAndDescription(), ilObjContentObjectGUI\showActions(), ilContainerGUI\showAdministrationPanel(), ilObjMediaObjectGUI\showAllUsagesObject(), ilObjSystemFolderGUI\showBasicSettingsObject(), ilObjContentObjectGUI\showExportIDsOverview(), ilContainerGUI\showLinkListObject(), ilObjWikiGUI\showTemplateSelectionObject(), ilObjContentObjectGUI\showTooltipList(), ilObjSkillTreeGUI\showTree(), ilObjTaggingSettingsGUI\showUsers(), ilObjStyleSheetGUI\templateGenerationObject(), ilObjBadgeAdministrationGUI\toggleObjectBadges(), ilObjContentObjectGUI\unlockQuestion(), ilObjStyleSheetGUI\updateColorObject(), ilObjBadgeAdministrationGUI\updateImageTemplate(), ilObjStyleSheetGUI\updateObject(), ilObjStyleSheetGUI\updateTemplateObject(), ilObjMediaObjectGUI\uploadMultipleSubtitleFileFormObject(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), and ilObjWikiGUI\viewPageObject().

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

Referenced by ilObjQuestionPoolGUI\getTable().

◆ $obj_definition

ilObjectDefinition ilObjectGUI::$obj_definition
protected

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

◆ $obj_id

◆ $object

ilObject ilObjectGUI::$object = null
protected

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

Referenced by ilObjLearningModuleGUI\__construct(), ilObjAccessibilitySettingsGUI\__construct(), ilObjExerciseGUI\__construct(), ilObjMediaPoolGUI\__construct(), ilObjCmiXapiGUI\_goto(), ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilObjBookingPoolGUI\addExternalEditFormCustom(), ilObjMediaPoolGUI\addMobsToPool(), ilObject2GUI\deleteConfirmedObjects(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilContainerGUI\downloadObject(), ilObjStyleSheetGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\exportObject(), ilObjBlogGUI\exportWithComments(), ilObjForumGUI\getForumObjects(), getObject(), ilObjForumGUI\getSafePostCommands(), ilObjExerciseGUI\getService(), ilObjTestGUI\getTable(), ilObjTestFolderGUI\getTestFolder(), ilObjTestGUI\getTestObject(), ilObjItemGroupGUI\initCreateForm(), ilContainerGUI\linkObject(), ilObjExerciseGUI\listAssignmentsObject(), ilObjUserGUI\loadUserDefinedDataFromForm(), ilObjUserGUI\loadValuesFromForm(), ilObjSessionGUI\membersObject(), ilObjCourseGUI\renderObject(), ilObjForumGUI\renderPostContent(), ilObjMediaObjectGUI\returnToContextObject(), ilObjWikiGUI\setAsStartPageObject(), ilObjMediaObjectGUI\setPropertiesSubTabs(), ilObjContentPageGUI\setTabs(), ilObjMediaObjectGUI\showAllUsagesObject(), ilObjExerciseGUI\showOverviewObject(), ilObjExerciseGUI\startAssignmentObject(), ilObjPortfolioBaseGUI\view(), and ilObjEmployeeTalkGUI\viewObject().

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

int ilObjectGUI::$ref_id
protected

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

Referenced by ilObjLearningModuleGUI\__construct(), ilObjRoleTemplateGUI\__construct(), ilObjStyleSheetGUI\__construct(), ilObjForumGUI\__construct(), ilObjStudyProgrammeGUI\__construct(), ilObjChatroomGUI\_goto(), ilObjChatroomAdminGUI\_goto(), ilObjStudyProgrammeAdminGUI\_goto(), ilObjDataCollectionGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjPollGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjWikiGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjForumGUI\_goto(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjIndividualAssessmentGUI\addToNavigationHistory(), ilObjStudyProgrammeGUI\addToNavigationHistory(), ilObjLearningSequenceGUI\checkLPAccess(), ilObject2GUI\checkPermission(), ilObjWikiGUI\checkPermissionBool(), ilContainerGUI\clipboardObject(), ilContainerGUI\cloneAllObject(), ilObjEmployeeTalkGUI\confirmedDeleteObject(), ilObjLTIConsumerGUI\contentSelectionRequest(), ilObjLTIConsumerGUI\contentSelectionResponse(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilContainerGUI\copyObject(), ilObjChatroomGUI\createActionDispatcherGUI(), createActionDispatcherGUI(), ilObjPortfolioTemplateGUI\createFromTemplate(), ilContainerGUI\cutObject(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilRemoteObjectBaseGUI\executeCommand(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjTestGUI\forwardCommandToQuestionPreview(), getRefId(), ilObjItemGroupGUI\gotoParent(), ilRemoteObjectBaseGUI\infoScreen(), ilContainerGUI\linkObject(), ilContainerGUI\pasteObject(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjRoleTemplateGUI\permSaveObject(), ilObjBlogGUI\renderList(), ilObjForumGUI\renderThreadOverview(), ilObjTypeDefinitionGUI\saveObject(), ilObjOrgUnitGUI\setContentSubTabs(), ilOrgUnitExtensionGUI\setLocator(), ilObject2GUI\setLocator(), ilObjDataCollectionGUI\setTabs(), ilContainerGUI\showAdministrationPanel(), showPossibleSubObjects(), ilCourseContentGUI\showStartObjects(), ilObjFileGUI\toggleLearningProgress(), ilCourseContentGUI\updateManagedTimings(), and ilCourseContentGUI\updatePersonalTimings().

◆ $refinery

Refinery ilObjectGUI::$refinery
protected

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

Referenced by putObjectInTree().

◆ $requested_new_type

string ilObjectGUI::$requested_new_type = ""
protected

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

Referenced by createObject().

◆ $requested_ref_id

◆ $retriever

ilObjectRequestRetriever ilObjectGUI::$retriever
private

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

◆ $return_location

array ilObjectGUI::$return_location = []
protected

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

◆ $settings

ilSetting ilObjectGUI::$settings
protected

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

Referenced by ilObjAccessibilitySettingsGUI\__construct(), ilObjMediaCastGUI\__construct(), ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilContainerGUI\addHeaderRow(), ilObjPortfolioAdministrationGUI\addToExternalSettingsForm(), ilObjRepositorySettingsGUI\addToExternalSettingsForm(), ilObjStudyProgrammeGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjLearningSequenceGUI\afterSave(), ilObjAuthSettingsGUI\apacheAuthSettingsObject(), ilObjPortfolioGUI\createPortfolioFromAssignment(), ilObjPortfolioGUI\createPortfolioFromTemplateProcess(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilObjAuthSettingsGUI\editScriptObject(), ilObjBlogAdministrationGUI\editSettings(), ilObjECSSettingsGUI\executeCommand(), ilObjUserFolderGUI\generalSettingsObject(), ilContainerGUI\getContainerPageHTML(), ilObjPortfolioGUI\getCreationForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjPortfolioGUI\initCreateFromTemplateForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjCourseGUI\initEditForm(), ilObjUserGUI\initForm(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjSystemFolderGUI\initJavaServerForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSystemFolderGUI\initServerInfoForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilContainerGUI\initSortingForm(), ilObjUserGUI\isSettingChangeable(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjBlogGUI\renderNavigation(), ilContainerGUI\renderObject(), ilObjLearningSequenceAdminGUI\save(), ilObjContentPageAdministrationGUI\save(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjRepositorySettingsGUI\saveNewItemGroupOrder(), ilObjNotificationAdminGUI\saveOSDSettings(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjContentObjectGUI\saveProperties(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilContainerGUI\saveSortingSettings(), ilObjContentObjectGUI\setSubTabs(), ilObjSystemFolderGUI\showBasicSettingsObject(), ilObjNotificationAdminGUI\showOSDSettings(), ilObjCourseGUI\updateObject(), ilObjEmployeeTalkGUI\validateCustom(), and ilObjPortfolioBaseGUI\view().

◆ $sub_objects

string ilObjectGUI::$sub_objects = ""
protected

◆ $tabs_gui

◆ $target_frame

array ilObjectGUI::$target_frame = []
protected

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

Referenced by ilObject2GUI\getTargetFrame().

◆ $temp_file_system

Filesystem ilObjectGUI::$temp_file_system
protected

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

◆ $tmp_import_dir

string ilObjectGUI::$tmp_import_dir
protected

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

◆ $toolbar

◆ $tpl

ilGlobalTemplateInterface ilObjectGUI::$tpl
protected

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

Referenced by ilObjMediaObjectGUI\_getMediaInfoHTML(), ilObjMediaCastGUI\addCastItemObject(), ilObjStyleSheetGUI\addColorObject(), ilObjBadgeAdministrationGUI\addImageTemplate(), ilObjStyleSheetGUI\addMediaQueryObject(), ilObjIndividualAssessmentGUI\addMemberDataToInfo(), ilObjLanguageExtGUI\addNewEntryObject(), ilObjStyleSheetGUI\addTemplateObject(), ilObjWikiGUI\allPagesObject(), ilContainerGUI\clipboardObject(), ilObjBadgeAdministrationGUI\confirmDeleteImageTemplates(), ilObjBadgeAdministrationGUI\confirmDeleteObjectBadges(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilObjContentObjectGUI\confirmGlossarySelection(), ilObjWikiGUI\confirmRemoveImportantPagesObject(), ilObjMediaObjectGUI\confirmSrtDeletionObject(), ilObjStyleSheetGUI\createObject(), ilObjMediaObjectGUI\createObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilObjForumGUI\createThreadObject(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjStyleSheetGUI\deleteMediaQueryConfirmationObject(), ilObjSkillTreeGUI\deleteNodes(), ilObjStyleSheetGUI\deleteObject(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilObjStyleSheetGUI\displayTemplateEditForm(), ilObjMediaCastGUI\editCastItemObject(), ilObjStyleSheetGUI\editColorObject(), ilObjPortfolioAdministrationGUI\editDeclarationOfAuthorship(), ilObjTaggingSettingsGUI\editForbiddenTags(), ilObjContentObjectGUI\editGlossaries(), ilObjBadgeAdministrationGUI\editImageTemplate(), ilObjWikiGUI\editImportantPagesObject(), ilObjExternalToolsSettingsGUI\editMapsObject(), ilObjStyleSheetGUI\editMediaQueryObject(), ilObjContentObjectGUI\editMenuProperties(), ilObjMediaObjectGUI\editObject(), ilObjMediaCastGUI\editOrderObject(), ilObjMediaObjectsSettingsGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjWikiGUI\executeCommand(), ilContainerGUI\executeCommand(), ilObjLearningSequenceGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjTestGUI\forwardToInfoScreen(), ilObjStyleSheetGUI\generateTemplateObject(), ilObjSurveyQuestionPoolGUI\importFile(), ilObjSurveyQuestionPoolGUI\importQuestionsObject(), ilObjSurveyGUI\importSurveyObject(), ilObjStyleSheetGUI\includeCSS(), ilObjMediaObjectGUI\includePresentationJS(), ilObjCourseGUI\infoScreen(), ilObjContentObjectGUI\listBlockedUsers(), ilObjStyleSheetGUI\listColorsObject(), ilObjWikiGUI\listContributorsObject(), ilObjMediaCastGUI\listItemsObject(), ilObjContentObjectGUI\listLinks(), ilObjStyleSheetGUI\listMediaQueriesObject(), ilObjContentObjectGUI\listQuestions(), ilObjStyleSheetGUI\listTemplatesObject(), ilObjBadgeAdministrationGUI\listTypes(), ilObjWikiGUI\newPagesObject(), ilObjWikiGUI\orphanedPagesObject(), ilObjContentObjectGUI\pages(), ilObjWikiGUI\performSearchObject(), ilObjWikiGUI\popularPagesObject(), ilObjMediaCastGUI\populateFormFromPost(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjStyleSheetGUI\propertiesObject(), ilObjWikiGUI\recentChangesObject(), ilContainerGUI\redrawListItemObject(), ilObjWikiGUI\renderSideBlock(), ilObjMediaObjectGUI\returnToContextObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjStyleSheetGUI\saveColorObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjStyleSheetGUI\saveMediaQueryObject(), ilObjMediaObjectGUI\saveObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjStyleSheetGUI\saveTemplateObject(), ilObjGlossaryGUI\setContentStyleSheet(), ilObjWikiGUI\setContentStyleSheet(), setLocator(), ilObjContentObjectGUI\setPageLayout(), ilObjMediaObjectGUI\setPropertiesSubTabs(), ilObjSystemFolderGUI\setServerInfoSubTabs(), ilObjSurveyAdministrationGUI\settingsObject(), ilObjMediaObjectGUI\showAllUsagesObject(), ilObjSystemFolderGUI\showBasicSettingsObject(), ilObjSystemFolderGUI\showContactInformationObject(), ilContainerGUI\showContainerFilter(), ilObjMediaCastGUI\showContentObject(), ilObjSystemFolderGUI\showDbBenchResults(), ilObjContentObjectGUI\showExportIDsOverview(), ilObjUserFolderGUI\showFieldChangeComponentsListeningConfirmDialog(), ilObjMediaCastGUI\showGallery(), ilObjSystemFolderGUI\showHeaderTitleObject(), ilObjSystemFolderGUI\showJavaServerObject(), ilContainerGUI\showLinkListObject(), ilObjContentObjectGUI\showLMGlossarySelector(), ilObjMediaObjectGUI\showMultiSubtitleConfirmationTableObject(), ilContainerGUI\showPasswordInstructionObject(), ilContainerGUI\showPermanentLink(), ilObjBookingPoolGUI\showProfileObject(), ilObjWikiGUI\showTemplateSelectionObject(), ilObjContentObjectGUI\showTooltipList(), ilObjSkillTreeGUI\showTree(), ilObjTaggingSettingsGUI\showUsers(), ilObjStyleSheetGUI\templateGenerationObject(), ilContainerGUI\trashObject(), ilObjStyleSheetGUI\updateColorObject(), ilObjStyleSheetGUI\updateMediaQueryObject(), ilObjStyleSheetGUI\updateObject(), ilObjSurveyQuestionPoolGUI\uploadQuestionsObject(), ilObjLanguageExtGUI\viewObject(), ilObjWikiGUI\viewPageObject(), and ilObjSurveyGUI\viewUserResultsObject().

◆ $tree

ilTree ilObjectGUI::$tree
protected

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

Referenced by ilObject2GUI\__construct(), ilContainerGUI\_buildPath(), ilObjItemGroupGUI\_goto(), ilObjPollGUI\_goto(), ilObjMediaPoolGUI\addLocatorItems(), ilObjMediaPoolGUI\addMobsToPool(), ilObjMediaPoolGUI\afterConstructor(), ilObjCategoryGUI\afterSave(), ilContainerGUI\cloneNodes(), ilObjContentObjectGUI\confirmedDelete(), ilObjSkillTreeGUI\delete(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilObjMediaPoolGUI\executeCommand(), ilObjFolderGUI\forwardToTimingsView(), ilObjCategoryGUI\getTaxonomiesForRefId(), ilObjItemGroupGUI\gotoParent(), ilObjMediaPoolGUI\handleUploadResult(), isVisible(), ilObjItemGroupGUI\listMaterials(), ilObjTaxonomyGUI\listNodes(), ilObjFolderGUI\modifyItemGUI(), ilObjTaxonomyGUI\pasteItems(), ilContainerGUI\pasteObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjExerciseVerificationGUI\render(), ilObjSCORMVerificationGUI\render(), ilObjCmiXapiVerificationGUI\render(), ilObjLTIConsumerVerificationGUI\render(), ilObjTestVerificationGUI\render(), ilObjCourseVerificationGUI\render(), ilObjBlogGUI\renderFullScreen(), ilObjMediaPoolGUI\returnFromItem(), ilObjBlogGUI\setSettingsSubTabs(), ilObjItemGroupGUI\setTabs(), ilContainerGUI\showLinkListObject(), ilObjContentObjectGUI\showLMGlossarySelector(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), and ilOrgUnitExtensionGUI\showTree().

◆ $type

◆ $ui_factory

◆ $ui_renderer

◆ $user

ilObjUser ilObjectGUI::$user
protected

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

Referenced by ilObjBookingPoolGUI\addExternalEditFormCustom(), ilObjMediaCastGUI\addMobsToCast(), ilContainerGUI\addStandardContainerSubTabs(), ilObjSurveyQuestionPoolGUI\createQuestionObject(), ilObjRoleGUI\deassignUserObject(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjCategoryGUI\deleteUsersObject(), ilObjMediaCastGUI\downloadItemObject(), ilObjCourseReferenceGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilContainerGUI\getContainerPageHTML(), ilObjExerciseGUI\getEditFormCustomValues(), ilObjMailGUI\getExternalSettingsForm(), ilObjContentObjectGUI\getPropertiesFormValues(), ilObjForumGUI\getSafePostCommands(), ilObjExerciseGUI\getService(), ilObjSurveyGUI\getTabs(), ilObjMediaCastGUI\handlePlayerCompletedEventObject(), ilObjMediaCastGUI\handlePlayerEventObject(), ilObjWikiGUI\infoScreen(), ilObjEmployeeTalkSeriesGUI\initCreateForm(), ilObjBookingPoolGUI\initHeaderAction(), ilObjUserTrackingGUI\initSettingsForm(), ilObjRoleFolderGUI\initSettingsForm(), ilObjCategoryGUI\listUsersObject(), ilObjUserGUI\loadUserDefinedDataFromForm(), ilObjUserGUI\loadValuesFromForm(), ilObjSurveyGUI\mailUserResultsObject(), ilObjExerciseGUI\outCertificateObject(), ilContainerGUI\pasteObject(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilContainerGUI\renderObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjBookingPoolGUI\saveNotificationObject(), ilContainerGUI\savePasswordObject(), ilObjContentObjectGUI\saveProperties(), ilObjRoleFolderGUI\saveSettingsObject(), ilObjSurveyGUI\sendUserResultsMail(), ilObjMediaObjectGUI\setPropertiesSubTabs(), ilObjUserFolderGUI\showActionConfirmation(), ilObjMediaCastGUI\showContentObject(), ilObjExerciseGUI\showOverviewObject(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilObjSkillTreeGUI\showTree(), ilObjExerciseGUI\startAssignmentObject(), ilObjMediaCastGUI\updateCastItemObject(), ilObjExerciseGUI\updateCustom(), ilObjCategoryGUI\updateObject(), and ilObjSurveyGUI\viewUserResultsObject().

◆ ADMIN_MODE_NONE

const ilObjectGUI::ADMIN_MODE_NONE = ""

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

◆ ADMIN_MODE_REPOSITORY

const ilObjectGUI::ADMIN_MODE_REPOSITORY = "repository"

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

◆ ADMIN_MODE_SETTINGS

const ilObjectGUI::ADMIN_MODE_SETTINGS = "settings"

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

◆ CFORM_CLONE

const ilObjectGUI::CFORM_CLONE = 3

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

◆ CFORM_IMPORT

const ilObjectGUI::CFORM_IMPORT = 2

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

◆ CFORM_NEW

const ilObjectGUI::CFORM_NEW = 1

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

◆ SUPPORTED_IMPORT_MIME_TYPES

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

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

◆ UPLOAD_TYPE_LOCAL

const ilObjectGUI::UPLOAD_TYPE_LOCAL = 1

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

◆ UPLOAD_TYPE_UPLOAD_DIRECTORY

const ilObjectGUI::UPLOAD_TYPE_UPLOAD_DIRECTORY = 2

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


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