ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObject2GUI Class Reference

New implementation of ilObjectGUI. More...

+ Inheritance diagram for ilObject2GUI:
+ Collaboration diagram for ilObject2GUI:

Public Member Functions

 __construct (int $id=0, int $id_type=self::REPOSITORY_NODE_ID, int $parent_node_id=0)
 
 executeCommand ()
 execute command More...
 
 getIdType ()
 
 delete ()
 Display delete confirmation form (repository/workspace switch) More...
 
 confirmedDelete ()
 Delete objects (repository/workspace switch) More...
 
 getHTML ()
 
 withReferences ()
 Final/Private declaration of unchanged parent methods. More...
 
 setCreationMode (bool $mode=true)
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 isVisible (int $ref_id, string $type)
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 view ()
 view object content (repository/workspace switch) More...
 
 getType ()
 Functions that must be overwritten. More...
 
 create ()
 CRUD. More...
 
 save ()
 
 edit ()
 
 update ()
 
 cancel ()
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
- Public Member Functions inherited from ilObjectGUI
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static handleAfterSaveCallback (ilObject $obj, ?int $callback_ref_id)
 After creation callback. More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Data Fields

const OBJECT_ID = 0
 
const REPOSITORY_NODE_ID = 1
 
const WORKSPACE_NODE_ID = 2
 
const REPOSITORY_OBJECT_ID = 3
 
const WORKSPACE_OBJECT_ID = 4
 
const PORTFOLIO_OBJECT_ID = 5
 
- Data Fields inherited from ilObjectGUI
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Protected Member Functions

 afterConstructor ()
 Do anything that should be done after constructor in here. More...
 
 assignObject ()
 create object instance as internal property (repository/workspace switch) More...
 
 getAccessHandler ()
 
 setLocator ()
 set Locator More...
 
 deleteConfirmedObjects ()
 Delete objects (workspace specific) This should probably be moved elsewhere as done with RepUtil. More...
 
 setTitleAndDescription ()
 
 omitLocator (bool $omit=true)
 
 getTargetFrame (string $cmd, string $target_frame="")
 
 setTargetFrame (string $cmd, string $target_frame)
 
 getCenterColumnHTML ()
 
 getRightColumnHTML ()
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 showPossibleSubObjects ()
 
 redirectToRefId (int $ref_id, string $cmd="")
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation (string $cmd, string $location="")
 Deprecated functions. More...
 
 setReturnLocation (string $cmd, string $location)
 
 showActions ()
 
 getTabs ()
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $node_id=null)
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 redrawHeaderAction ()
 Updating icons after ajax call. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ilFavouritesManager $favourites
 
ilErrorHandling $error
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilToolbarGUI $toolbar
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
int $request_ref_id
 
int $id_type
 
int $parent_id
 
string $type
 
string $html
 
int $object_id
 
int $node_id = null
 
array $creation_forms = []
 
 $access_handler
 
- Protected Attributes inherited from ilObjectGUI
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
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Private Attributes

ilObjectRequestRetriever $retriever
 

Detailed Description

New implementation of ilObjectGUI.

(beta)

Differences to the ilObject implementation:

  • no $this->tree anymore
  • no $this->formaction anymore
  • no $this->return_location anymore
  • no $this->target_frame anymore
  • no $this->actions anymore
  • no $this->sub_objects anymore
  • no $this->data anymore
  • no $this->prepare_output anymore

All new modules should derive from this class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

Definition at line 43 of file class.ilObject2GUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObject2GUI::__construct ( int  $id = 0,
int  $id_type = self::REPOSITORY_NODE_ID,
int  $parent_node_id = 0 
)

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

References $access, $DIC, ilObjectGUI\$id, $id_type, $object_id, $params, $refinery, ilObjectGUI\$tree, ilObject\_lookupObjectId(), ILIAS\Repository\access(), afterConstructor(), assignObject(), ILIAS\Repository\ctrl(), getType(), ILIAS\Repository\html(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ilWorkspaceTree\lookupObjectId(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

86  {
87  global $DIC;
88 
89  $this->obj_definition = $DIC["objDefinition"];
90  $this->tpl = $DIC["tpl"];
91  $this->ctrl = $DIC["ilCtrl"];
92  $this->lng = $DIC["lng"];
93  $this->tabs_gui = $DIC["ilTabs"];
94  $this->object_service = $DIC->object();
95  $this->favourites = new ilFavouritesManager();
96  $this->error = $DIC['ilErr'];
97  $this->locator = $DIC["ilLocator"];
98  $this->user = $DIC->user();
99  $this->access = $DIC->access();
100  $this->toolbar = $DIC->toolbar();
101  $this->request = $DIC->http()->request();
102  $this->post_wrapper = $DIC->http()->wrapper()->post();
103  $this->request_wrapper = $DIC->http()->wrapper()->query();
104  $this->refinery = $DIC->refinery();
105  $this->retriever = new ilObjectRequestRetriever($DIC->http()->wrapper(), $this->refinery);
106  $this->rbac_admin = $DIC->rbac()->admin();
107  $this->rbac_system = $DIC->rbac()->system();
108  $this->rbac_review = $DIC->rbac()->review();
109  $this->ui_factory = $DIC['ui.factory'];
110  $this->ui_renderer = $DIC['ui.renderer'];
111  $this->settings = $DIC['ilSetting'];
112  $this->temp_file_system = $DIC->filesystem()->temp();
113 
114  $tree = $DIC["tree"];
115 
116  $this->requested_ref_id = 0;
117  if ($this->request_wrapper->has("ref_id")) {
118  $this->requested_ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
119  }
120  $this->id_type = $id_type;
121  $this->parent_id = $parent_node_id;
122  $this->type = $this->getType();
123  $this->html = "";
124  $this->notes_service = $DIC->notes();
125 
126  $this->requested_new_type = '';
127  if ($this->request_wrapper->has("new_type")) {
128  $this->requested_new_type = $this->request_wrapper->retrieve(
129  "new_type",
130  $this->refinery->kindlyTo()->string()
131  );
132  } elseif ($this->post_wrapper->has("new_type")) {
133  $this->requested_new_type = $this->post_wrapper->retrieve(
134  "new_type",
135  $this->refinery->kindlyTo()->string()
136  );
137  }
138 
139  $params = [];
140  switch ($this->id_type) {
141  case self::REPOSITORY_NODE_ID:
142  $this->node_id = $id;
143  $this->object_id = ilObject::_lookupObjectId($this->node_id);
144  $this->tree = $tree;
145  $this->access_handler = $this->access;
146  $this->call_by_reference = true; // needed for prepareOutput()
147  $params[] = "ref_id";
148  break;
149 
150  case self::REPOSITORY_OBJECT_ID:
151  $this->object_id = $id;
152  $this->tree = $tree;
153  $this->access_handler = $this->access;
154  $params[] = "obj_id"; // ???
155  break;
156 
157  case self::WORKSPACE_NODE_ID:
158  $ilUser = $DIC["ilUser"];
159  $this->node_id = $id;
160  $this->tree = new ilWorkspaceTree($ilUser->getId());
161  $this->object_id = $this->tree->lookupObjectId($this->node_id);
162  $this->access_handler = new ilWorkspaceAccessHandler($this->tree);
163  $params[] = "wsp_id";
164  break;
165 
166  case self::WORKSPACE_OBJECT_ID:
167  $ilUser = $DIC["ilUser"];
168  $this->object_id = $id;
169  $this->tree = new ilWorkspaceTree($ilUser->getId());
170  $this->access_handler = new ilWorkspaceAccessHandler($this->tree);
171  $params[] = "obj_id"; // ???
172  break;
173 
174  case self::PORTFOLIO_OBJECT_ID:
175  $this->object_id = $id;
176  $this->access_handler = new ilPortfolioAccessHandler();
177  $params[] = "prt_id";
178  break;
179 
180  case self::OBJECT_ID:
181  $this->object_id = $id;
182  $this->access_handler = new ilDummyAccessHandler();
183  $params[] = "obj_id";
184  break;
185  }
186  $this->ctrl->saveParameter($this, $params);
187 
188 
189 
190  // old stuff for legacy code (obsolete?)
191  if (!$this->object_id) {
192  $this->creation_mode = true;
193  }
194  if ($this->node_id) {
195  // add parent node id if missing
196  if (!$this->parent_id && $this->tree) {
197  $this->parent_id = $this->tree->getParentId($this->node_id);
198  }
199  }
200  $this->ref_id = $this->node_id ?? 0;
201  $this->obj_id = $this->object_id;
202 
203  $this->assignObject();
204 
205  // set context
206  if (is_object($this->object)) {
207  $this->ctrl->setContextObject($this->object->getId(), $this->object->getType());
208  }
209 
210  $this->afterConstructor();
211  }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Manages favourites, currently the interface for other components, needs discussion.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getType()
Functions that must be overwritten.
global $DIC
Definition: shib_login.php:22
static _lookupObjectId(int $ref_id)
Base class for all sub item list gui's.
lookupObjectId(int $a_node_id)
Get object id for node id.
Access handler for portfolio NOTE: This file needs to stay in the classes directory, WAC will be confused otherwise.
afterConstructor()
Do anything that should be done after constructor in here.
assignObject()
create object instance as internal property (repository/workspace switch)
ilAccessHandler $access
+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminLocatorItems()

ilObject2GUI::addAdminLocatorItems ( bool  $do_not_add_object = false)
finalprotected

Definition at line 510 of file class.ilObject2GUI.php.

Referenced by ilObjectPluginGUI\executeCommand().

510  : void
511  {
512  parent::addAdminLocatorItems($do_not_add_object);
513  }
+ Here is the caller graph for this function:

◆ addLocatorItems()

ilObject2GUI::addLocatorItems ( )
protected

Functions to be overwritten.

Definition at line 601 of file class.ilObject2GUI.php.

References getType().

Referenced by setLocator().

601  : void
602  {
603  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterConstructor()

ilObject2GUI::afterConstructor ( )
protected

Do anything that should be done after constructor in here.

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

Referenced by __construct().

216  : void
217  {
218  }
+ Here is the caller graph for this function:

◆ assignObject()

ilObject2GUI::assignObject ( )
finalprotected

create object instance as internal property (repository/workspace switch)

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

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

Referenced by ilObjAdministrativeNotificationGUI\__construct(), ilObjMainMenuGUI\__construct(), and __construct().

260  : void
261  {
262  if ($this->object_id != 0) {
263  switch ($this->id_type) {
264  case self::OBJECT_ID:
265  case self::REPOSITORY_OBJECT_ID:
266  case self::WORKSPACE_OBJECT_ID:
267  case self::PORTFOLIO_OBJECT_ID:
268  $this->object = ilObjectFactory::getInstanceByObjId($this->object_id);
269  break;
270 
271  case self::REPOSITORY_NODE_ID:
272  $this->object = ilObjectFactory::getInstanceByRefId($this->node_id);
273  break;
274 
275  case self::WORKSPACE_NODE_ID:
276  // to be discussed
277  $this->object = ilObjectFactory::getInstanceByObjId($this->object_id);
278  break;
279  }
280  }
281  }
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancel()

ilObject2GUI::cancel ( )

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

629  : void
630  {
631  parent::cancelObject();
632  }

◆ checkPermission()

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

Definition at line 490 of file class.ilObject2GUI.php.

References ilObjectGUI\$ref_id.

Referenced by ilObjHelpSettingsGUI\activateModule(), ilObjLinkResourceGUI\addLink(), ilObjMediaPoolGUI\allMedia(), ilObjMediaPoolGUI\bulkUpload(), ilObjLinkResourceGUI\confirmDeleteLink(), ilObjHelpSettingsGUI\confirmHelpModulesDeletion(), ilObjMediaPoolGUI\confirmRemove(), ilObjMediaPoolGUI\copyToClipboard(), ilObjMediaPoolGUI\createFolderForm(), ilObjLinkResourceGUI\deactivateLink(), ilObjHelpSettingsGUI\deactivateModule(), ilObjHelpSettingsGUI\deleteHelpModules(), ilObjLinkResourceGUI\deleteLinks(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilObjMediaPoolGUI\editFolder(), ilObjLinkResourceGUI\editLink(), ilObjMediaPoolGUI\editTitlesAndDescriptions(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilObjPortfolioGUI\executeCommand(), ilObjLinkResourceGUI\executeCommand(), ilObjDataCollectionGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjectPluginGUI\infoScreen(), ilObjPortfolioTemplateGUI\infoScreenForward(), ilObjDataCollectionGUI\infoScreenForward(), ilObjBlogGUI\infoScreenForward(), ilObjLinkResourceGUI\infoScreenForward(), ilObjMediaPoolGUI\insertFromClipboard(), ilObjItemGroupGUI\listMaterials(), ilObjMediaPoolGUI\listMedia(), ilObjLinkResourceGUI\manage(), ilObjMediaPoolGUI\openClipboard(), ilObjMediaPoolGUI\performBulkUpload(), ilObjMediaPoolGUI\remove(), ilObjLinkResourceGUI\saveAddLink(), ilObjContactAdministrationGUI\saveConfigurationForm(), ilObjMediaPoolGUI\saveFolder(), ilObjItemGroupGUI\saveItemAssignment(), ilObjLinkResourceGUI\saveLinkList(), ilObjHelpSettingsGUI\saveOrdering(), ilObjLinkResourceGUI\saveSorting(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilObjMediaPoolGUI\selectUploadDirFiles(), ilObjHelpSettingsGUI\setMode(), ilObjContentPageGUI\setTabs(), ilObjLinkResourceGUI\settings(), ilObjLinkResourceGUI\showLinks(), ilObjMediaPoolGUI\showMedia(), ilObjMediaPoolGUI\showPreview(), ilObjLinkResourceGUI\sort(), ilObjMediaPoolGUI\updateFolder(), ilObjLinkResourceGUI\updateLinks(), ilObjContentPageGUI\view(), and ilObjLinkResourceGUI\view().

495  : void {
496  parent::checkPermission($perm, $cmd, $type, $ref_id);
497  }
+ Here is the caller graph for this function:

◆ checkPermissionBool()

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

Definition at line 713 of file class.ilObject2GUI.php.

References $node_id, $parent_id, getAccessHandler(), ILIAS\Repository\object(), and ILIAS\Repository\user().

Referenced by ilObjLinkResourceGUI\activateTabs(), ilObjWorkspaceFolderGUI\addContentSubTabs(), ilObjBlogGUI\addContributor(), ilObjContentPageGUI\addToNavigationHistory(), ilObjPollGUI\confirmDeleteAllVotes(), ilObjBlogGUI\contributors(), ilObjWorkspaceFolderGUI\cut(), ilObjBlogGUI\deactivateAdmin(), ilObjPollGUI\deleteAllVotes(), ilObjWorkspaceFolderGUI\deleteConfirmation(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilObjPortfolioBaseGUI\determinePageCall(), ilObjItemGroupGUI\edit(), ilObjDataCollectionGUI\edit(), ilRemoteObjectBaseGUI\editObject(), ilObjBibliographicGUI\editObject(), ilObjHelpSettingsGUI\editSettings(), ilRemoteObjectBaseGUI\executeCommand(), ilObjLegalNoticeGUI\executeCommand(), ilObjItemGroupGUI\executeCommand(), ilObjDataCollectionGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjContactAdministrationGUI\getAdminTabs(), ilObjHelpSettingsGUI\getAdminTabs(), ilObjWikiSettingsGUI\getAdminTabs(), ilObjContactAdministrationGUI\getConfigurationForm(), ilObjContentPageGUI\getContent(), ilObjPortfolioTemplateGUI\infoScreenForward(), ilObjDataCollectionGUI\infoScreenForward(), ilObjContentPageGUI\infoScreenForward(), ilObjCmiXapiGUI\infoScreenForward(), ilObjBlogGUI\infoScreenForward(), ilObjLTIConsumerGUI\infoScreenForward(), ilObjLinkResourceGUI\infoScreenForward(), ilObjWikiSettingsGUI\initForm(), ilObjBlogGUI\isAdmin(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilObjContentPageGUI\populateContentToolbar(), ilObjPortfolioTemplateGUI\preview(), ilObjBlogGUI\preview(), ilObjPollGUI\render(), ilObjBlogGUI\render(), ilObjContentPageGUI\renderHeaderActions(), ilObjItemGroupGUI\save(), ilObjLinkResourceGUI\saveObject(), ilObjBibliographicGUI\saveObject(), ilObjPortfolioBaseGUI\savePage(), ilObjPortfolioBaseGUI\savePortfolioPagesOrdering(), ilObjWikiSettingsGUI\saveSettings(), ilObjHelpSettingsGUI\setMode(), ilObjContentPageGUI\setSettingsSubTabs(), ilRemoteObjectBaseGUI\setTabs(), ilObjContentPageGUI\setTabs(), ilObjPortfolioTemplateGUI\setTabs(), ilObjPollGUI\setTabs(), ilObjBlogGUI\setTabs(), setTabs(), ilObjLinkResourceGUI\setTabs(), ilObjPortfolioBaseGUI\showEditButton(), ilObjPollGUI\showParticipants(), ilObjPollGUI\showParticipantVotes(), ilObjLinkResourceGUI\showToolbar(), ilObjDataCollectionGUI\update(), ilRemoteObjectBaseGUI\updateObject(), ilObjHelpSettingsGUI\uploadHelpFile(), and ilObjPortfolioBaseGUI\view().

718  : bool {
719  if ($perm == "create") {
720  if (!$node_id) {
722  }
723  if ($node_id) {
724  return $this->getAccessHandler()->checkAccess($perm . "_" . $type, $cmd, $node_id);
725  }
726  } else {
727  if (!$node_id) {
729  }
730  if ($node_id) {
731  return $this->getAccessHandler()->checkAccess($perm, $cmd, $node_id);
732  }
733  }
734 
735  // if we do not have a node id, check if current user is owner
736  if ($this->obj_id && $this->object->getOwner() == $this->user->getId()) {
737  return true;
738  }
739  return false;
740  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedDelete()

ilObject2GUI::confirmedDelete ( )

Delete objects (repository/workspace switch)

Definition at line 367 of file class.ilObject2GUI.php.

References deleteConfirmedObjects().

367  : void
368  {
369  switch ($this->id_type) {
370  case self::REPOSITORY_NODE_ID:
371  case self::REPOSITORY_OBJECT_ID:
372  parent::confirmedDeleteObject();
373 
374  // no break
375  case self::WORKSPACE_NODE_ID:
376  case self::WORKSPACE_OBJECT_ID:
377  $this->deleteConfirmedObjects();
378 
379  // no break
380  case self::OBJECT_ID:
381  case self::PORTFOLIO_OBJECT_ID:
382  // :TODO: should this ever occur?
383  break;
384  }
385  }
deleteConfirmedObjects()
Delete objects (workspace specific) This should probably be moved elsewhere as done with RepUtil...
+ Here is the call graph for this function:

◆ create()

ilObject2GUI::create ( )

CRUD.

Definition at line 613 of file class.ilObject2GUI.php.

Referenced by ilObjTaxonomyGUI\createAssignedTaxonomy().

613  : void
614  {
615  parent::createObject();
616  }
+ Here is the caller graph for this function:

◆ delete()

ilObject2GUI::delete ( )

Display delete confirmation form (repository/workspace switch)

Definition at line 344 of file class.ilObject2GUI.php.

344  : void
345  {
346  switch ($this->id_type) {
347  case self::REPOSITORY_NODE_ID:
348  case self::REPOSITORY_OBJECT_ID:
349  parent::deleteObject();
350 
351  // no break
352  case self::WORKSPACE_NODE_ID:
353  case self::WORKSPACE_OBJECT_ID:
354  $this->deleteConfirmation();
355 
356  // no break
357  case self::OBJECT_ID:
358  case self::PORTFOLIO_OBJECT_ID:
359  // :TODO: should this ever occur?
360  break;
361  }
362  }

◆ deleteConfirmedObjects()

ilObject2GUI::deleteConfirmedObjects ( )
protected

Delete objects (workspace specific) This should probably be moved elsewhere as done with RepUtil.

Definition at line 391 of file class.ilObject2GUI.php.

References $node_id, ilObjectGUI\$object, ILIAS\Repository\ctrl(), ilObject\delete(), getAccessHandler(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

Referenced by confirmedDelete().

391  : void
392  {
393  if (!$this->post_wrapper->has("id")) {
394  $this->tpl->setOnScreenMessage("failure", $this->lng->txt("no_checkbox"), true);
395  $this->ctrl->redirect($this, "");
396  return;
397  }
398 
399  $ids = $this->post_wrapper->retrieve(
400  "id",
401  $this->refinery->kindlyTo()->listOf($this->refinery->kindlyTo()->int())
402  );
403 
404  if (count($ids) == 0) {
405  $this->tpl->setOnScreenMessage("failure", $this->lng->txt("no_checkbox"), true);
406  $this->ctrl->redirect($this, "");
407  return;
408  }
409 
410  // #18797 - because of parent/child relations gather all nodes first
411  $del_nodes = [];
412  foreach ($ids as $node_id) {
413  $del_nodes[$node_id] = $this->tree->getNodeData($node_id);
414  }
415 
416  foreach ($del_nodes as $node_id => $node) {
417  $this->tree->deleteReference($node_id);
418  if ($this->tree->isInTree($node_id)) {
419  $this->tree->deleteTree($node);
420  }
421 
422  $this->getAccessHandler()->removePermission($node_id);
423 
424  $object = ilObjectFactory::getInstanceByObjId((int) $node["obj_id"], false);
425  if ($object) {
426  $object->delete();
427  }
428  }
429 
430  $this->tpl->setOnScreenMessage("success", $this->lng->txt("msg_removed"), true);
431  $this->ctrl->redirect($this, "");
432  }
delete()
delete object or referenced object (in the case of a referenced object, object data is only deleted i...
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ edit()

ilObject2GUI::edit ( )

Definition at line 621 of file class.ilObject2GUI.php.

621  : void
622  {
623  parent::editObject();
624  }

◆ executeCommand()

ilObject2GUI::executeCommand ( )

execute command

Definition at line 223 of file class.ilObject2GUI.php.

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

Referenced by ilObjCmiXapiGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjFileGUI\getParentId(), and ilObjContentPageGUI\setTabs().

223  : void
224  {
225  $next_class = $this->ctrl->getNextClass($this);
226  $cmd = $this->ctrl->getCmd();
227 
228  $this->prepareOutput();
229 
230  switch ($next_class) {
231  case "ilworkspaceaccessgui":
232  if ($this->node_id) {
233  $this->tabs_gui->activateTab("id_permissions");
234  $wspacc = new ilWorkspaceAccessGUI($this->node_id, $this->getAccessHandler());
235  $this->ctrl->forwardCommand($wspacc);
236  } else {
237  if (!$cmd) {
238  $cmd = "render";
239  }
240  $this->$cmd();
241  }
242  break;
243 
244  default:
245  if (!$cmd) {
246  $cmd = "render";
247  }
248  $this->$cmd();
249  }
250  }
prepareOutput(bool $show_sub_objects=true)
ACL access handler GUI.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAccessHandler()

◆ getCenterColumnHTML()

ilObject2GUI::getCenterColumnHTML ( )
finalprotected

Definition at line 478 of file class.ilObject2GUI.php.

478  : string
479  {
480  return parent::getCenterColumnHTML();
481  }

◆ getCreationMode()

◆ getHTML()

ilObject2GUI::getHTML ( )

Definition at line 434 of file class.ilObject2GUI.php.

434  : string
435  {
436  return parent::getHTML();
437  }

◆ getIdType()

ilObject2GUI::getIdType ( )

Definition at line 252 of file class.ilObject2GUI.php.

References $id_type.

Referenced by ilObjFileAbstractZipProcessor\__construct(), and ilObjLinkResourceGUI\executeCommand().

252  : int
253  {
254  return $this->id_type;
255  }
+ Here is the caller graph for this function:

◆ getReturnLocation()

ilObject2GUI::getReturnLocation ( string  $cmd,
string  $location = "" 
)
finalprotected

Deprecated functions.

Definition at line 581 of file class.ilObject2GUI.php.

581  : string
582  {
583  die("ilObject2GUI::getReturnLocation() is deprecated.");
584  }

◆ getRightColumnHTML()

ilObject2GUI::getRightColumnHTML ( )
finalprotected

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

482  : string
483  {
484  return parent::getRightColumnHTML();
485  }

◆ getTabs()

ilObject2GUI::getTabs ( )
finalprotected

Definition at line 593 of file class.ilObject2GUI.php.

593  : void
594  {
595  die("ilObject2GUI::getTabs() is deprecated.");
596  }

◆ getTargetFrame()

ilObject2GUI::getTargetFrame ( string  $cmd,
string  $target_frame = "" 
)
finalprotected

Definition at line 466 of file class.ilObject2GUI.php.

References ilObjectGUI\$target_frame.

466  : string
467  {
468  return parent::getTargetFrame($cmd, $target_frame);
469  }

◆ getType()

◆ handleAfterSaveCallback()

static ilObject2GUI::handleAfterSaveCallback ( ilObject  $obj,
?int  $callback_ref_id 
)
static

After creation callback.

Definition at line 695 of file class.ilObject2GUI.php.

References $DIC, ilObject\_lookupType(), ILIAS\Repository\int(), and null.

696  {
697  global $DIC;
698  $objDefinition = $DIC["objDefinition"];
699 
700  $callback_ref_id = (int) $callback_ref_id;
701  if ($callback_ref_id) {
702  $callback_type = ilObject::_lookupType($callback_ref_id, true);
703  $class_name = "ilObj" . $objDefinition->getClassName($callback_type) . "GUI";
704  if (strtolower($class_name) == "ilobjitemgroupgui") {
705  $callback_obj = new $class_name($callback_ref_id);
706  } else {
707  $callback_obj = new $class_name(null, $callback_ref_id, true, false);
708  }
709  $callback_obj->afterSaveCallback($obj);
710  }
711  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:

◆ initHeaderAction()

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

Add header action menu.

Definition at line 745 of file class.ilObject2GUI.php.

References ILIAS\Repository\ctrl(), getAccessHandler(), getType(), ilObjectListGUI\prepareJsLinks(), and ilCommonActionDispatcherGUI\TYPE_WORKSPACE.

745  : ?ilObjectListGUI
746  {
747  if ($this->id_type == self::WORKSPACE_NODE_ID) {
748  if (!$this->creation_mode && $this->object_id) {
749  $dispatcher = new ilCommonActionDispatcherGUI(
751  $this->getAccessHandler(),
752  $this->getType(),
753  $this->node_id,
754  $this->object_id
755  );
756 
757  $dispatcher->setSubObject($sub_type, $sub_id);
758 
760  $this->ctrl->getLinkTarget($this, "redrawHeaderAction", "", true),
761  "",
762  $this->ctrl->getLinkTargetByClass(["ilcommonactiondispatchergui", "iltagginggui"], "")
763  );
764 
765  $lg = $dispatcher->initHeaderAction();
766 
767  if (is_object($lg)) {
768  // to enable add to desktop / remove from desktop
769  if ($this instanceof ilDesktopItemHandling) {
770  $lg->setContainerObject($this);
771  }
772 
773  // for activation checks see ilObjectGUI
774  // $lg->enableComments(true);
775  $lg->enableNotes(true);
776  // $lg->enableTags(true);
777  }
778 
779  return $lg;
780  }
781  }
782 
783  return parent::initHeaderAction($sub_type, $sub_id);
784  }
getType()
Functions that must be overwritten.
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ?ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
Class ilCommonActionDispatcherGUI.
+ Here is the call graph for this function:

◆ isVisible()

ilObject2GUI::isVisible ( int  $ref_id,
string  $type 
)
final

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

References ILIAS\GlobalScreen\Scope\isVisible().

+ Here is the call graph for this function:

◆ omitLocator()

ilObject2GUI::omitLocator ( bool  $omit = true)
finalprotected

Definition at line 462 of file class.ilObject2GUI.php.

462  : void
463  {
464  parent::omitLocator($omit);
465  }

◆ prepareOutput()

◆ putObjectInTree()

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

Add object to tree at given position.

Definition at line 637 of file class.ilObject2GUI.php.

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

Referenced by ilObjLTIConsumerGUI\createNewObject(), ilObjExerciseVerificationGUI\save(), ilObjCmiXapiVerificationGUI\save(), ilObjSCORMVerificationGUI\save(), ilObjLTIConsumerVerificationGUI\save(), ilObjCourseVerificationGUI\save(), ilObjTestVerificationGUI\save(), ilObjItemGroupGUI\save(), ilObjLinkResourceGUI\saveObject(), and ilObjBibliographicGUI\saveObject().

637  : void
638  {
639  $this->object_id = $obj->getId();
640 
641  if (!$parent_node_id) {
642  $parent_node_id = $this->parent_id;
643  }
644 
645  // add new object to custom parent container
646  if ($this->retriever->has('crtptrefid')) {
647  $parent_node_id = $this->retriever->getMaybeInt('crtptrefid') ?? 0;
648  }
649 
650  switch ($this->id_type) {
651  case self::REPOSITORY_NODE_ID:
652  case self::REPOSITORY_OBJECT_ID:
653  if (!$this->node_id) {
654  $obj->createReference();
655  $this->node_id = $obj->getRefId();
656  }
657  $obj->putInTree($parent_node_id);
658  $obj->setPermissions($parent_node_id);
659 
660  // rbac log
661  $rbac_log_roles = $this->rbac_review->getParentRoleIds($this->node_id, false);
662  $rbac_log = ilRbacLog::gatherFaPa($this->node_id, array_keys($rbac_log_roles), true);
663  ilRbacLog::add(ilRbacLog::CREATE_OBJECT, $this->node_id, $rbac_log);
664 
665  $this->ctrl->setParameter($this, "ref_id", $this->node_id);
666  break;
667 
668  case self::WORKSPACE_NODE_ID:
669  case self::WORKSPACE_OBJECT_ID:
670  if (!$this->node_id) {
671  $this->node_id = $this->tree->insertObject($parent_node_id, $this->object_id);
672  }
673  $this->getAccessHandler()->setPermissions($parent_node_id, $this->node_id);
674 
675  $this->ctrl->setParameter($this, "wsp_id", $this->node_id);
676  break;
677 
678  case self::OBJECT_ID:
679  case self::PORTFOLIO_OBJECT_ID:
680  // do nothing
681  break;
682  }
683 
684  // BEGIN ChangeEvent: Record save object.
685  ilChangeEvent::_recordWriteEvent($this->object_id, $this->user->getId(), 'create');
686  // END ChangeEvent: Record save object.
687 
688  // use forced callback after object creation
689  self::handleAfterSaveCallback($obj, $this->retriever->getMaybeInt('crtcb'));
690  }
setPermissions(int $parent_ref_id)
createReference()
creates reference for object
static gatherFaPa(int $ref_id, array $role_ids, bool $add_action=false)
const CREATE_OBJECT
static _recordWriteEvent(int $obj_id, int $usr_id, string $action, ?int $parent_obj_id=null)
Records a write event.
static add(int $action, int $ref_id, array $diff, bool $source_ref_id=false)
putInTree(int $parent_ref_id)
maybe this method should be in tree object!?
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ redirectToRefId()

ilObject2GUI::redirectToRefId ( int  $ref_id,
string  $cmd = "" 
)
finalprotected

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

503  : void
504  {
505  parent::redirectToRefId($ref_id, $cmd);
506  }

◆ redrawHeaderAction()

ilObject2GUI::redrawHeaderAction ( )
protected

Updating icons after ajax call.

Definition at line 789 of file class.ilObject2GUI.php.

789  : void
790  {
791  parent::redrawHeaderActionObject();
792  }

◆ save()

ilObject2GUI::save ( )

Definition at line 617 of file class.ilObject2GUI.php.

Referenced by ilObjLTIConsumerGUI\checkContentSelection().

617  : void
618  {
619  parent::saveObject();
620  }
+ Here is the caller graph for this function:

◆ setColumnSettings()

ilObject2GUI::setColumnSettings ( ilColumnGUI  $column_gui)
final

Definition at line 486 of file class.ilObject2GUI.php.

486  : void
487  {
488  parent::setColumnSettings($column_gui);
489  }

◆ setCreationMode()

ilObject2GUI::setCreationMode ( bool  $mode = true)
final

Definition at line 446 of file class.ilObject2GUI.php.

Referenced by ilObjMediaPoolGUI\executeCommand().

446  : void
447  {
448  parent::setCreationMode($mode);
449  }
+ Here is the caller graph for this function:

◆ setLocator()

ilObject2GUI::setLocator ( )
protected

set Locator

Definition at line 294 of file class.ilObject2GUI.php.

References $parent_id, ilObjectGUI\$ref_id, addLocatorItems(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), null, and ILIAS\Repository\refinery().

Referenced by ilObjectPluginGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), and ilObjBlogGUI\executeCommand().

294  : void
295  {
296  if ($this->omit_locator) {
297  return;
298  }
299 
300  switch ($this->id_type) {
301  case self::REPOSITORY_NODE_ID:
302  $ref_id = $this->node_id ?: $this->parent_id;
303  $this->locator->addRepositoryItems($ref_id);
304 
305  // not so nice workaround: todo: handle locator as tabs in ilTemplate
306  if ($this->admin_mode == self::ADMIN_MODE_NONE &&
307  strtolower($this->ctrl->getCmdClass()) == "ilobjrolegui") {
308  $this->ctrl->setParameterByClass(
309  "ilobjrolegui",
310  "rolf_ref_id",
311  $this->request_wrapper->has("rolf_ref_id")
312  ? $this->request_wrapper->retrieve("rolf_ref_id", $this->refinery->kindlyTo()->string())
313  : null
314  );
315  $this->ctrl->setParameterByClass(
316  "ilobjrolegui",
317  "obj_id",
318  $this->request_wrapper->retrieve("obj_id", $this->refinery->kindlyTo()->string())
319  );
320  $this->locator->addItem(
321  $this->lng->txt("role"),
322  $this->ctrl->getLinkTargetByClass(["ilpermissiongui",
323  "ilobjrolegui"], "perm")
324  );
325  }
326 
327  // in workspace this is done in ilPersonalWorkspaceGUI
328  if ($this->object_id) {
329  $this->addLocatorItems();
330  }
331  $this->tpl->setLocator();
332 
333  break;
334 
335  case self::WORKSPACE_NODE_ID:
336  // :TODO:
337  break;
338  }
339  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
addLocatorItems()
Functions to be overwritten.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setReturnLocation()

ilObject2GUI::setReturnLocation ( string  $cmd,
string  $location 
)
finalprotected

Definition at line 585 of file class.ilObject2GUI.php.

585  : void
586  {
587  die("ilObject2GUI::setReturnLocation() is deprecated.");
588  }

◆ setTabs()

ilObject2GUI::setTabs ( )
protected

create tabs (repository/workspace switch)

this had to be moved here because of the context-specific permission tab

Definition at line 543 of file class.ilObject2GUI.php.

References $node_id, checkPermissionBool(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by ilObjTaxonomyGUI\createTaxNode(), ilObjTaxonomyGUI\deleteItems(), ilObjTaxonomyGUI\editSettings(), ilObjectPluginGUI\executeCommand(), ilObjBibliographicGUI\getValidBiblFileSuffixConstraint(), ilObjTaxonomyGUI\listAssignedItems(), ilObjTaxonomyGUI\listNodes(), ilObjTaxonomyGUI\moveItems(), and ilObjPortfolioTemplateGUI\setTabs().

543  : void
544  {
545  switch ($this->id_type) {
546  case self::REPOSITORY_NODE_ID:
547  case self::REPOSITORY_OBJECT_ID:
548  if ($this->checkPermissionBool("edit_permission")) {
549  $this->tabs_gui->addTab(
550  "id_permissions",
551  $this->lng->txt("perm_settings"),
552  $this->ctrl->getLinkTargetByClass([get_class($this), "ilpermissiongui"], "perm")
553  );
554  }
555  break;
556 
557  case self::WORKSPACE_NODE_ID:
558  case self::WORKSPACE_OBJECT_ID:
559  // only files and blogs can be shared for now
560  if (
561  $this->checkPermissionBool("edit_permission") &&
562  in_array($this->type, ["file", "blog"]) &&
564  ) {
565  $this->tabs_gui->addTab(
566  "id_permissions",
567  $this->lng->txt("wsp_permissions"),
568  $this->ctrl->getLinkTargetByClass([get_class($this), "ilworkspaceaccessgui"], "share")
569  );
570  }
571  break;
572  }
573  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTargetFrame()

ilObject2GUI::setTargetFrame ( string  $cmd,
string  $target_frame 
)
finalprotected

Definition at line 470 of file class.ilObject2GUI.php.

470  : void
471  {
472  parent::setTargetFrame($cmd, $target_frame);
473  }

◆ setTitleAndDescription()

ilObject2GUI::setTitleAndDescription ( )
protected

Definition at line 458 of file class.ilObject2GUI.php.

458  : void
459  {
460  parent::setTitleAndDescription();
461  }

◆ showActions()

ilObject2GUI::showActions ( )
finalprotected

Definition at line 589 of file class.ilObject2GUI.php.

589  : void
590  {
591  die("ilObject2GUI::showActions() is deprecated.");
592  }

◆ showPossibleSubObjects()

ilObject2GUI::showPossibleSubObjects ( )
finalprotected

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

498  : void
499  {
500  parent::showPossibleSubObjects();
501  }

◆ update()

ilObject2GUI::update ( )

Definition at line 625 of file class.ilObject2GUI.php.

Referenced by ilObjFileGUI\putObjectInTree().

625  : void
626  {
627  parent::updateObject();
628  }
+ Here is the caller graph for this function:

◆ view()

ilObject2GUI::view ( )

view object content (repository/workspace switch)

Definition at line 518 of file class.ilObject2GUI.php.

518  : void
519  {
520  switch ($this->id_type) {
521  case self::REPOSITORY_NODE_ID:
522  case self::REPOSITORY_OBJECT_ID:
523  parent::viewObject();
524  break;
525 
526  case self::WORKSPACE_NODE_ID:
527  case self::WORKSPACE_OBJECT_ID:
528  $this->render();
529 
530  // no break
531  case self::OBJECT_ID:
532  case self::PORTFOLIO_OBJECT_ID:
533  // :TODO: should this ever occur? do nothing or edit() ?!
534  break;
535  }
536  }

◆ withReferences()

ilObject2GUI::withReferences ( )
final

Final/Private declaration of unchanged parent methods.

Definition at line 442 of file class.ilObject2GUI.php.

442  : bool
443  {
444  return parent::withReferences();
445  }

Field Documentation

◆ $access

◆ $access_handler

◆ $creation_forms

array ilObject2GUI::$creation_forms = []
protected

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

◆ $ctrl

ilCtrl ilObject2GUI::$ctrl
protected

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

Referenced by ilObjFooterAdministrationGUI\__construct(), ilObjCmiXapiVerificationGUI\_goto(), ilObjLTIConsumerVerificationGUI\_goto(), ilObjCourseVerificationGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjPortfolioGUI\_goto(), ilObjWorkspaceFolderGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjWorkspaceFolderGUI\addContentSubTabs(), ilObjBlogGUI\addContributor(), ilObjBlogGUI\addHeaderActionForCommand(), ilObjMediaPoolGUI\addMobsToPool(), ilObjectPluginGUI\addPermissionTab(), ilObjBlogGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjTaxonomyGUI\afterSave(), ilObjMediaPoolGUI\allMedia(), ilObjTaxonomyGUI\cancel(), ilObjMediaPoolGUI\cancelFolderUpdate(), ilObjMediaPoolGUI\cancelSave(), ilObjTaxonomyGUI\confirmDeleteTaxonomy(), ilObjTaxonomyGUI\confirmedDelete(), ilObjMediaPoolGUI\confirmRemove(), ilObjBlogGUI\contributors(), ilObjPortfolioTemplateGUI\createFromTemplate(), ilObjBlogGUI\createPosting(), ilObjTaxonomyGUI\deleteItems(), ilObjTaxonomyGUI\deleteTaxonomy(), ilObjExerciseVerificationGUI\downloadFromPortfolioPage(), ilObjMediaPoolGUI\editTitlesAndDescriptions(), ilObjectPluginGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjTaxonomyGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjFileGUI\getCtrl(), ilObjPortfolioGUI\getOfflineMessage(), ilObjectPluginGUI\infoScreen(), ilObjectPluginGUI\initEditForm(), ilObjMediaPoolGUI\initFolderForm(), ilObjWikiSettingsGUI\initForm(), ilObjBlogGUI\initHeaderAction(), ilObjWorkspaceFolderGUI\initPasswordForm(), ilObjTaxonomyGUI\initSettingsForm(), ilObjTaxonomyGUI\initTaxNodeForm(), ilObjMediaPoolGUI\listMedia(), ilObjTaxonomyGUI\listNodes(), ilObjTaxonomyGUI\listTaxonomies(), ilObjTaxonomyGUI\moveItems(), ilObjMediaPoolGUI\openClipboard(), ilObjTaxonomyGUI\pasteItems(), ilObjBlogGUI\removeContributor(), ilObjWorkspaceFolderGUI\render(), ilObjBlogGUI\render(), ilObjBlogGUI\renderList(), ilObjBlogGUI\renderNavigationByAuthors(), ilObjBlogGUI\renderNavigationByDate(), ilObjBlogGUI\renderNavigationByKeywords(), ilObjMediaPoolGUI\returnFromItem(), ilObjTaxonomyGUI\saveAssignedItemsSorting(), ilObjMediaPoolGUI\saveFolder(), ilObjItemGroupGUI\saveItemAssignment(), ilObjWikiSettingsGUI\saveSettings(), ilObjTaxonomyGUI\saveSorting(), ilObjTaxonomyGUI\saveTaxNode(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilObjMediaPoolGUI\selectUploadDirFiles(), ilObjMediaPoolGUI\setContentSubTabs(), ilObjBlogGUI\setNotification(), ilObjPortfolioGUI\setOnlineAndShare(), ilObjTaxonomyGUI\setTabs(), ilObjTaxonomyGUI\showTree(), ilObjMediaPoolGUI\updateFolder(), ilObjTaxonomyGUI\updateSettings(), and ilObjTaxonomyGUI\updateTaxNode().

◆ $error

◆ $favourites

ilFavouritesManager ilObject2GUI::$favourites
protected

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

◆ $html

string ilObject2GUI::$html
protected

◆ $id_type

int ilObject2GUI::$id_type
protected

◆ $lng

ilLanguage ilObject2GUI::$lng
protected

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

Referenced by ilObjCmiXapiGUI\_goto(), ilObjItemGroupGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjWorkspaceFolderGUI\addContentSubTabs(), ilObjBlogGUI\addContributor(), ilObjBlogGUI\addUserFromAutoComplete(), ilObjItemGroupGUI\afterConstructor(), ilObjMediaPoolGUI\afterConstructor(), ilObjTaxonomyGUI\afterSave(), ilObjWorkspaceFolderGUI\checkPassword(), ilObjTaxonomyGUI\confirmDeleteTaxonomy(), ilObjMediaPoolGUI\confirmRemove(), ilObjBlogGUI\contributors(), ilObjWorkspaceFolderGUI\deleteConfirmation(), ilObjTaxonomyGUI\deleteItems(), ilObjTaxonomyGUI\deleteTaxonomy(), ilObjMediaPoolGUI\editTitlesAndDescriptions(), ilObjWikiSettingsGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjPortfolioGUI\getOfflineMessage(), ilObjMediaPoolGUI\getPreviewModalHTML(), ilObjectPluginGUI\infoScreen(), ilObjectPluginGUI\initEditForm(), ilObjMediaPoolGUI\initFolderForm(), ilObjWikiSettingsGUI\initForm(), ilObjMediaPoolGUI\initMediaBulkForm(), ilObjWorkspaceFolderGUI\initPasswordForm(), ilObjTaxonomyGUI\initSettingsForm(), ilObjTaxonomyGUI\initTaxNodeForm(), ilObjMediaPoolGUI\listMedia(), ilObjTaxonomyGUI\listNodes(), ilObjTaxonomyGUI\listTaxonomies(), ilObjTaxonomyGUI\moveItems(), ilObjWorkspaceFolderGUI\passwordForm(), ilObjTaxonomyGUI\pasteItems(), ilObjBlogGUI\preview(), ilObjBlogGUI\removeContributor(), ilObjExerciseVerificationGUI\render(), ilObjSCORMVerificationGUI\render(), ilObjCmiXapiVerificationGUI\render(), ilObjCourseVerificationGUI\render(), ilObjBlogGUI\render(), ilObjBlogGUI\renderList(), ilObjTaxonomyGUI\saveAssignedItemsSorting(), ilObjMediaPoolGUI\saveFolder(), ilObjWikiSettingsGUI\saveSettings(), ilObjTaxonomyGUI\saveSorting(), ilObjTaxonomyGUI\saveTaxNode(), ilObjMediaPoolGUI\saveTitlesAndDescriptions(), ilObjMediaPoolGUI\selectUploadDirFiles(), ilObjPortfolioGUI\setOnlineAndShare(), ilObjMediaPoolGUI\setSettingsSubTabs(), ilObjWorkspaceFolderGUI\setTabs(), ilObjBlogGUI\setTabs(), ilObjItemGroupGUI\setTabs(), ilObjTaxonomyGUI\setTabs(), ilObjWorkspaceRootFolderGUI\setTitleAndDescription(), ilObjWorkspaceFolderGUI\showAdministrationPanel(), ilObjMediaPoolGUI\updateFolder(), ilObjTaxonomyGUI\updateSettings(), ilObjTaxonomyGUI\updateTaxNode(), and ilObjPortfolioBaseGUI\view().

◆ $locator

◆ $node_id

◆ $obj_definition

ilObjectDefinition ilObject2GUI::$obj_definition
protected

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

◆ $object_id

int ilObject2GUI::$object_id
protected

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

Referenced by __construct().

◆ $parent_id

◆ $post_wrapper

ArrayBasedRequestWrapper ilObject2GUI::$post_wrapper
protected

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

◆ $rbac_admin

ilRbacAdmin ilObject2GUI::$rbac_admin
protected

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

◆ $rbac_review

ilRbacReview ilObject2GUI::$rbac_review
protected

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

Referenced by ilObjBlogGUI\addContributor().

◆ $rbac_system

ilRbacSystem ilObject2GUI::$rbac_system
protected

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

Referenced by ilObjFooterAdministrationGUI\__construct().

◆ $refinery

Factory ilObject2GUI::$refinery
protected

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

Referenced by __construct(), and ilObjDataCollectionGUI\initForm().

◆ $request_ref_id

int ilObject2GUI::$request_ref_id
protected

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

◆ $request_wrapper

RequestWrapper ilObject2GUI::$request_wrapper
protected

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

◆ $retriever

ilObjectRequestRetriever ilObject2GUI::$retriever
private

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

◆ $tabs_gui

ilTabsGUI ilObject2GUI::$tabs_gui
protected

◆ $toolbar

◆ $tpl

ilGlobalTemplateInterface ilObject2GUI::$tpl
protected

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

Referenced by ilObjDataCollectionGUI\_goto(), ilObjFileGUI\addLegacyFormToAccordion(), ilObjFileGUI\addUIFormToAccordion(), ilObjMediaPoolGUI\allMedia(), ilObjTaxonomyGUI\confirmDeleteTaxonomy(), ilObjBlogGUI\contributors(), ilObjPortfolioGUI\create(), ilObjMediaPoolGUI\createFolderForm(), ilObjPortfolioGUI\createFromTemplate(), ilObjTaxonomyGUI\createTaxNode(), ilObjWorkspaceFolderGUI\deleteConfirmation(), ilObjTaxonomyGUI\deleteItems(), ilObjMediaPoolGUI\editFolder(), ilObjWikiSettingsGUI\editSettings(), ilObjTaxonomyGUI\editSettings(), ilObjectPluginGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjLinkResourceGUI\exportHTML(), ilObjMediaPoolGUI\getPreviewModalHTML(), ilObjTaxonomyGUI\listAssignedItems(), ilObjItemGroupGUI\listMaterials(), ilObjMediaPoolGUI\listMedia(), ilObjTaxonomyGUI\listNodes(), ilObjTaxonomyGUI\listTaxonomies(), ilObjTaxonomyGUI\moveItems(), ilObjWorkspaceFolderGUI\passwordForm(), ilObjWorkspaceFolderGUI\render(), ilObjBlogGUI\render(), ilObjBlogGUI\renderFullScreen(), ilObjMediaPoolGUI\saveFolder(), ilObjTaxonomyGUI\saveTaxNode(), ilObjMediaPoolGUI\selectUploadDirFiles(), ilObjPortfolioBaseGUI\setContentStyleSheet(), ilObjBlogGUI\setContentStyleSheet(), ilObjTaxonomyGUI\setTabs(), ilObjWorkspaceRootFolderGUI\setTitleAndDescription(), ilObjWorkspaceFolderGUI\share(), ilObjMediaPoolGUI\showPage(), ilObjMediaPoolGUI\updateFolder(), ilObjTaxonomyGUI\updateSettings(), and ilObjTaxonomyGUI\updateTaxNode().

◆ $type

◆ $user

◆ OBJECT_ID

const ilObject2GUI::OBJECT_ID = 0

Definition at line 45 of file class.ilObject2GUI.php.

Referenced by ilObjTaxonomyGUI\__construct().

◆ PORTFOLIO_OBJECT_ID

const ilObject2GUI::PORTFOLIO_OBJECT_ID = 5

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

◆ REPOSITORY_NODE_ID

◆ REPOSITORY_OBJECT_ID

const ilObject2GUI::REPOSITORY_OBJECT_ID = 3

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

◆ WORKSPACE_NODE_ID

◆ WORKSPACE_OBJECT_ID


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