ILIAS  release_8 Revision v8.24
ilObjectGUI Class Reference

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

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

Public Member Functions

 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 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] don't belong to the current 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...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 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)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 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 ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
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
 

Protected Member Functions

 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 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...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 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...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 fillCloneTemplate (?string $tpl_name, string $type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. 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...
 
 showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
 show edit section of custom icons for container More...
 

Protected Attributes

ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
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 Attributes

ilObjectRequestRetriever $retriever
 

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

Constructor & Destructor Documentation

◆ __construct()

ilObjectGUI::__construct (   $data,
int  $id = 0,
bool  $call_by_reference = true,
bool  $prepare_output = true 
)
Parameters
mixed$data
int$id
bool$call_by_reference
bool$prepare_output
Exceptions
ilCtrlException

Reimplemented in ilObjMediaCastGUI, ilObjWikiGUI, ilObjExternalToolsSettingsGUI, ilObjUserTrackingGUI, ilObjRoleGUI, ilObjBlogAdministrationGUI, ilObjCategoryGUI, ilObjCategoryReferenceGUI, ilObjLearningResourcesSettingsGUI, ilObjMediaCastSettingsGUI, ilObjPortfolioAdministrationGUI, ilObjWebResourceAdministrationGUI, ilObjAccessibilitySettingsGUI, ilObjAwarenessAdministrationGUI, ilObjBadgeAdministrationGUI, ilObjDashboardSettingsGUI, ilObjLearningHistorySettingsGUI, ilObjMediaObjectsSettingsGUI, ilObjCommentsSettingsGUI, ilObjNotesSettingsGUI, ilObjPersonalWorkspaceSettingsGUI, ilObjRepositorySettingsGUI, ilObjSkillManagementGUI, ilObjSkillTreeGUI, ilObjMediaObjectGUI, ilObjFolderGUI, ilObjContentObjectGUI, ilObjGlossaryGUI, ilObjFileBasedLMGUI, ilObjLearningModuleGUI, ilObjStudyProgrammeReferenceGUI, ilObjGroupGUI, ilObjLoggingSettingsGUI, ilObjBibliographicAdminGUI, ilObjContentPageAdministrationGUI, ilObjCourseGUI, ilObjExerciseAdministrationGUI, ilMembershipAdministrationGUI, ilObjTaggingSettingsGUI, ilObjECSSettingsGUI, ilObjWorkflowEngineGUI, ilObjAssessmentFolderGUI, ilObjSAHSLearningModuleGUI, ilObjSCORMLearningModuleGUI, ilObjLearningSequenceAdminGUI, ilObjStudyProgrammeAdminGUI, ilObjComponentSettingsGUI, ilObjForumGUI, ilObjIndividualAssessmentGUI, and ilObjCertificateSettingsGUI.

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

116 {
117 global $DIC;
118
119 $this->request = $DIC->http()->request();
120 $this->locator = $DIC["ilLocator"];
121 $this->user = $DIC->user();
122 $this->access = $DIC->access();
123 $this->settings = $DIC->settings();
124 $this->toolbar = $DIC->toolbar();
125 $this->rbac_admin = $DIC->rbac()->admin();
126 $this->rbac_system = $DIC->rbac()->system();
127 $this->rbac_review = $DIC->rbac()->review();
128 $this->object_service = $DIC->object();
129 $this->obj_definition = $DIC["objDefinition"];
130 $this->tpl = $DIC["tpl"];
131 $this->tree = $DIC->repositoryTree();
132 $this->ctrl = $DIC->ctrl();
133 $this->error = $DIC["ilErr"];
134 $this->lng = $DIC->language();
135 $this->tabs_gui = $DIC->tabs();
136 $this->ilias = $DIC["ilias"];
137 $this->post_wrapper = $DIC->http()->wrapper()->post();
138 $this->request_wrapper = $DIC->http()->wrapper()->query();
139 $this->refinery = $DIC->refinery();
140 $this->retriever = new ilObjectRequestRetriever($DIC->http()->wrapper(), $this->refinery);
141 $this->favourites = new ilFavouritesManager();
142 $this->custom_icon_factory = $DIC['object.customicons.factory'];
143
144 $this->data = $data;
145 $this->id = $id;
146 $this->call_by_reference = $call_by_reference;
147 $this->prepare_output = $prepare_output;
148
149 $params = array("ref_id");
150 if (!$call_by_reference) {
151 $params = array("ref_id","obj_id");
152 }
153 $this->ctrl->saveParameter($this, $params);
154
155 if ($this->request_wrapper->has("ref_id")) {
156 $this->requested_ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
157 }
158
159 $this->obj_id = $this->id;
160 $this->ref_id = $this->requested_ref_id;
161
162 if ($call_by_reference) {
163 $this->ref_id = $this->id;
164 $this->obj_id = 0;
165 if ($this->request_wrapper->has("obj_id")) {
166 $this->obj_id = $this->request_wrapper->retrieve("obj_id", $this->refinery->kindlyTo()->int());
167 }
168 }
169
170 // TODO: refactor this with post_wrapper or request_wrapper
171 // callback after creation
172 $this->requested_crtptrefid = $this->retriever->getMaybeInt('crtptrefid', 0);
173 $this->requested_crtcb = $this->retriever->getMaybeInt('crtcb', 0);
174 $this->requested_new_type = $this->retriever->getMaybeString('new_type', '');
175
176
177 if ($this->id != 0) {
178 $this->link_params = "ref_id=" . $this->ref_id;
179 }
180
181 $this->assignObject();
182
183 if (is_object($this->object)) {
184 if ($this->call_by_reference && $this->ref_id == $this->requested_ref_id) {
185 $this->ctrl->setContextObject(
186 $this->object->getId(),
187 $this->object->getType()
188 );
189 }
190 }
191
192 if ($prepare_output) {
193 $this->prepareOutput();
194 }
195
196 $this->notes_service = $DIC->notes();
197 }
error(string $a_errmsg)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareOutput(bool $show_sub_objects=true)
Base class for all sub item list gui's.
global $DIC
Definition: feed.php:28
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:33
header include for all ilias files.

References $call_by_reference, $data, $DIC, $id, $params, $prepare_output, $ref_id, $requested_ref_id, ILIAS\Repository\access(), assignObject(), ILIAS\Repository\ctrl(), error(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\object(), prepareOutput(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ _gotoRepositoryNode()

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

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

1603 : void
1604 {
1605 global $DIC;
1606
1607 $ctrl = $DIC->ctrl();
1608 $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", $ref_id);
1609 $ctrl->redirectByClass("ilRepositoryGUI", $cmd);
1610 }
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc

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

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

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

◆ _gotoRepositoryRoot()

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

Goto repository root.

Parameters

return

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

1584 : void
1585 {
1586 global $DIC;
1587
1588 $ilAccess = $DIC->access();
1589 $ilErr = $DIC["ilErr"];
1590 $lng = $DIC->language();
1591 $ctrl = $DIC->ctrl();
1592
1593 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
1594 $ctrl->setParameterByClass("ilRepositoryGUI", "ref_id", ROOT_FOLDER_ID);
1595 $ctrl->redirectByClass("ilRepositoryGUI");
1596 }
1597
1598 if ($raise_error) {
1599 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
1600 }
1601 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
const ROOT_FOLDER_ID
Definition: constants.php:32
$ilErr
Definition: raiseError.php:17

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

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

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

1612 : void
1613 {
1614 global $DIC;
1615
1616 $ctrl = $DIC->ctrl();
1617 $ctrl->setParameterByClass(ilSharedResourceGUI::class, "wsp_id", $wsp_id);
1618 $ctrl->redirectByClass(ilSharedResourceGUI::class, "");
1619 }

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

Referenced by ilObjFileGUI\_goto().

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

◆ addAdminLocatorItems()

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

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

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

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

553 : void
554 {
555 if ($this->admin_mode == self::ADMIN_MODE_SETTINGS) {
556 $this->ctrl->setParameterByClass(
557 "ilobjsystemfoldergui",
558 "ref_id",
560 );
561 $this->locator->addItem(
562 $this->lng->txt("administration"),
563 $this->ctrl->getLinkTargetByClass(["iladministrationgui", "ilobjsystemfoldergui"], "")
564 );
565 if ($this->object && ($this->object->getRefId() != SYSTEM_FOLDER_ID && !$do_not_add_object)) {
566 $this->locator->addItem(
567 $this->object->getTitle(),
568 $this->ctrl->getLinkTarget($this, "view")
569 );
570 }
571 } else {
572 $this->ctrl->setParameterByClass(
573 "iladministrationgui",
574 "ref_id",
575 ""
576 );
577 $this->ctrl->setParameterByClass(
578 "iladministrationgui",
579 "admin_mode",
580 "settings"
581 );
582 $this->ctrl->clearParametersByClass("iladministrationgui");
583 $this->locator->addAdministrationItems();
584 }
585 }
const SYSTEM_FOLDER_ID
Definition: constants.php:35

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

Referenced by prepareOutput().

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

◆ addDidacticTemplateOptions()

ilObjectGUI::addDidacticTemplateOptions ( array &  $a_options)
protected

Add custom templates.

Reimplemented in ilObjSurveyGUI, and ilObjTestGUI.

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

828 : void
829 {
830 }

Referenced by initDidacticTemplate().

+ Here is the caller graph for this function:

◆ addExternalEditFormCustom()

ilObjectGUI::addExternalEditFormCustom ( ilPropertyFormGUI  $form)

Reimplemented in ilObjBookingPoolGUI, and ilObjTalkTemplateGUI.

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

955 : void
956 {
957 // has to be done AFTER setValuesByArray() ...
958 }

Referenced by ilObjMediaPoolGUI\edit(), ilObjBibliographicGUI\editObject(), ilObjDataCollectionGUI\editObject(), ilObjEmployeeTalkGUI\editObject(), editObject(), and ilObjEmployeeTalkGUI\updateObject().

+ Here is the caller graph for this function:

◆ addHeaderAction()

ilObjectGUI::addHeaderAction ( )
protected

Add header action menu.

Reimplemented in ilObjCategoryGUI, and ilObjDataCollectionGUI.

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

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

References initHeaderAction(), and insertHeaderAction().

Referenced by ilObjBibliographicGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjItemGroupGUI\executeCommand(), ilObjLearningSequenceGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjSCORM2004LearningModuleGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjLinkResourceGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjWorkspaceFolderGUI\executeCommand(), ilObjTestGUI\forwardToEvaluationGUI(), and ilObjContentPageGUI\renderHeaderActions().

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

◆ addLocatorItems()

◆ addToDeskObject()

ilObjectGUI::addToDeskObject ( )

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

1678 : void
1679 {
1680 $this->favourites->add(
1681 $this->user->getId(),
1682 $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int())
1683 );
1684 $this->lng->loadLanguageModule("rep");
1685 $this->tpl->setOnScreenMessage("success", $this->lng->txt("rep_added_to_favourites"), true);
1686 $this->ctrl->redirectToURL(ilLink::_getLink($this->requested_ref_id));
1687 }

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

+ Here is the call graph for this function:

◆ afterImport()

ilObjectGUI::afterImport ( ilObject  $new_object)
protected

Post (successful) object import hook.

Reimplemented in ilObjCourseGUI, and ilObjFileBasedLMGUI.

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

1214 : void
1215 {
1216 $this->tpl->setOnScreenMessage("success", $this->lng->txt("object_added"), true);
1217 $this->ctrl->returnToParent($this);
1218 }

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

Referenced by importFileObject().

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

◆ afterSave()

◆ afterUpdate()

ilObjectGUI::afterUpdate ( )
protected

Post (successful) object update hook.

Reimplemented in ilObjBookingPoolGUI, and ilContainerGUI.

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

1055 : void
1056 {
1057 $this->tpl->setOnScreenMessage("success", $this->lng->txt("msg_obj_modified"), true);
1058 $this->ctrl->redirect($this, "edit");
1059 }

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

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

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

◆ assignObject()

ilObjectGUI::assignObject ( )
protected

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

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

267 : void
268 {
269 // TODO: it seems that we always have to pass only the ref_id
270 if ($this->id != 0) {
271 if ($this->call_by_reference) {
272 $this->object = ilObjectFactory::getInstanceByRefId($this->id);
273 } else {
274 $this->object = ilObjectFactory::getInstanceByObjId($this->id);
275 }
276 }
277 }
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id

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

Referenced by ilObjLearningModuleGUI\__construct(), ilObjWorkflowEngineGUI\__construct(), and __construct().

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

835 : void
836 {
837 $this->ctrl->redirectByClass("ilrepositorygui", "");
838 }

References ILIAS\Repository\ctrl().

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

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

◆ cancelDeleteObject()

ilObjectGUI::cancelDeleteObject ( )

cancel deletion of object

Reimplemented in ilObjEmployeeTalkGUI, ilObjEmployeeTalkSeriesGUI, and ilObjStyleSheetGUI.

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

610 : void
611 {
612 ilSession::clear("saved_post");
613 $this->ctrl->returnToParent($this);
614 }
static clear(string $a_var)

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

+ Here is the call graph for this function:

◆ cancelObject()

ilObjectGUI::cancelObject ( )

cancel action and go back to previous page

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

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

620 : void
621 {
622 ilSession::clear("saved_post");
623 $this->ctrl->returnToParent($this);
624 }

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

Referenced by ilObjFileBasedLMGUI\cancel().

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

◆ checkPermission()

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

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

1538 : void
1539 {
1540 if (!$this->checkPermissionBool($perm, $cmd, $type, $ref_id)) {
1541 if (!is_int(strpos($_SERVER["PHP_SELF"], "goto.php"))) {
1542 if ($perm != "create" && !is_object($this->object)) {
1543 return;
1544 }
1545
1546 ilSession::clear("il_rep_ref_id");
1547
1548 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_read'), true);
1549 $parent_ref_id = (int) $this->tree->getParentNodeData($this->object->getRefId())['ref_id'];
1550 $this->ctrl->redirectToURL(ilLink::_getLink($parent_ref_id));
1551 }
1552
1553 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_no_perm_read'), true);
1555 }
1556 }
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10

References $_SERVER, $ref_id, $type, ilLink\_getLink(), _gotoRepositoryRoot(), checkPermissionBool(), ilSession\clear(), ILIAS\Repository\ctrl(), ILIAS\Repository\int(), and ILIAS\Repository\lng().

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

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

◆ checkPermissionBool()

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

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

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

1558 : bool
1559 {
1560 if ($perm == "create") {
1561 if (!$ref_id) {
1563 }
1564 return $this->access->checkAccess($perm . "_" . $type, $cmd, $ref_id);
1565 }
1566
1567 if (!is_object($this->object)) {
1568 return false;
1569 }
1570
1571 if (!$ref_id) {
1572 $ref_id = $this->object->getRefId();
1573 }
1574
1575 return $this->access->checkAccess($perm, $cmd, $ref_id);
1576 }

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

Referenced by ilObjBadgeAdministrationGUI\activateTypes(), ilObjExerciseGUI\addContentSubTabs(), ilObjSurveyGUI\addToNavigationHistory(), checkPermission(), ilObjLoggingSettingsGUI\components(), ilObjFileBasedLMGUI\createFromDirectory(), createObject(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjBookingPoolGUI\editObject(), ilObjFolderGUI\editObject(), editObject(), ilObjCategoryGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjSystemFolderGUI\executeCommand(), ilObjSystemCheckGUI\executeCommand(), ilObjBlogAdministrationGUI\getAdminTabs(), ilObjEmployeeTalkGUI\getAdminTabs(), ilObjExerciseAdministrationGUI\getAdminTabs(), ilObjPortfolioAdministrationGUI\getAdminTabs(), ilObjObjectTemplateAdministrationGUI\getAdminTabs(), getAdminTabs(), ilObjSystemCheckGUI\getAdminTabs(), ilObjForumAdministrationGUI\getSettingsForm(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjSurveyGUI\getTabs(), ilObjSurveyQuestionPoolGUI\getTabs(), ilObjLanguageFolderGUI\getTabs(), ilObjUserTrackingGUI\getTabs(), ilObjAdvancedEditingGUI\getTinyForm(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjTestGUI\importFileObject(), ilObjQuestionPoolGUI\importFileObject(), importFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjCourseGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjSAHSLearningModuleGUI\infoScreenForward(), ilObjSurveyQuestionPoolGUI\infoScreenForward(), ilObjSessionGUI\initForm(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjCalendarSettingsGUI\initFormSettings(), ilObjPrivacySecurityGUI\initPrivacyForm(), ilObjUserTrackingGUI\initSettingsForm(), isVisible(), ilObjExerciseGUI\listAssignmentsObject(), ilObjLTIAdministrationGUI\listConsumers(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjFileBasedLMGUI\properties(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjContentPageAdministrationGUI\save(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjGlossaryGUI\saveObject(), saveObject(), ilObjFileBasedLMGUI\saveProperties(), setColumnSettings(), ilObjSystemCheckGUI\setMainSubTabs(), ilObjFileBasedLMGUI\setStartFile(), ilObjCategoryGUI\updateObject(), updateObject(), ilObjTestGUI\uploadObject(), ilObjLanguageFolderGUI\viewObject(), and viewObject().

+ 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

Reimplemented in ilObjEmployeeTalkGUI, ilObjEmployeeTalkSeriesGUI, ilObjLearningSequenceGUI, ilObjOrgUnitGUI, and ilObjStyleSheetGUI.

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

591 : void
592 {
593 if ($this->post_wrapper->has("mref_id")) {
594 $mref_id = $this->post_wrapper->retrieve(
595 "mref_id",
596 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
597 );
598 $_SESSION["saved_post"] = array_unique(array_merge($_SESSION["saved_post"], $mref_id));
599 }
600
601 $ru = new ilRepositoryTrashGUI($this);
602 $ru->deleteObjects($this->requested_ref_id, ilSession::get("saved_post") ?? []);
603 ilSession::clear("saved_post");
604 $this->ctrl->returnToParent($this);
605 }
Repository GUI Utilities.
static get(string $a_var)

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

+ Here is the call graph for this function:

◆ createObject()

ilObjectGUI::createObject ( )

create new object form

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

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

629 : void
630 {
631 $new_type = $this->requested_new_type;
632
633 // add new object to custom parent container
634 $this->ctrl->saveParameter($this, "crtptrefid");
635 // use forced callback after object creation
636 $this->ctrl->saveParameter($this, "crtcb");
637
638 if (!$this->checkPermissionBool("create", "", $new_type)) {
639 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
640 } else {
641 $this->lng->loadLanguageModule($new_type);
642 $this->ctrl->setParameter($this, "new_type", $new_type);
643
644 $forms = $this->initCreationForms($new_type);
645
646 // copy form validation error: do not show other creation forms
647 if ($this->request_wrapper->has("cpfl") && isset($forms[self::CFORM_CLONE])) {
648 $forms = array(self::CFORM_CLONE => $forms[self::CFORM_CLONE]);
649 }
650 $this->tpl->setContent($this->getCreationFormsHTML($forms));
651 }
652 }
getCreationFormsHTML(array $forms)
Get HTML for creation forms (accordion)
string $requested_new_type
initCreationForms(string $new_type)
Init creation forms.

References $requested_new_type, checkPermissionBool(), ILIAS\Repository\ctrl(), error(), getCreationFormsHTML(), initCreationForms(), and ILIAS\Repository\lng().

Referenced by ilObjLTIConsumerGUI\applyProviderFilter(), ilObjGlossaryGUI\importObject(), ilObjLTIConsumerGUI\resetProviderFilter(), ilObjRoleTemplateGUI\saveObject(), ilObjSessionGUI\saveObject(), and ilObjTestGUI\uploadTst().

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

◆ deleteObject()

ilObjectGUI::deleteObject ( bool  $error = false)

Display deletion confirmation screen.

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

Reimplemented in ilObjCourseGUI, ilObjFolderGUI, and ilObjOrgUnitGUI.

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

1338 : void
1339 {
1340 $request_ids = [];
1341 if ($this->post_wrapper->has("id")) {
1342 $request_ids = $this->post_wrapper->retrieve(
1343 "id",
1344 $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
1345 );
1346 }
1347
1348 if (
1349 $this->request_wrapper->has("item_ref_id") &&
1350 $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->string()) != ""
1351 ) {
1352 $request_ids = [$this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int())];
1353 }
1354
1355 $ids = [];
1356 if (count($request_ids) > 0) {
1357 foreach ($request_ids as $idx => $id) {
1358 $ids["id"][$idx] = $id;
1359 }
1360 }
1361
1362 // SAVE POST VALUES (get rid of this
1363 ilSession::set("saved_post", $ids["id"] ?? []);
1364
1365 $ru = new ilRepositoryTrashGUI($this);
1366 if (!$ru->showDeleteConfirmation($ids["id"] ?? [], $error)) {
1367 $this->ctrl->returnToParent($this);
1368 }
1369 }
ilErrorHandling $error
static set(string $a_var, $a_val)
Set a value.

References $error, $id, ILIAS\Repository\ctrl(), ILIAS\Repository\refinery(), and ilSession\set().

Referenced by ilObjLearningSequenceGUI\executeCommand().

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

◆ editObject()

ilObjectGUI::editObject ( )

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

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

936 : void
937 {
938 if (!$this->checkPermissionBool("write")) {
939 $this->error->raiseError($this->lng->txt("msg_no_perm_write"), $this->error->MESSAGE);
940 }
941
942 $this->tabs_gui->activateTab("settings");
943
944 $form = $this->initEditForm();
945 $values = $this->getEditFormValues();
946 if ($values) {
947 $form->setValuesByArray($values);
948 }
949
950 $this->addExternalEditFormCustom($form);
951
952 $this->tpl->setContent($form->getHTML());
953 }
addExternalEditFormCustom(ilPropertyFormGUI $form)

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

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

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

◆ enableDragDropFileUpload()

ilObjectGUI::enableDragDropFileUpload ( )
protected

Enables the file upload into this object by dropping files.

Reimplemented in ilObjLearningSequenceGUI.

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

1624 : void
1625 {
1626 $this->tpl->setFileUploadRefId($this->ref_id);
1627 }

Referenced by prepareOutput().

+ Here is the caller graph for this function:

◆ executeCommand()

ilObjectGUI::executeCommand ( )

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

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

231 : void
232 {
233 $cmd = $this->ctrl->getCmd();
234
235 $this->prepareOutput();
236 if (!$cmd) {
237 $cmd = "view";
238 }
239 $cmd .= "Object";
240 $this->$cmd();
241 }

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

+ Here is the call graph for this function:

◆ fillCloneTemplate()

ilObjectGUI::fillCloneTemplate ( ?string  $tpl_name,
string  $type 
)
protected

Fill object clone template This method can be called from any object GUI class that wants to offer object cloning.

Parameters
?stringtemplate variable name that will be filled
stringtype of new object
Returns
?ilPropertyFormGUI

Reimplemented in ilObject2GUI.

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

1447 {
1448 $cp = new ilObjectCopyGUI($this);
1449 $cp->setType($type);
1450 $target = $this->request_wrapper->has("ref_id")
1451 ? $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int())
1452 : 0;
1453 $cp->setTarget($target);
1454 if ($tpl_name) {
1455 $cp->showSourceSearch($tpl_name);
1456 }
1457
1458 return $cp->showSourceSearch(null);
1459 }
GUI class for the workflow of copying objects.
This class represents a property form user interface.

References $type, and ILIAS\Repository\refinery().

Referenced by ilObjSAHSLearningModuleGUI\initCreationForms(), ilObjMediaCastGUI\initCreationForms(), ilObjWikiGUI\initCreationForms(), and initCreationForms().

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

◆ getAdminMode()

ilObjectGUI::getAdminMode ( )

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

216 : string
217 {
218 return $this->admin_mode;
219 }

References $admin_mode.

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

+ Here is the caller graph for this function:

◆ getAdminTabs()

ilObjectGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

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

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

482 : void
483 {
484 if ($this->checkPermissionBool("visible,read")) {
485 $this->tabs_gui->addTarget(
486 "view",
487 $this->ctrl->getLinkTarget($this, "view"),
488 array("", "view"),
489 get_class($this)
490 );
491 }
492
493 if ($this->checkPermissionBool("edit_permission")) {
494 $this->tabs_gui->addTarget(
495 "perm_settings",
496 $this->ctrl->getLinkTargetByClass(array(get_class($this), 'ilpermissiongui'), "perm"),
497 "",
498 "ilpermissiongui"
499 );
500 }
501 }

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

Referenced by setAdminTabs().

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

◆ getCenterColumnHTML()

ilObjectGUI::getCenterColumnHTML ( )
protected

Get center column.

Reimplemented in ilObject2GUI.

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

1464 : string
1465 {
1466 $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1467 $obj_type = ilObject::_lookupType($obj_id);
1468
1469 if ($this->ctrl->getNextClass() != "ilcolumngui") {
1470 // normal command processing
1471 return $this->getContent();
1472 } else {
1473 if (!$this->ctrl->isAsynch()) {
1474 //if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
1476 // right column wants center
1478 $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1479 $this->setColumnSettings($column_gui);
1480 $this->html = $this->ctrl->forwardCommand($column_gui);
1481 }
1482 // left column wants center
1484 $column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT);
1485 $this->setColumnSettings($column_gui);
1486 $this->html = $this->ctrl->forwardCommand($column_gui);
1487 }
1488 } else {
1489 // normal command processing
1490 return $this->getContent();
1491 }
1492 }
1493 }
1494 return "";
1495 }
const IL_SCREEN_SIDE
const IL_COL_RIGHT
const IL_COL_LEFT
Column user interface class.
static getScreenMode()
static getCmdSide()
Get Column Side of Current Command.
setColumnSettings(ilColumnGUI $column_gui)
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)

References $obj_id, 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().

+ Here is the call graph for this function:

◆ getCreationFormsHTML()

ilObjectGUI::getCreationFormsHTML ( array  $forms)
protected

Get HTML for creation forms (accordion)

Parameters
array<int,ilPropertyFormGUI>$forms

Reimplemented in ilObjFileGUI.

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

674 : string
675 {
676 // #13168- sanity check
677 foreach ($forms as $id => $form) {
678 if (!$form instanceof ilPropertyFormGUI) {
679 unset($forms[$id]);
680 }
681 }
682
683 // no accordion if there is just one form
684 if (sizeof($forms) == 1) {
685 $form_type = key($forms);
686 $forms = array_shift($forms);
687
688 // see bug #0016217
689 if (method_exists($this, "getCreationFormTitle")) {
690 $form_title = $this->getCreationFormTitle($form_type);
691 if ($form_title != "") {
692 $forms->setTitle($form_title);
693 }
694 }
695 return $forms->getHTML();
696 } else {
697 $acc = new ilAccordionGUI();
698 $acc->setBehaviour(ilAccordionGUI::FIRST_OPEN);
699 $cnt = 1;
700 foreach ($forms as $form_type => $cf) {
701 $htpl = new ilTemplate("tpl.creation_acc_head.html", true, true, "Services/Object");
702
703 // using custom form titles (used for repository plugins)
704 $form_title = "";
705 if (method_exists($this, "getCreationFormTitle")) {
706 $form_title = $this->getCreationFormTitle($form_type);
707 }
708 if (!$form_title) {
709 $form_title = $cf->getTitle();
710 }
711
712 // move title from form to accordion
713 $htpl->setVariable("TITLE", $this->lng->txt("option") . " " . $cnt . ": " . $form_title);
714 $cf->setTitle('');
715 $cf->setTitleIcon('');
716 $cf->setTableWidth("100%");
717
718 $acc->addItem($htpl->get(), $cf->getHTML());
719
720 $cnt++;
721 }
722
723 return "<div class='ilCreationFormSection'>" . $acc->getHTML() . "</div>";
724 }
725 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
special template class to simplify handling of ITX/PEAR

References $id, ilAccordionGUI\FIRST_OPEN, and ILIAS\Repository\lng().

Referenced by createObject(), and ilObjStyleSheetGUI\createObject().

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

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

879 : int
880 {
881 if (!$this->post_wrapper->has("didactic_type")) {
882 return 0;
883 }
884
885 $tpl = $this->post_wrapper->retrieve("didactic_type", $this->refinery->kindlyTo()->string());
886 if (substr($tpl, 0, strlen($type) + 1) != $type . "_") {
887 return 0;
888 }
889
890 return (int) substr($tpl, strlen($type) + 1);
891 }
ilGlobalTemplateInterface $tpl

References $tpl, $type, and ILIAS\Repository\refinery().

Referenced by ilObjSurveyGUI\afterSave(), ilObjBookingPoolGUI\afterUpdate(), ilContainerGUI\afterUpdate(), ilObjSessionGUI\createRecurringSessions(), ilObjLTIConsumerGUI\saveCustom(), ilObjGlossaryGUI\saveObject(), saveObject(), and ilObjSessionGUI\saveObject().

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

◆ getEditFormCustomValues()

ilObjectGUI::getEditFormCustomValues ( array &  $a_values)
protected

◆ getEditFormValues()

ilObjectGUI::getEditFormValues ( )
protected

Reimplemented in ilObjCategoryGUI, ilObjCourseGUI, ilObjRootFolderGUI, and ilContainerGUI.

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

996 : array
997 {
998 $values["title"] = $this->object->getTitle();
999 $values["desc"] = $this->object->getLongDescription();
1000 $this->getEditFormCustomValues($values);
1001 return $values;
1002 }
getEditFormCustomValues(array &$a_values)
Add values to custom edit fields.

References getEditFormCustomValues().

Referenced by ilObjMediaPoolGUI\edit(), ilObjBibliographicGUI\editObject(), ilObjBookingPoolGUI\editObject(), ilObjDataCollectionGUI\editObject(), ilObjEmployeeTalkGUI\editObject(), and editObject().

+ Here is the call graph for this function:
+ 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 1223 of file class.ilObjectGUI.php.

1223 : string
1224 {
1225 if ($this->form_action[$cmd] != "") {
1226 return $this->form_action[$cmd];
1227 }
1228
1229 return $default_form_action;
1230 }

◆ getHTML()

ilObjectGUI::getHTML ( )

Reimplemented in ilObjBlogGUI, and ilObject2GUI.

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

503 : string
504 {
505 return $this->html;
506 }

References $html.

◆ getObject()

ilObjectGUI::getObject ( )

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

226 : ?ilObject
227 {
228 return $this->object;
229 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $object.

Referenced by ilObjectTranslationGUI\__construct(), ilContainerSkillGUI\__construct(), ilContSkillAdminGUI\__construct(), ilContSkillPresentationGUI\__construct(), ilContainerFilterAdminGUI\__construct(), ilCourseContentGUI\__construct(), ilContainerByTypeContentGUI\__construct(), ilObjTestSettingsScoringResultsGUI\__construct(), ilBookingParticipantGUI\__construct(), ilBookingObjectGUI\__construct(), ilDclRecordListGUI\__construct(), ilContainerNewsSettingsGUI\__construct(), ilExtIdGUI\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilBookingGatewayGUI\__construct(), ilLocalUserGUI\__construct(), ilForumDraftsTableGUI\__construct(), ilMediaCastTableGUI\__construct(), ilOrgUnitExportGUI\__construct(), ilItemGroupItemsTableGUI\__construct(), ilObjLearningSequenceGUI\checkLPAccess(), ilObjDataCollectionGUI\executeCommand(), ilChatroom\getChatURL(), ilObjLearningSequenceGUI\getTabs(), ilObjLearningSequenceGUI\learningProgress(), ilObjLearningSequenceGUI\manage_members(), ilObjCourseGUI\performUnsubscribeObject(), ilObjWorkflowEngineGUI\prepareAdminOutput(), ilObjLearningSequenceGUI\settings(), and ilObjLearningSequenceGUI\unparticipate().

+ Here is the caller graph for this function:

◆ getObjectService()

◆ getRefId()

◆ getReturnLocation()

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

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

"perm")

Reimplemented in ilObject2GUI.

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

1240 : string
1241 {
1242 if (($this->return_location[$cmd] ?? "") !== "") {
1243 return $this->return_location[$cmd];
1244 } else {
1245 return $default_location;
1246 }
1247 }

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

+ Here is the caller graph for this function:

◆ getRightColumnHTML()

ilObjectGUI::getRightColumnHTML ( )
protected

Display right column.

Reimplemented in ilObject2GUI.

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

1500 : string
1501 {
1502 $obj_id = ilObject::_lookupObjId($this->object->getRefId());
1503 $obj_type = ilObject::_lookupType($obj_id);
1504
1505 $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
1506
1507 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
1508 return "";
1509 }
1510
1511 $this->setColumnSettings($column_gui);
1512
1513 $html = "";
1514 if (
1515 $this->ctrl->getNextClass() == "ilcolumngui" &&
1516 $column_gui->getCmdSide() == IL_COL_RIGHT &&
1517 $column_gui->getScreenMode() == IL_SCREEN_SIDE
1518 ) {
1519 return $this->ctrl->forwardCommand($column_gui);
1520 }
1521
1522 if (!$this->ctrl->isAsynch()) {
1523 return $this->ctrl->getHTML($column_gui);
1524 }
1525
1526 return $html;
1527 }
const IL_SCREEN_FULL

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

+ Here is the call graph for this function:

◆ getTabs()

◆ getTargetFrame()

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

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

"perm")

Reimplemented in ilObject2GUI.

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

1260 : string
1261 {
1262 if (isset($this->target_frame[$cmd]) && $this->target_frame[$cmd] != "") {
1263 return $this->target_frame[$cmd];
1264 }
1265
1266 if (!empty($default_target_frame)) {
1267 return "target=\"" . $default_target_frame . "\"";
1268 }
1269
1270 return "";
1271 }

◆ importFileObject()

ilObjectGUI::importFileObject ( int  $parent_id = null)
protected

Reimplemented in ilObjFileBasedLMGUI, ilObjContentObjectGUI, ilObjSurveyQuestionPoolGUI, ilObjTestGUI, and ilObjQuestionPoolGUI.

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

1117 : void
1118 {
1119 if (!$parent_id) {
1120 $parent_id = $this->requested_ref_id;
1121 }
1122 $new_type = $this->requested_new_type;
1123 $upload_type = self::UPLOAD_TYPE_LOCAL;
1124 if ($this->post_wrapper->has("upload_type")) {
1125 $upload_type = $this->post_wrapper->retrieve("upload_type", $this->refinery->kindlyTo()->int());
1126 }
1127
1128 // create permission is already checked in createObject. This check here is done to prevent hacking attempts
1129 if (!$this->checkPermissionBool("create", "", $new_type)) {
1130 $this->error->raiseError($this->lng->txt("no_create_permission"));
1131 }
1132
1133 $this->lng->loadLanguageModule($new_type);
1134 $this->ctrl->setParameter($this, "new_type", $new_type);
1135
1136 $form = $this->initImportForm($new_type);
1137 if ($form->checkInput()) {
1138 // :todo: make some check on manifest file
1139 if ($this->obj_definition->isContainer($new_type)) {
1140 $imp = new ilImportContainer((int) $parent_id);
1141 } else {
1142 $imp = new ilImport((int) $parent_id);
1143 }
1144
1145 try {
1146 if ($upload_type == self::UPLOAD_TYPE_LOCAL) {
1147 $new_id = $imp->importObject(
1148 null,
1149 $_FILES["importfile"]["tmp_name"],
1150 $_FILES["importfile"]["name"],
1151 $new_type
1152 );
1153 } else {
1154 $hash = $this->request->getParsedBody()['uploadFile'] ?? '';
1155 $upload_factory = new ilImportDirectoryFactory();
1156 $export_upload = $upload_factory->getInstanceForComponent(ilImportDirectoryFactory::TYPE_EXPORT);
1157 $file = $export_upload->getAbsolutePathForHash($this->user->getId(), $new_type, $hash);
1158
1159 $new_id = $imp->importObject(
1160 null,
1161 $file,
1162 basename($file),
1163 $new_type,
1164 '',
1165 true
1166 );
1167 }
1168 } catch (ilException $e) {
1169 $this->tmp_import_dir = $imp->getTemporaryImportDir();
1170 $this->lng->loadLanguageModule('obj');
1171
1172 $this->tpl->setOnScreenMessage(
1173 "failure",
1174 $this->lng->txt("obj_import_file_error") . " <br />" . $e->getMessage()
1175 );
1176 $form->setValuesByPost();
1177 $this->tpl->setContent($form->getHTML());
1178 return;
1179 }
1180
1181 if ($new_id > 0) {
1182 $this->ctrl->setParameter($this, "new_type", "");
1183
1184 $newObj = ilObjectFactory::getInstanceByObjId($new_id);
1185 // put new object id into tree - already done in import for containers
1186 if (!$this->obj_definition->isContainer($new_type)) {
1187 $this->putObjectInTree($newObj);
1188 } else {
1189 $ref_ids = ilObject::_getAllReferences($newObj->getId());
1190 if (count($ref_ids) === 1) {
1191 $newObj->setRefId((int) current($ref_ids));
1192 }
1193 $this->callCreationCallback($newObj, $this->obj_definition, $this->requested_crtcb); // see #24244
1194 }
1195
1196 $this->afterImport($newObj);
1197 } else {
1198 if ($this->obj_definition->isContainer($new_type)) {
1199 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("container_import_zip_file_invalid"));
1200 } else {
1201 // not enough information here...
1202 return;
1203 }
1204 }
1205 }
1206
1207 $form->setValuesByPost();
1208 $this->tpl->setContent($form->getHTML());
1209 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initImportForm(string $new_type)
afterImport(ilObject $new_object)
Post (successful) object import hook.
putObjectInTree(ilObject $obj, int $parent_node_id=null)
Add object to tree at given position.
static _getAllReferences(int $id)
get all reference ids for object ID
callCreationCallback(\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)

References Vendor\Package\$e, $requested_new_type, $requested_ref_id, ilObject\_getAllReferences(), afterImport(), ILIAS\Object\ImplementsCreationCallback\callCreationCallback(), checkPermissionBool(), ILIAS\Repository\ctrl(), error(), ilObjectFactory\getInstanceByObjId(), initImportForm(), ILIAS\Repository\lng(), putObjectInTree(), ILIAS\Repository\refinery(), ilImportDirectoryFactory\TYPE_EXPORT, UPLOAD_TYPE_LOCAL, and ILIAS\Repository\user().

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

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

◆ initCreateForm()

ilObjectGUI::initCreateForm ( string  $new_type)
protected

Reimplemented in ilObjCmiXapiGUI, ilObjLTIConsumerGUI, ilObjEmployeeTalkSeriesGUI, ilObjGlossaryGUI, ilObjItemGroupGUI, ilObjPortfolioGUI, ilObjLinkResourceGUI, ilContainerReferenceGUI, and ilObjectPluginGUI.

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

728 {
729 $form = new ilPropertyFormGUI();
730 $form->setTarget("_top");
731 $form->setFormAction($this->ctrl->getFormAction($this, "save"));
732 $form->setTitle($this->lng->txt($new_type . "_new"));
733
734 $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
735 $ti->setSize(min(40, ilObject::TITLE_LENGTH));
736 $ti->setMaxLength(ilObject::TITLE_LENGTH);
737 $ti->setRequired(true);
738 $form->addItem($ti);
739
740 $ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
741 $ta->setCols(40);
742 $ta->setRows(2);
743 $ta->setMaxNumOfChars(ilObject::LONG_DESC_LENGTH);
744 $form->addItem($ta);
745
746 $form = $this->initDidacticTemplate($form);
747
748 $form->addCommandButton("save", $this->lng->txt($new_type . "_add"));
749 $form->addCommandButton("cancel", $this->lng->txt("cancel"));
750
751 return $form;
752 }
initDidacticTemplate(ilPropertyFormGUI $form)
const TITLE_LENGTH
const LONG_DESC_LENGTH
This class represents a text area property in a property form.
This class represents a text property in a property form.

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

Referenced by ilObjWorkspaceFolderGUI\initCreationForms(), ilObjStudyProgrammeGUI\initCreationForms(), ilObjTalkTemplateGUI\initCreationForms(), ilObjFileBasedLMGUI\initCreationForms(), ilObjMediaCastGUI\initCreationForms(), ilObjMediaPoolGUI\initCreationForms(), ilObjOrgUnitGUI\initCreationForms(), ilObjSurveyQuestionPoolGUI\initCreationForms(), initCreationForms(), and saveObject().

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

◆ initCreationForms()

ilObjectGUI::initCreationForms ( string  $new_type)
protected

Init creation forms.

This will create the default creation forms: new, import, clone

Returns
array<int, ilPropertyFormGUI>

Reimplemented in ilObjBibliographicGUI, ilObjLTIConsumerGUI, ilObjSAHSLearningModuleGUI, ilObjTaxonomyGUI, ilObjBlogGUI, ilObjBookingPoolGUI, ilObjCategoryGUI, ilObjChatroomGUI, ilObjTalkTemplateGUI, ilObjFileBasedLMGUI, ilObjItemGroupGUI, ilObjMediaCastGUI, ilObjMediaPoolGUI, ilObjOrgUnitGUI, ilObjPortfolioGUI, ilObjSurveyQuestionPoolGUI, ilObjWikiGUI, ilObject2GUI, and ilObjectPluginGUI.

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

659 : array
660 {
661 $forms = [
662 self::CFORM_NEW => $this->initCreateForm($new_type),
663 self::CFORM_IMPORT => $this->initImportForm($new_type),
664 self::CFORM_CLONE => $this->fillCloneTemplate(null, $new_type)
665 ];
666
667 return $forms;
668 }
fillCloneTemplate(?string $tpl_name, string $type)
Fill object clone template This method can be called from any object GUI class that wants to offer ob...
initCreateForm(string $new_type)

References fillCloneTemplate(), initCreateForm(), and initImportForm().

Referenced by createObject().

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

◆ initDidacticTemplate()

ilObjectGUI::initDidacticTemplate ( ilPropertyFormGUI  $form)
protected

Reimplemented in ilObjLearningSequenceGUI, and ilObjPortfolioTemplateGUI.

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

755 {
756 $this->lng->loadLanguageModule('didactic');
757 $existing_exclusive = false;
758 $options = [];
759 $options['dtpl_0'] = [
760 $this->lng->txt('didactic_default_type'),
761 sprintf(
762 $this->lng->txt('didactic_default_type_info'),
763 $this->lng->txt('objs_' . $this->type)
764 )
765 ];
766
767 $templates = ilDidacticTemplateSettings::getInstanceByObjectType($this->type)->getTemplates();
768 if ($templates) {
769 foreach ($templates as $template) {
770 if ($template->isEffective((int) $this->requested_ref_id)) {
771 $options["dtpl_" . $template->getId()] = array(
772 $template->getPresentationTitle(),
773 $template->getPresentationDescription()
774 );
775
776 if ($template->isExclusive()) {
777 $existing_exclusive = true;
778 }
779 }
780 }
781 }
782
783 $this->addDidacticTemplateOptions($options);
784
785 if (sizeof($options) > 1) {
787 $this->lng->txt('type'),
788 'didactic_type'
789 );
790 // workaround for containers in edit mode
791 if (!$this->getCreationMode()) {
792 $value = 'dtpl_' . ilDidacticTemplateObjSettings::lookupTemplateId($this->object->getRefId());
793
794 $type->setValue($value);
795
796 if (!in_array($value, array_keys($options)) || ($existing_exclusive && $value == "dtpl_0")) {
797 //add or rename actual value to not available
798 $options[$value] = [$this->lng->txt('not_available')];
799 }
800 } else {
801 if ($existing_exclusive) {
802 //if an exclusive template exists use the second template as default value
803 $keys = array_keys($options);
804 $type->setValue($keys[1]);
805 } else {
806 $type->setValue('dtpl_0');
807 }
808 }
809 $form->addItem($type);
810
811 foreach ($options as $id => $data) {
812 $option = new ilRadioOption($data[0] ?? '', (string) $id, $data[1] ?? '');
813 if ($existing_exclusive && $id == 'dtpl_0') {
814 //set default disabled if an exclusive template exists
815 $option->setDisabled(true);
816 }
817
818 $type->addOption($option);
819 }
820 }
821
822 return $form;
823 }
static getInstanceByObjectType(string $a_obj_type)
addDidacticTemplateOptions(array &$a_options)
Add custom templates.
This class represents a property in a property form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$keys
Definition: metadata.php:204

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

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

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

◆ initEditCustomForm()

ilObjectGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected

Add custom fields to update form.

Reimplemented in ilObjBibliographicGUI, ilObjBlogGUI, ilObjContentPageGUI, ilObjTalkTemplateGUI, ilObjForumGUI, ilObjMediaPoolGUI, ilObjPollGUI, ilObjPortfolioBaseGUI, ilObjPortfolioTemplateGUI, ilObjBookingPoolGUI, and ilObjItemGroupGUI.

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

992 : void
993 {
994 }

Referenced by initEditForm().

+ Here is the caller graph for this function:

◆ initEditForm()

ilObjectGUI::initEditForm ( )
protected

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

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

961 {
963
964 $lng->loadLanguageModule($this->object->getType());
965
966 $form = new ilPropertyFormGUI();
967 $form->setFormAction($this->ctrl->getFormAction($this, "update"));
968 $form->setTitle($this->lng->txt($this->object->getType() . "_edit"));
969
970 $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
971 $ti->setSize(min(40, ilObject::TITLE_LENGTH));
972 $ti->setMaxLength(ilObject::TITLE_LENGTH);
973 $ti->setRequired(true);
974 $form->addItem($ti);
975
976 $ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
977 $ta->setCols(40);
978 $ta->setRows(2);
979 $ta->setMaxNumOfChars(ilObject::LONG_DESC_LENGTH);
980 $form->addItem($ta);
981
982 $this->initEditCustomForm($form);
983
984 $form->addCommandButton("update", $this->lng->txt("save"));
985
986 return $form;
987 }
loadLanguageModule(string $a_module)
Load language module.
initEditCustomForm(ilPropertyFormGUI $a_form)
Add custom fields to update form.

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

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

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

◆ initHeaderAction()

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

Add header action menu.

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

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

378 {
379 if (!$this->creation_mode && $this->object) {
380 $dispatcher = new ilCommonActionDispatcherGUI(
382 $this->access,
383 $this->object->getType(),
384 $this->ref_id,
385 $this->object->getId()
386 );
387
388 $dispatcher->setSubObject($sub_type, $sub_id);
389
391 $this->ctrl->getLinkTarget($this, "redrawHeaderAction", "", true),
392 "",
393 $this->ctrl->getLinkTargetByClass(["ilcommonactiondispatchergui", "iltagginggui"], "", "", true)
394 );
395
396 $lg = $dispatcher->initHeaderAction();
397
398 if (is_object($lg)) {
399 // to enable add to desktop / remove from desktop
400 if ($this instanceof ilDesktopItemHandling) {
401 $lg->setContainerObject($this);
402 }
403 // enable multi download
404 $lg->enableMultiDownload(true);
405
406 // comments settings are always on (for the repository)
407 // should only be shown if active or permission to toggle
408 if (
409 $this->access->checkAccess("write", "", $this->ref_id) ||
410 $this->access->checkAccess("edit_permissions", "", $this->ref_id) ||
411 $this->notes_service->domain()->commentsActive($this->object->getId())
412 ) {
413 $lg->enableComments(true);
414 }
415
416 $lg->enableNotes(true);
417 $lg->enableTags(true);
418 }
419
420 return $lg;
421 }
422 return null;
423 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

Referenced by addHeaderAction(), and redrawHeaderActionObject().

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

◆ initImportForm()

ilObjectGUI::initImportForm ( string  $new_type)
protected

Reimplemented in ilObjContentObjectGUI, ilObjSCORMLearningModuleGUI, ilObjSurveyGUI, ilObjSurveyQuestionPoolGUI, ilObjTestGUI, ilObjQuestionPoolGUI, and ilObjectPluginGUI.

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

1062 {
1063 $import_directory_factory = new ilImportDirectoryFactory();
1064 $export_directory = $import_directory_factory->getInstanceForComponent(ilImportDirectoryFactory::TYPE_EXPORT);
1065 $upload_files = $export_directory->getFilesFor($this->user->getId(), $new_type);
1066 $has_upload_files = false;
1067 if (count($upload_files)) {
1068 $has_upload_files = true;
1069 }
1070
1071 $form = new ilPropertyFormGUI();
1072 $form->setTarget("_top");
1073 $form->setFormAction($this->ctrl->getFormAction($this, "importFile"));
1074 $form->setTitle($this->lng->txt($new_type . "_import"));
1075
1076 $fi = new ilFileInputGUI($this->lng->txt("import_file"), "importfile");
1077 $fi->setSuffixes(array("zip"));
1078 $fi->setRequired(true);
1079 if ($has_upload_files) {
1080 $this->lng->loadLanguageModule('content');
1081 $option = new ilRadioGroupInputGUI(
1082 $this->lng->txt('cont_choose_file_source'),
1083 'upload_type'
1084 );
1085 $option->setValue((string) self::UPLOAD_TYPE_LOCAL);
1086 $form->addItem($option);
1087
1088 $direct = new ilRadioOption($this->lng->txt('cont_choose_local'), (string) self::UPLOAD_TYPE_LOCAL);
1089 $option->addOption($direct);
1090
1091 $direct->addSubItem($fi);
1092 $upload = new ilRadioOption(
1093 $this->lng->txt('cont_choose_upload_dir'),
1094 (string) self::UPLOAD_TYPE_UPLOAD_DIRECTORY
1095 );
1096 $option->addOption($upload);
1097 $files = new ilSelectInputGUI(
1098 $this->lng->txt('cont_choose_upload_dir'),
1099 'uploadFile'
1100 );
1101 $upload_files[''] = $this->lng->txt('cont_select_from_upload_dir');
1102 $files->setOptions($upload_files);
1103 $files->setRequired(true);
1104 $upload->addSubItem($files);
1105 }
1106
1107 if (!$has_upload_files) {
1108 $form->addItem($fi);
1109 }
1110
1111 $form->addCommandButton("importFile", $this->lng->txt("import"));
1112 $form->addCommandButton("cancel", $this->lng->txt("cancel"));
1113
1114 return $form;
1115 }
This class represents a file property in a property form.
This class represents a selection list property in a property form.

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

Referenced by importFileObject(), ilObjFileBasedLMGUI\initCreationForms(), ilObjMediaCastGUI\initCreationForms(), ilObjMediaPoolGUI\initCreationForms(), ilObjOrgUnitGUI\initCreationForms(), ilObjWikiGUI\initCreationForms(), and initCreationForms().

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

428 : void
429 {
430 if (
431 !is_object($this->object) ||
432 ilContainer::_lookupContainerSetting($this->object->getId(), "hide_top_actions")
433 ) {
434 return;
435 }
436
437 if (is_object($list_gui)) {
438 $this->tpl->setHeaderActionMenu($list_gui->getHeaderAction());
439 }
440 }
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)

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

Referenced by addHeaderAction().

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

◆ isVisible()

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

Reimplemented in ilObject2GUI.

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

1281 : bool
1282 {
1283 $visible = $this->checkPermissionBool("visible,read", "", "", $ref_id);
1284
1285 if ($visible && $type == 'crs') {
1287 if ($crs_id = $tree->checkForParentType($ref_id, 'crs')) {
1288 if (!$this->checkPermissionBool("write", "", "", $crs_id)) {
1289 // Show only activated courses
1290 $tmp_obj = ilObjectFactory::getInstanceByRefId($crs_id, false);
1291
1292 if (!$tmp_obj->isActivated()) {
1293 unset($tmp_obj);
1294 $visible = false;
1295 }
1296 }
1297 }
1298 }
1299
1300 return $visible;
1301 }
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...

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

+ Here is the call graph for this function:

◆ omitLocator()

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

Reimplemented in ilObject2GUI.

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

544 : void
545 {
546 $this->omit_locator = $omit;
547 }

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

+ Here is the caller graph for this function:

◆ prepareOutput()

ilObjectGUI::prepareOutput ( bool  $show_sub_objects = true)

Reimplemented in ilObject2GUI, ilObjCourseGUI, ilObjGroupGUI, ilObjSessionGUI, and ilContainerGUI.

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

279 : bool
280 {
281 $this->tpl->loadStandardTemplate();
282 // administration prepare output
283 $base_class = $this->request_wrapper->retrieve("baseClass", $this->refinery->kindlyTo()->string());
284 if (strtolower($base_class) == "iladministrationgui") {
285 $this->addAdminLocatorItems();
286 $this->tpl->setLocator();
287
288 $this->setTitleAndDescription();
289
290 if ($this->getCreationMode() != true) {
291 $this->setAdminTabs();
292 }
293
294 return false;
295 }
296 $this->setLocator();
297
298 // in creation mode (parent) object and gui object do not fit
299 if ($this->getCreationMode() === true) {
300 // repository vs. workspace
301 if ($this->call_by_reference) {
302 // get gui class of parent and call their title and description method
303 $obj_type = ilObject::_lookupType($this->requested_ref_id, true);
304 $class_name = $this->obj_definition->getClassName($obj_type);
305 $class = strtolower("ilObj" . $class_name . "GUI");
306 $class_path = $this->ctrl->lookupClassPath($class);
307 $class_name = $this->ctrl->getClassForClasspath($class_path);
308
309 // $parent_gui_obj = new $class_name($this->requested_ref_id, true, false); // TODO: this fails in many cases since the parameters of the constructor are not known
310 // the next line prevents the header action menu being shown
311 // $parent_gui_obj->setCreationMode(true);
312 // $parent_gui_obj->setTitleAndDescription();
313 }
314 } else {
315 $this->setTitleAndDescription();
316
317 // set tabs
318 $this->setTabs();
319
320 $file_upload_dropzone = new ilObjFileUploadDropzone($this->ref_id);
321 if ($file_upload_dropzone->isUploadAllowed($this->object->getType())) {
323 }
324 }
325
326 return true;
327 }
enableDragDropFileUpload()
Enables the file upload into this object by dropping files.
setAdminTabs()
set admin tabs
addAdminLocatorItems(bool $do_not_add_object=false)
should be overwritten to add object specific items (repository items are preloaded)
setTabs()
set admin tabs

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

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

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

◆ putObjectInTree()

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

Add object to tree at given position.

Reimplemented in ilObjFileGUI, and ilObject2GUI.

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

896 : void
897 {
898 if (!$parent_node_id) {
899 $parent_node_id = $this->requested_ref_id;
900 }
901
902 // add new object to custom parent container
903 if ($this->requested_crtptrefid > 0) {
904 $parent_node_id = $this->requested_crtptrefid;
905 }
906
907 $obj->createReference();
908 $obj->putInTree($parent_node_id);
909 $obj->setPermissions($parent_node_id);
910
911 $this->obj_id = $obj->getId();
912 $this->ref_id = $obj->getRefId();
913
914 // BEGIN ChangeEvent: Record save object.
915 ilChangeEvent::_recordWriteEvent($this->obj_id, $this->user->getId(), 'create');
916 // END ChangeEvent: Record save object.
917
918 // rbac log
919 $rbac_log_roles = $this->rbac_review->getParentRoleIds($this->ref_id, false);
920 $rbac_log = ilRbacLog::gatherFaPa($this->ref_id, array_keys($rbac_log_roles), true);
921 ilRbacLog::add(ilRbacLog::CREATE_OBJECT, $this->ref_id, $rbac_log);
922
923 // use forced callback after object creation
924 $this->callCreationCallback($obj, $this->obj_definition, $this->requested_crtcb);
925 }
static _recordWriteEvent(int $obj_id, int $usr_id, string $action, ?int $parent_obj_id=null)
Records a write event.
setPermissions(int $parent_ref_id)
createReference()
creates reference for object
putInTree(int $parent_ref_id)
maybe this method should be in tree object!?
static add(int $a_action, int $a_ref_id, array $a_diff, bool $a_source_ref_id=false)
static gatherFaPa(int $a_ref_id, array $a_role_ids, bool $a_add_action=false)
const CREATE_OBJECT

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(), ilObjSurveyQuestionPoolGUI\importFileObject(), importFileObject(), ilObjEmployeeTalkSeriesGUI\saveObject(), ilObjGlossaryGUI\saveObject(), and saveObject().

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

◆ redirectAfterCreation()

ilObjectGUI::redirectAfterCreation ( )

Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen.

Reimplemented in ilObjFileBasedLMGUI.

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

1672 : void
1673 {
1674 $link = ilLink::_getLink($this->object->getRefId());
1675 $this->ctrl->redirectToURL($link);
1676 }

References ilLink\_getLink(), ILIAS\Repository\ctrl(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ redirectToRefId()

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

redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request

Reimplemented in ilObjOrgUnitGUI, and ilObject2GUI.

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

1429 : void
1430 {
1431 $obj_type = ilObject::_lookupType($ref_id, true);
1432 $class_name = $this->obj_definition->getClassName($obj_type);
1433 $class = strtolower("ilObj" . $class_name . "GUI");
1434 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $ref_id);
1435 $this->ctrl->redirectByClass(array("ilrepositorygui", $class), $cmd);
1436 }

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

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

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

◆ redrawHeaderActionObject()

ilObjectGUI::redrawHeaderActionObject ( )
protected

Ajax call: redraw action header only.

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

453 : void
454 {
455 $lg = $this->initHeaderAction();
456 echo $lg->getHeaderAction();
457
458 // we need to add onload code manually (rating, comments, etc.)
459 echo $this->tpl->getOnLoadCodeForAsynch();
460 exit;
461 }
exit
Definition: login.php:28

References exit, and initHeaderAction().

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

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

◆ removeFromDeskObject()

ilObjectGUI::removeFromDeskObject ( )

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

1689 : void
1690 {
1691 $this->lng->loadLanguageModule("rep");
1692 $item_ref_id = $this->request_wrapper->retrieve("item_ref_id", $this->refinery->kindlyTo()->int());
1693 $this->favourites->remove($this->user->getId(), $item_ref_id);
1694 $this->tpl->setOnScreenMessage("success", $this->lng->txt("rep_removed_from_favourites"), true);
1695 $this->ctrl->redirectToURL(ilLink::_getLink($this->requested_ref_id));
1696 }

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

+ Here is the call graph for this function:

◆ saveObject()

ilObjectGUI::saveObject ( )

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

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

840 : void
841 {
842 // create permission is already checked in createObject. This check here is done to prevent hacking attempts
843 if (!$this->checkPermissionBool("create", "", $this->requested_new_type)) {
844 $this->error->raiseError($this->lng->txt("no_create_permission"), $this->error->MESSAGE);
845 }
846
847 $this->lng->loadLanguageModule($this->requested_new_type);
848 $this->ctrl->setParameter($this, "new_type", $this->requested_new_type);
849
850 $form = $this->initCreateForm($this->requested_new_type);
851 if ($form->checkInput()) {
852 $this->ctrl->setParameter($this, "new_type", "");
853
854 $class_name = "ilObj" . $this->obj_definition->getClassName($this->requested_new_type);
855 $newObj = new $class_name();
856 $newObj->setType($this->requested_new_type);
857 $newObj->setTitle($form->getInput("title"));
858 $newObj->setDescription($form->getInput("desc"));
859 $newObj->processAutoRating();
860 $newObj->create();
861
862 $this->putObjectInTree($newObj);
863
864 $dtpl = $this->getDidacticTemplateVar("dtpl");
865 if ($dtpl) {
866 $newObj->applyDidacticTemplate($dtpl);
867 }
868
869 $this->afterSave($newObj);
870 }
871
872 $form->setValuesByPost();
873 $this->tpl->setContent($form->getHTML());
874 }
afterSave(ilObject $new_object)
Post (successful) object creation hook.
getDidacticTemplateVar(string $type)
Get didactic template setting from creation screen.

References afterSave(), checkPermissionBool(), ILIAS\Repository\ctrl(), error(), getDidacticTemplateVar(), initCreateForm(), ILIAS\Repository\lng(), and putObjectInTree().

Referenced by ilObjSessionGUI\saveAndAssignMaterialsObject().

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

◆ setAdminMode()

ilObjectGUI::setAdminMode ( string  $mode)

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

204 : void
205 {
206 if (!in_array($mode, [
207 self::ADMIN_MODE_NONE,
208 self::ADMIN_MODE_REPOSITORY,
209 self::ADMIN_MODE_SETTINGS
210 ])) {
211 throw new ilObjectException("Unknown Admin Mode $mode.");
212 }
213 $this->admin_mode = $mode;
214 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ setAdminTabs()

ilObjectGUI::setAdminTabs ( )
finalprotected

set admin tabs

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

474 : void
475 {
476 $this->getAdminTabs();
477 }
getAdminTabs()
administration tabs show only permissions and trash folder

References getAdminTabs().

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

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

◆ setColumnSettings()

ilObjectGUI::setColumnSettings ( ilColumnGUI  $column_gui)

Reimplemented in ilObjForumGUI, ilContainerGUI, and ilObject2GUI.

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

1529 : void
1530 {
1531 $column_gui->setRepositoryMode(true);
1532 $column_gui->setEnableEdit(false);
1533 if ($this->checkPermissionBool("write")) {
1534 $column_gui->setEnableEdit(true);
1535 }
1536 }
setEnableEdit(bool $a_enableedit)
setRepositoryMode(bool $a_repositorymode)

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

Referenced by getCenterColumnHTML(), and getRightColumnHTML().

+ 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] don't belong to the current class! The mode is determined in ilRepositoryGUI

Reimplemented in ilObject2GUI.

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

257 : void
258 {
259 $this->creation_mode = $mode;
260 }

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

+ Here is the caller graph for this function:

◆ setFormAction()

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

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

1232 : void
1233 {
1234 $this->form_action[$cmd] = $form_action;
1235 }

References $form_action.

◆ setLocator()

ilObjectGUI::setLocator ( )
protected

Reimplemented in ilObjGlossaryGUI, ilOrgUnitExtensionGUI, and ilObject2GUI.

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

508 : void
509 {
510 $ilLocator = $this->locator;
512
513 if ($this->omit_locator) {
514 return;
515 }
516
517 // repository vs. workspace
518 if ($this->call_by_reference) {
519 // todo: admin workaround
520 // in the future, object gui classes should not be called in
521 // admin section anymore (rbac/trash handling in own classes)
523 if ($this->requested_ref_id === 0) {
524 $ref_id = $this->object->getRefId();
525 }
526 $ilLocator->addRepositoryItems($ref_id);
527 }
528
529 if (!$this->creation_mode) {
530 $this->addLocatorItems();
531 }
532
533 $tpl->setLocator();
534 }
addLocatorItems()
should be overwritten to add object specific items (repository items are preloaded)
ilLocatorGUI $locator
setLocator()
Insert locator.

References $locator, $ref_id, $requested_ref_id, $tpl, addLocatorItems(), and ilGlobalTemplateInterface\setLocator().

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

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

◆ setReturnLocation()

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

set specific return location for command

Reimplemented in ilObject2GUI.

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

1252 : void
1253 {
1254 $this->return_location[$cmd] = $location;
1255 }
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: buildRTE.php:22

References $location.

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

+ Here is the caller graph for this function:

◆ setTabs()

◆ setTargetFrame()

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

Set specific target frame for command.

Reimplemented in ilObject2GUI.

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

1276 : void
1277 {
1278 $this->target_frame[$cmd] = "target=\"" . $target_frame . "\"";
1279 }

References $target_frame.

◆ setTitleAndDescription()

ilObjectGUI::setTitleAndDescription ( )
protected

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

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

329 : void
330 {
331 if (!is_object($this->object)) {
332 if ($this->requested_crtptrefid > 0) {
333 $cr_obj_id = ilObject::_lookupObjId($this->requested_crtcb);
334 $this->tpl->setTitle(
335 strip_tags(
336 ilObject::_lookupTitle($cr_obj_id),
337 self::ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
338 )
339 );
340 $this->tpl->setTitleIcon(ilObject::_getIcon($cr_obj_id));
341 }
342 return;
343 }
344 $this->tpl->setTitle(
345 strip_tags(
346 $this->object->getPresentationTitle(),
347 self::ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
348 )
349 );
350 $this->tpl->setDescription(
351 strip_tags(
352 $this->object->getLongDescription(),
353 self::ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
354 )
355 );
356
357 $base_class = $this->request_wrapper->retrieve("baseClass", $this->refinery->kindlyTo()->string());
358 if (strtolower($base_class) == "iladministrationgui") {
359 // alt text would be same as heading -> empty alt text
360 $this->tpl->setTitleIcon(ilObject::_getIcon(0, "big", $this->object->getType()));
361 } else {
362 $this->tpl->setTitleIcon(
363 ilObject::_getIcon(0, "big", $this->object->getType()),
364 $this->lng->txt("obj_" . $this->object->getType())
365 );
366 }
367 if (!$this->obj_definition->isAdministrationObject($this->object->getType())) {
368 $lgui = ilObjectListGUIFactory::_getListGUIByType($this->object->getType());
369 $lgui->initItem($this->object->getRefId(), $this->object->getId(), $this->object->getType());
370 $this->tpl->setAlertProperties($lgui->getAlertProperties());
371 }
372 }
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
static _lookupTitle(int $obj_id)

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

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

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

◆ showCustomIconsEditing()

ilObjectGUI::showCustomIconsEditing (   $input_colspan = 1,
ilPropertyFormGUI  $form = null,
  $as_section = true 
)
protected

show edit section of custom icons for container

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

1636 : void {
1637 if ($this->settings->get("custom_icons")) {
1638 if ($form) {
1639 $customIcon = $this->custom_icon_factory->getByObjId($this->object->getId(), $this->object->getType());
1640
1641 if ($as_section) {
1642 $title = new ilFormSectionHeaderGUI();
1643 $title->setTitle($this->lng->txt("icon_settings"));
1644 } else {
1645 $title = new ilCustomInputGUI($this->lng->txt("icon_settings"), "");
1646 }
1647 $form->addItem($title);
1648
1649 $caption = $this->lng->txt("cont_custom_icon");
1650 $icon = new ilImageFileInputGUI($caption, "cont_icon");
1651
1652 $icon->setSuffixes($customIcon->getSupportedFileExtensions());
1653 $icon->setUseCache(false);
1654 if ($customIcon->exists()) {
1655 $icon->setImage($customIcon->getFullPath());
1656 } else {
1657 $icon->setImage('');
1658 }
1659 if ($as_section) {
1660 $form->addItem($icon);
1661 } else {
1662 $title->addSubItem($icon);
1663 }
1664 }
1665 }
1666 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

◆ showPossibleSubObjects()

ilObjectGUI::showPossibleSubObjects ( )
protected

show possible sub objects (pull down menu)

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

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

1374 : void
1375 {
1376 if ($this->sub_objects == "") {
1377 $sub_objects = $this->obj_definition->getCreatableSubObjects(
1378 $this->object->getType(),
1380 $this->ref_id
1381 );
1382 } else {
1384 }
1385
1386 $subobj = [];
1387 if (count($sub_objects) > 0) {
1388 foreach ($sub_objects as $row) {
1389 $count = 0;
1390 if ($row["max"] > 0) {
1391 //how many elements are present?
1392 for ($i = 0; $i < count($this->data["ctrl"]); $i++) {
1393 if ($this->data["ctrl"][$i]["type"] == $row["name"]) {
1394 $count++;
1395 }
1396 }
1397 }
1398
1399 if ($row["max"] == "" || $count < $row["max"]) {
1400 $subobj[] = $row["name"];
1401 }
1402 }
1403 }
1404
1405 if (count($subobj) > 0) {
1406 $opts = ilLegacyFormElementsUtil::formSelect(12, "new_type", $subobj);
1407 $this->tpl->setCurrentBlock("add_object");
1408 $this->tpl->setVariable("SELECT_OBJTYPE", $opts);
1409 $this->tpl->setVariable("BTN_NAME", "create");
1410 $this->tpl->setVariable("TXT_ADD", $this->lng->txt("add"));
1411 $this->tpl->parseCurrentBlock();
1412 }
1413 }
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.
$i
Definition: metadata.php:41

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

+ Here is the call graph for this function:

◆ updateCustom()

ilObjectGUI::updateCustom ( ilPropertyFormGUI  $form)
protected

◆ updateObject()

ilObjectGUI::updateObject ( )

updates object entry in object_data

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

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

1014 : void
1015 {
1016 if (!$this->checkPermissionBool("write")) {
1017 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
1018 }
1019
1020 $form = $this->initEditForm();
1021 if ($form->checkInput() && $this->validateCustom($form)) {
1022 $this->object->setTitle($form->getInput("title"));
1023 $this->object->setDescription($form->getInput("desc"));
1024 $this->updateCustom($form);
1025 $this->object->update();
1026
1027 $this->afterUpdate();
1028 return;
1029 }
1030
1031 // display form again to correct errors
1032 $this->tabs_gui->activateTab("settings");
1033 $form->setValuesByPost();
1034 $this->tpl->setContent($form->getHTML());
1035 }
afterUpdate()
Post (successful) object update hook.
updateCustom(ilPropertyFormGUI $form)
Insert custom update form values into object.

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

Referenced by ilObjFileBasedLMGUI\update().

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

◆ validateCustom()

ilObjectGUI::validateCustom ( ilPropertyFormGUI  $form)
protected

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

Reimplemented in ilObjEmployeeTalkGUI, and ilObjPollGUI.

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

1040 : bool
1041 {
1042 return true;
1043 }

◆ viewObject()

ilObjectGUI::viewObject ( )

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

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

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

1306 : void
1307 {
1308 $this->checkPermission('visible') && $this->checkPermission('read');
1309
1310 $this->tabs_gui->activateTab('view');
1311
1313 $this->object->getType(),
1314 $this->object->getRefId(),
1315 $this->object->getId(),
1316 $this->user->getId()
1317 );
1318
1319 if (!$this->withReferences()) {
1320 $this->ctrl->setParameter($this, 'obj_id', $this->obj_id);
1321 }
1322
1323 $itab = new ilAdminSubItemsTableGUI(
1324 $this,
1325 "view",
1326 $this->requested_ref_id,
1327 $this->checkPermissionBool('write')
1328 );
1329
1330 $this->tpl->setContent($itab->getHTML());
1331 }
TableGUI class for sub items listed in repository administration.
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, bool $isCatchupWriteEvents=true, $a_ext_rc=null, $a_ext_time=null)
withReferences()
determines whether objects are referenced or not (got ref ids or not)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)

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

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

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

◆ withReferences()

ilObjectGUI::withReferences ( )

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

Reimplemented in ilObject2GUI.

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

246 : bool
247 {
249 }

References $call_by_reference.

Referenced by viewObject().

+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilObjectGUI::$access
protected

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

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

◆ $admin_mode

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

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

Referenced by getAdminMode().

◆ $call_by_reference

◆ $creation_mode

bool ilObjectGUI::$creation_mode = false
protected

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

Referenced by getCreationMode().

◆ $ctrl

ilCtrl ilObjectGUI::$ctrl
protected

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

Referenced by ilObjCourseReferenceGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), _gotoRepositoryNode(), _gotoRepositoryRoot(), _gotoSharedWorkspaceNode(), ilObjExerciseGUI\addContentSubTabs(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilContainerGUI\addPageTabs(), ilObjExerciseGUI\afterSave(), ilObjSystemFolderGUI\benchmarkObject(), ilObjSystemFolderGUI\benchmarkSubTabs(), ilObjBlogAdministrationGUI\cancel(), ilObjExerciseAdministrationGUI\cancel(), ilObjMediaCastSettingsGUI\cancel(), ilObjPortfolioAdministrationGUI\cancel(), ilObjAwarenessAdministrationGUI\cancel(), ilObjTaggingSettingsGUI\cancel(), ilObjFileBasedLMGUI\cancelCreationObject(), ilObjContentObjectGUI\chapters(), ilObjSkillManagementGUI\confirmedDelete(), ilObjSkillTreeGUI\confirmedDeleteTrees(), ilObjSkillTreeGUI\delete(), ilObjSystemFolderGUI\deleteHeaderTitlesObject(), ilObjSkillManagementGUI\deleteNodes(), ilObjSkillTreeGUI\deleteNodes(), ilObjMediaCastGUI\editCastItemObject(), ilObjContentObjectGUI\editMenuProperties(), ilObjStyleSheetGUI\editObject(), ilObjSkillManagementGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillManagementGUI\editSkillTemplates(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjCategoryGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilContainerReferenceGUI\executeCommand(), ilObjLearningHistorySettingsGUI\executeCommand(), ilObjCommentsSettingsGUI\executeCommand(), ilObjNotesSettingsGUI\executeCommand(), ilObjPersonalWorkspaceSettingsGUI\executeCommand(), ilObjStyleSheetGUI\executeCommand(), ilObjLearningSequenceGUI\forwardByClass(), ilContainerGUI\forwardToPageObject(), ilObjLearningHistorySettingsGUI\getAdminTabs(), ilObjCommentsSettingsGUI\getAdminTabs(), ilObjNotesSettingsGUI\getAdminTabs(), ilObjPersonalWorkspaceSettingsGUI\getAdminTabs(), ilObjStyleSheetGUI\getCloneForm(), ilObjStyleSheetGUI\getCreateForm(), ilObjStyleSheetGUI\getImportForm(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjCategoryGUI\infoScreen(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjPortfolioAdministrationGUI\initAuthorshipForm(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjContentObjectGUI\initMenuForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjSkillTreeGUI\initTreeForm(), ilObjExerciseGUI\listAssignmentsObject(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjContentObjectGUI\proceedDragDrop(), ilObjFileBasedLMGUI\redirectAfterCreation(), ilContainerReferenceGUI\redirectObject(), ilContainerGUI\renderObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillManagementGUI\saveAllTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjExternalToolsSettingsGUI\saveMapsObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjBlogAdministrationGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjWikiGUI\saveSettingsObject(), ilObjDashboardSettingsGUI\saveViewSettings(), ilObjSystemFolderGUI\setGeneralSettingsSubTabs(), ilObjSystemFolderGUI\setServerInfoSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjSystemFolderGUI\setSystemCheckSubTabs(), ilObjSkillTreeGUI\showLocator(), ilObjSkillTreeGUI\showTree(), ilObjSkillManagementGUI\showTree(), ilObjTaggingSettingsGUI\showUsers(), and ilObjFileBasedLMGUI\toFilesystem().

◆ $custom_icon_factory

ilObjectCustomIconFactory ilObjectGUI::$custom_icon_factory
protected

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

◆ $data

ilObjectGUI::$data
protected

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

Referenced by ilObjStudyProgrammeReferenceGUI\__construct(), ilObjObjectFolderGUI\__construct(), ilObjTypeDefinitionGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjSCORMLearningModuleGUI\__construct(), ilObjLearningSequenceAdminGUI\__construct(), ilObjStudyProgrammeAdminGUI\__construct(), ilObjComponentSettingsGUI\__construct(), ilObjForumGUI\__construct(), ilObjIndividualAssessmentGUI\__construct(), ilObjCertificateSettingsGUI\__construct(), __construct(), ilObjChatroomAdminGUI\__construct(), ilObjChatroomGUI\__construct(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjQuestionPoolGUI\buildQuestionBrowserTableGUI(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilObjLTIConsumerGUI\contentSelectionRequest(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilObjSurveyQuestionPoolGUI\exportObject(), ilObjSessionGUI\getAttendanceListUserData(), ilObjLearningSequenceAdminGUI\getForm(), ilObjSystemFolderGUI\getServerStatusInfo(), initDidacticTemplate(), ilObjAssessmentFolderGUI\logAdminObject(), ilObjSessionGUI\materialsObject(), ilObjQuestionPoolGUI\printObject(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjRoleGUI\readRoleProperties(), ilObjTestGUI\removeQuestionsForm(), ilObjContentPageAdministrationGUI\save(), ilObjLearningSequenceAdminGUI\save(), ilObjSkillTreeGUI\save(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjLTIConsumerGUI\saveContentSelection(), ilObjMDSettingsGUI\saveEntry(), ilObjSystemFolderGUI\saveHeaderTitleObject(), ilObjNotificationAdminGUI\saveOSDSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjSystemFolderGUI\showHeaderTitleObject(), ilObjLanguageExtGUI\statisticsObject(), ilObjMDSettingsGUI\updateEntry(), ilObjLinkResourceGUI\updateLinks(), ilCourseContentGUI\updateManagedTimings(), ilCourseContentGUI\updatePersonalTimings(), and ilObjLanguageExtGUI\viewObject().

◆ $error

ilErrorHandling ilObjectGUI::$error
protected

◆ $favourites

ilFavouritesManager ilObjectGUI::$favourites
protected

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

◆ $form_action

◆ $html

◆ $id

int ilObjectGUI::$id
protected

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

Referenced by ilObjContentObjectGUI\__construct(), ilObjStudyProgrammeReferenceGUI\__construct(), ilObjObjectFolderGUI\__construct(), ilObjTypeDefinitionGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjSCORMLearningModuleGUI\__construct(), ilObjLearningSequenceAdminGUI\__construct(), ilObjStudyProgrammeAdminGUI\__construct(), ilObjComponentSettingsGUI\__construct(), ilObjForumGUI\__construct(), ilObjIndividualAssessmentGUI\__construct(), ilObjCertificateSettingsGUI\__construct(), __construct(), ilObjChatroomAdminGUI\__construct(), ilObjChatroomGUI\__construct(), ilObjTestVerificationGUI\__construct(), ilObjLinkResourceGUI\__construct(), ilObjFileServicesGUI\__construct(), ilObject2GUI\__construct(), ilObjCmiXapiVerificationGUI\_goto(), ilObjLTIConsumerVerificationGUI\_goto(), ilObjBibliographicGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjCourseVerificationGUI\_goto(), ilObjPollGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSCORMVerificationGUI\_goto(), ilObjTestVerificationGUI\_goto(), ilObjWorkspaceFolderGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilObjStudyProgrammeGUI\_goto(), ilObjLanguageExtGUI\addNewEntryObject(), ilObjRoleGUI\adoptPermObject(), ilObjAuthSettingsGUI\authSettingsObject(), ilObjTestGUI\buildPageViewToolbar(), ilObjSkillManagementGUI\confirmedDelete(), ilObjSkillTreeGUI\confirmedDelete(), ilObjSkillTreeGUI\confirmedDeleteTrees(), ilObjTestGUI\copyQuestionObject(), ilObjSessionGUI\deleteFilesObject(), ilObjSkillManagementGUI\deleteNodes(), ilObjSkillTreeGUI\deleteNodes(), deleteObject(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilObjEmployeeTalkSeriesGUI\executeCommand(), getCreationFormsHTML(), ilObjLanguageExtGUI\getId(), ilObjLinkResourceGUI\getLinkToListModal(), ilObjTestGUI\getQuestionpoolCreationForm(), ilObjTestGUI\getTargetQuestionpoolForm(), ilObjLearningSequenceGUI\hasAccess(), ilObjLanguageExtGUI\initAddNewEntryForm(), initDidacticTemplate(), ilObjCmiXapiGUI\initMetadata(), ilObjRepositorySettingsGUI\initNewItemGroupForm(), ilObjMediaPoolGUI\insertFromClipboard(), ilObjLearningSequenceGUI\isAccessible(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillManagementGUI\saveAllTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjLanguageExtGUI\saveNewEntryObject(), ilObjTestGUI\saveOrderAndObligationsObject(), ilObjFileServicesGUI\saveSettings(), ilObjBibliographicGUI\showDetails(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), and ilObjObjectFolderGUI\viewObject().

◆ $ilias

ILIAS ilObjectGUI::$ilias
protected

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

Referenced by ilObjTestGUI\executeCommand().

◆ $link_params

string ilObjectGUI::$link_params
protected

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

◆ $lng

ilLanguage ilObjectGUI::$lng
protected

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

Referenced by ilObjSurveyAdministrationGUI\__construct(), ilObjMediaCastGUI\__construct(), ilObjWikiGUI\__construct(), ilObjExternalToolsSettingsGUI\__construct(), ilObjUserGUI\__construct(), ilObjDashboardSettingsGUI\__construct(), ilObjMediaObjectGUI\__construct(), ilObjContentObjectGUI\__construct(), ilObjFileBasedLMGUI\__construct(), ilObjExerciseGUI\__construct(), ilObjLanguageExtGUI\__construct(), ilObjSAHSLearningModuleGUI\__construct(), ilObjTestGUI\__construct(), ilObjOrgUnitGUI\__construct(), ilObjStudyProgrammeGUI\__construct(), ilObjQuestionPoolGUI\__construct(), ilObjSCORM2004LearningModuleGUI\__construct(), ilObjFolderGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjCourseGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjGroupGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjLearningSequenceGUI\_goto(), _gotoRepositoryRoot(), ilObjBadgeAdministrationGUI\activateTypes(), ilObjExerciseGUI\addContentSubTabs(), ilObjTestGUI\addQuestionObject(), ilObjSystemFolderGUI\benchmarkObject(), ilObjSystemFolderGUI\benchmarkSubTabs(), ilObjTestGUI\buildPageViewToolbar(), ilObjQuestionPoolGUI\buildQuestionBrowserTableGUI(), ilObjContentObjectGUI\chapters(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), ilObjSkillTreeGUI\create(), ilObjTestGUI\createQuestionObject(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilObjSystemFolderGUI\deleteHeaderTitlesObject(), ilObjSkillManagementGUI\deleteNodes(), ilObjSkillTreeGUI\deleteNodes(), ilObjContentObjectGUI\editMenuProperties(), ilObjSkillManagementGUI\editSettings(), ilObjBlogAdministrationGUI\editSettings(), ilObjSkillTreeGUI\editSkills(), ilObjSkillManagementGUI\editSkillTemplates(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjTestGUI\executeCommand(), ilContainerGUI\forwardToPageObject(), ilObjPortfolioAdministrationGUI\getAdminTabs(), ilObjLearningHistorySettingsGUI\getAdminTabs(), ilObjCommentsSettingsGUI\getAdminTabs(), ilObjNotesSettingsGUI\getAdminTabs(), ilObjPersonalWorkspaceSettingsGUI\getAdminTabs(), ilObjSkillManagementGUI\getAdminTabs(), ilObjSkillTreeGUI\getAdminTabs(), ilObjMediaCastGUI\getCastItemValues(), ilObjMediaCastSettingsGUI\getForm(), ilObjSystemCheckGUI\getLang(), ilObjExternalToolsSettingsGUI\getMapsForm(), ilObjTestGUI\getQuestionpoolCreationForm(), ilObjSystemFolderGUI\getServerStatusInfo(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjAssessmentFolderGUI\getSettingsTemplateConfig(), ilObjCategoryGUI\getTabs(), ilObjFolderGUI\getTabs(), ilObjFileBasedLMGUI\getTabs(), ilObjRootFolderGUI\getTabs(), ilObjAssessmentFolderGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjSAHSLearningModuleGUI\getTemplate(), ilObjDashboardSettingsGUI\getViewSettingsForm(), ilObjFolderGUI\importFileObject(), ilObjWikiGUI\infoScreen(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjPortfolioAdministrationGUI\initAuthorshipForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjFolderGUI\initEditForm(), initEditForm(), ilObjPrivacySecurityGUI\initErrorMessages(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilObjDashboardSettingsGUI\initForm(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjBlogAdministrationGUI\initFormSettings(), ilObjExerciseAdministrationGUI\initFormSettings(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjSystemFolderGUI\initJavaServerForm(), ilObjContentObjectGUI\initMenuForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjSystemFolderGUI\initServerInfoForm(), ilObjFileAccessSettingsGUI\initSettingsForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjSkillTreeGUI\initTreeForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilObjBadgeAdministrationGUI\listImageTemplates(), ilObjMediaCastGUI\listItemsObject(), ilObjTestGUI\movePageFormObject(), ilObjContentObjectGUI\properties(), ilObjSCORM2004LearningModuleGUI\properties(), ilContainerGUI\renderObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilObjSkillTreeGUI\saveAllTemplateTitles(), ilObjSkillManagementGUI\saveAllTitles(), ilObjSkillTreeGUI\saveAllTitles(), ilObjPortfolioAdministrationGUI\saveAuthorship(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjWikiGUI\saveObject(), ilObjContentObjectGUI\saveProperties(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjWikiGUI\saveSettingsObject(), ilObjDashboardSettingsGUI\saveViewSettings(), ilObjSAHSLearningModuleGUI\setSettingsSubTabs(), ilObjWikiGUI\setSettingsSubTabs(), ilObjDashboardSettingsGUI\setSettingsSubTabs(), ilObjSCORMLearningModuleGUI\setSubTabs(), ilObjFolderGUI\setSubTabs(), ilObjRootFolderGUI\setTitleAndDescription(), ilContainerGUI\showAdministrationPanel(), ilContainerGUI\showLinkListObject(), ilObjFileAccessSettingsGUI\showPreviewRenderers(), ilObjSkillTreeGUI\showTree(), ilObjSkillManagementGUI\showTree(), and ilObjTaggingSettingsGUI\showUsers().

◆ $locator

◆ $maxcount

int ilObjectGUI::$maxcount
protected

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

◆ $notes_service

ILIAS Notes Service ilObjectGUI::$notes_service
protected

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

◆ $obj_definition

ilObjectDefinition ilObjectGUI::$obj_definition
protected

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

◆ $obj_id

◆ $object

◆ $object_service

◆ $omit_locator

bool ilObjectGUI::$omit_locator = false
protected

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

◆ $post_wrapper

ArrayBasedRequestWrapper ilObjectGUI::$post_wrapper
protected

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

◆ $prepare_output

◆ $rbac_admin

ilRbacAdmin ilObjectGUI::$rbac_admin
protected

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

◆ $rbac_review

ilRbacReview ilObjectGUI::$rbac_review
protected

◆ $rbac_system

◆ $ref_id

int ilObjectGUI::$ref_id
protected

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

Referenced by ilObjStyleSheetGUI\__construct(), ilObjUserGUI\__construct(), ilObjRoleTemplateGUI\__construct(), ilObjForumGUI\__construct(), __construct(), ilObjStudyProgrammeGUI\__construct(), ilObjChatroomGUI\_goto(), ilObjChatroomAdminGUI\_goto(), ilObjStudyProgrammeAdminGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjOrgUnitGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjPollGUI\_goto(), ilObjWikiGUI\_goto(), _gotoRepositoryNode(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjIndividualAssessmentGUI\addToNavigationHistory(), ilObjStudyProgrammeGUI\addToNavigationHistory(), ilObjLearningSequenceGUI\checkLPAccess(), checkPermission(), checkPermissionBool(), ilObjLTIConsumerGUI\contentSelectionRequest(), ilObjLTIConsumerGUI\contentSelectionResponse(), ilObjTestGUI\createQuestionPoolAndCopyObject(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilObjGroupGUI\executeCommand(), getRefId(), ilObjItemGroupGUI\gotoParent(), ilObject2GUI\isVisible(), isVisible(), ilObjAssessmentFolderGUI\logAdminObject(), ilObjQuestionPoolGUI\questionsObject(), ilObjOrgUnitGUI\redirectToRefId(), redirectToRefId(), ilObjTypeDefinitionGUI\saveObject(), ilObjOrgUnitGUI\setContentSubTabs(), ilOrgUnitExtensionGUI\setLocator(), ilObject2GUI\setLocator(), setLocator(), ilContainerGUI\showAdministrationPanel(), ilCourseContentGUI\showStartObjects(), ilCourseContentGUI\updateManagedTimings(), and ilCourseContentGUI\updatePersonalTimings().

◆ $refinery

Factory ilObjectGUI::$refinery
protected

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

◆ $request

◆ $request_wrapper

RequestWrapper ilObjectGUI::$request_wrapper
protected

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

◆ $requested_crtcb

int ilObjectGUI::$requested_crtcb = 0
protected

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

◆ $requested_crtptrefid

int ilObjectGUI::$requested_crtptrefid = 0
protected

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

Referenced by putObjectInTree().

◆ $requested_new_type

string ilObjectGUI::$requested_new_type = ""
protected

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

Referenced by createObject(), and importFileObject().

◆ $requested_ref_id

◆ $retriever

ilObjectRequestRetriever ilObjectGUI::$retriever
private

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

◆ $return_location

array ilObjectGUI::$return_location = []
protected

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

◆ $settings

ilSetting ilObjectGUI::$settings
protected

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

Referenced by ilObjMediaCastGUI\__construct(), ilObjHelpSettingsGUI\activateModule(), ilObjPortfolioAdministrationGUI\addToExternalSettingsForm(), ilObjRepositorySettingsGUI\addToExternalSettingsForm(), ilObjCategoryGUI\afterSave(), ilObjLearningSequenceGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjSystemFolderGUI\benchmarkObject(), ilObjSystemFolderGUI\checkObject(), ilObjHelpSettingsGUI\deactivateModule(), ilObjHelpSettingsGUI\editSettings(), ilObjBlogAdministrationGUI\editSettings(), ilObjECSSettingsGUI\executeCommand(), ilContainerGUI\getContainerPageHTML(), ilObjNewsSettingsGUI\getSettingsForm(), ilObjPersonalWorkspaceSettingsGUI\getSettingsForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjCourseGUI\initEditForm(), ilObjPortfolioAdministrationGUI\initFormSettings(), ilObjSystemFolderGUI\initJavaServerForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjSystemFolderGUI\initServerInfoForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjSCORM2004LearningModuleGUI\properties(), ilContainerGUI\renderObject(), ilObjContentPageAdministrationGUI\save(), ilObjLearningSequenceAdminGUI\save(), ilObjSearchSettingsGUI\saveAdvancedLuceneSettingsObject(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjSystemFolderGUI\saveCheckCronObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjRepositorySettingsGUI\saveModules(), ilObjRepositorySettingsGUI\saveNewItemGroupOrder(), ilObjNotificationAdminGUI\saveOSDSettings(), ilObjContentObjectGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjPersonalWorkspaceSettingsGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjWikiGUI\saveSettingsObject(), ilObjHelpSettingsGUI\setMode(), ilObjNotificationAdminGUI\showOSDSettings(), ilObjCourseGUI\updateObject(), and ilObjEmployeeTalkGUI\validateCustom().

◆ $sub_objects

string ilObjectGUI::$sub_objects = ""
protected

◆ $tabs_gui

◆ $target_frame

array ilObjectGUI::$target_frame = []
protected

◆ $tmp_import_dir

string ilObjectGUI::$tmp_import_dir
protected

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

◆ $toolbar

◆ $tpl

ilGlobalTemplateInterface ilObjectGUI::$tpl
protected

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

Referenced by ilObjMediaCastGUI\addCastItemObject(), ilObjIndividualAssessmentGUI\addMemberDataToInfo(), ilObjLanguageExtGUI\addNewEntryObject(), ilObjTestGUI\addQuestionObject(), ilObjSystemFolderGUI\benchmarkObject(), ilObjStyleSheetGUI\createObject(), ilObjSkillManagementGUI\deleteNodes(), ilObjSkillTreeGUI\deleteNodes(), ilObjMediaCastGUI\editCastItemObject(), ilObjPortfolioAdministrationGUI\editDeclarationOfAuthorship(), ilObjTaggingSettingsGUI\editForbiddenTags(), ilObjExternalToolsSettingsGUI\editMapsObject(), ilObjContentObjectGUI\editMenuProperties(), ilObjWikiGUI\editSettingsObject(), ilObjSkillTreeGUI\editSkills(), ilObjSkillManagementGUI\editSkillTemplates(), ilObjSkillTreeGUI\editSkillTemplates(), ilObjLearningSequenceGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilContainerGUI\executeCommand(), getDidacticTemplateVar(), ilObjContentObjectGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importQuestionsObject(), ilObjStyleSheetGUI\includeCSS(), ilObjCourseGUI\infoScreen(), ilObjWikiGUI\listContributorsObject(), ilObjMediaCastGUI\listItemsObject(), ilObjTestGUI\movePageFormObject(), ilObjFileBasedLMGUI\properties(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjStyleSheetGUI\propertiesObject(), ilObjSkillTreeGUI\save(), ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjMediaCastGUI\saveCastItemObject(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjSystemFolderGUI\saveJavaServerObject(), ilObjWikiGUI\saveObject(), ilObjFileBasedLMGUI\saveProperties(), setLocator(), ilObjAdvancedEditingGUI\settingsObject(), ilObjSystemFolderGUI\showBasicSettingsObject(), ilObjSystemFolderGUI\showContactInformationObject(), ilObjSystemFolderGUI\showDbBenchResults(), ilObjSystemFolderGUI\showHeaderTitleObject(), ilObjSystemFolderGUI\showJavaServerObject(), ilContainerGUI\showLinkListObject(), ilContainerGUI\showPermanentLink(), ilObjFileAccessSettingsGUI\showPreviewRenderers(), ilObjSkillTreeGUI\showTree(), ilObjSkillManagementGUI\showTree(), ilObjTaggingSettingsGUI\showUsers(), ilObjSurveyQuestionPoolGUI\uploadQuestionsObject(), and ilObjLanguageExtGUI\viewObject().

◆ $tree

◆ $type

◆ $user

◆ ADMIN_MODE_NONE

const ilObjectGUI::ADMIN_MODE_NONE = ""

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

◆ ADMIN_MODE_REPOSITORY

const ilObjectGUI::ADMIN_MODE_REPOSITORY = "repository"

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

◆ ADMIN_MODE_SETTINGS

const ilObjectGUI::ADMIN_MODE_SETTINGS = "settings"

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

◆ ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION

const ilObjectGUI::ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
Initial value:
= [
'<b>',
'<i>',
'<strong>',
'<em>',
'<sub>',
'<sup>',
'<pre>',
'<strike>',
'<bdo>'
]

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

Referenced by ilObjectOwnershipManagementTableGUI\fillRow(), ilObjTestGUI\infoScreen(), ilObjTestGUI\printobject(), ilObjLTIConsumer\registerClient(), ilObjTestGUI\reviewobject(), ilObjectListGUI\setDescription(), and ilObjectListGUI\setTitle().

◆ CFORM_CLONE

◆ CFORM_IMPORT

◆ CFORM_NEW

◆ UPLOAD_TYPE_LOCAL

const ilObjectGUI::UPLOAD_TYPE_LOCAL = 1

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

Referenced by importFileObject().

◆ UPLOAD_TYPE_UPLOAD_DIRECTORY

const ilObjectGUI::UPLOAD_TYPE_UPLOAD_DIRECTORY = 2

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


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