ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjFolderGUI Class Reference

Class ilObjFolderGUI. More...

+ Inheritance diagram for ilObjFolderGUI:
+ Collaboration diagram for ilObjFolderGUI:

Public Member Functions

 __construct ( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=false)
 
 viewObject ()
 
 renderObject ()
 
 executeCommand ()
 
 setFolderTree (ilTree $a_tree)
 
 showSummaryObject ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More...
 
 infoScreenObject ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More...
 
 infoScreen ()
 
 modifyItemGUI (ilObjectListGUI $a_item_list_gui, array $a_item_data)
 
 editObject ()
 
 setSubTabs (string $a_tab)
 
 deleteObject (bool $error=false)
 
- Public Member Functions inherited from ilContainerGUI
 executeCommand ()
 
 forwardToPageObject ()
 
 addPageTabs ()
 
 getContainerPageHTML ()
 
 getContentGUI ()
 
 renderObject ()
 
 renderBlockAsynchObject ()
 render the object More...
 
 setContentSubTabs ()
 
 showAdministrationPanel ()
 
 showPermanentLink ()
 
 editPageFrameObject ()
 
 cancelPageContentObject ()
 
 showLinkListObject ()
 
 addHeaderRow (ilTemplate $a_tpl, string $a_type, bool $a_show_image=true)
 
 addMessageRow (ilTemplate $a_tpl, string $a_message, string $a_type)
 
 setPageEditorTabs ()
 
 addStandardContainerSubTabs (bool $a_include_view=true)
 Add standard container subtabs for view, manage, oderdering and text/media editor link. More...
 
 enableAdministrationPanelObject ()
 
 disableAdministrationPanelObject ()
 
 editOrderObject ()
 
 isActiveOrdering ()
 
 isActiveItemOrdering ()
 
 enableMultiDownloadObject ()
 
 isMultiDownloadEnabled ()
 
 cutObject ()
 cut object(s) out from a container and write the information to clipboard public More...
 
 copyObject ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once. More...
 
 downloadObject ()
 
 getBucketTitle ()
 
 linkObject ()
 create an new reference of an object in tree it's like a hard link of unix More...
 
 clearObject ()
 clear clipboard and go back to last object More...
 
 performPasteIntoMultipleObjectsObject ()
 
 initAndDisplayLinkIntoMultipleObjectsObject ()
 
 showPasteTreeObject ()
 
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent. More...
 
 keepObjectsInClipboardObject ()
 
 initAndDisplayCopyIntoMultipleObjectsObject ()
 
 initAndDisplayMoveIntoObjectObject ()
 
 pasteObject ()
 paste object from clipboard to current place Depending on the chosen command the object(s) are linked, copied or moved More...
 
 clipboardObject ()
 
 isActiveAdministrationPanel ()
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 allowBlocksMoving ()
 Standard is to allow blocks moving. More...
 
 allowBlocksConfigure ()
 Standard is to allow blocks configuration. More...
 
 cloneAllObject ()
 Clone all object Overwritten method for copying container objects. More...
 
 saveSortingObject ()
 
 cloneNodes (int $srcRef, int $dstRef, array &$mapping, ?string $newName=null)
 Recursively clones all nodes of the RBAC tree. More...
 
 modifyItemGUI (ilObjectListGUI $a_item_list_gui, array $a_item_data)
 
 editStylePropertiesObject ()
 
 redrawListItemObject ()
 Redraw a list item (ajax) More...
 
 trashObject ()
 Show trash content of object. More...
 
 trashApplyFilterObject ()
 
 trashResetFilterObject ()
 
 removeFromSystemObject ()
 
 undeleteObject ()
 Get objects back from trash. More...
 
 confirmRemoveFromSystemObject ()
 
 setSideColumnReturn ()
 
 getAdminTabs ()
 
 competencesObject ()
 
- 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)
 
- Public Member Functions inherited from ilDesktopItemHandling
 addToDeskObject ()
 
 removeFromDeskObject ()
 

Static Public Member Functions

static _goto ($a_target)
 goto target group More...
 
- Static Public Member Functions inherited from ilContainerGUI
static _buildPath (int $a_ref_id, int $a_course_ref_id)
 build path 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

ilTree $folder_tree
 
- Data Fields inherited from ilContainerGUI
int $bl_cnt = 1
 
bool $multi_download_enabled = false
 
- 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

 initEditForm ()
 
 getEditFormCustomValues (array &$a_values)
 
 updateCustom (ilPropertyFormGUI $form)
 
 afterSave (ilObject $new_object)
 
 getTabs ()
 
 showPossibleSubObjects ()
 show possible sub objects selection list More...
 
 forwardToTimingsView ()
 
- Protected Member Functions inherited from ilContainerGUI
 getModeManager ()
 
 getItemPresentation ( $include_empty_blocks=true, ?string $lang=null)
 
 getEditFormValues ()
 
 afterUpdate ()
 
 setTitleAndDescription ()
 
 showPossibleSubObjects ()
 
 supportsPageEditor ()
 
 gotItems ()
 
 getTabs ()
 
 showContainerPageTabs ()
 
 showPasswordInstructionObject (bool $a_init=true)
 
 initFormPasswordInstruction ()
 Init password form. More...
 
 savePasswordObject ()
 
 initEditForm ()
 
 initSortingForm (ilPropertyFormGUI $form, array $a_sorting_settings)
 Append sorting settings to property form. More...
 
 initListPresentationForm (ilPropertyFormGUI $form)
 Add list presentation settings to form. More...
 
 saveListPresentation (ilPropertyFormGUI $form)
 
 initSortingDirectionForm (ilContainerSortingSettings $sorting_settings, ilRadioOption $element, string $a_prefix)
 Add sorting direction. More...
 
 initManualSortingOptionForm (ilContainerSortingSettings $settings, ilRadioOption $element, string $a_prefix, array $a_sorting_settings)
 Add manual sorting options. More...
 
 saveSortingSettings (ilPropertyFormGUI $form)
 
 trashHandleFilter (bool $action_apply, bool $action_reset)
 
 restoreToNewLocationObject (?ilPropertyFormGUI $form=null)
 
 getTreeSelectorGUI (string $cmd)
 
 initFilter ()
 
 showContainerFilter ()
 
- 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

ilHelpGUI $help
 
StandardGUIRequest $folder_request
 
- Protected Attributes inherited from ilContainerGUI
ILIAS Container InternalGUIService $gui
 
ILIAS Style Content GUIService $content_style_gui
 
ilRbacSystem $rbacsystem
 
ilRbacReview $rbacreview
 
ILIAS Container Content ItemPresentationManager $item_presentation = null
 
ILIAS Container InternalDomainService $domain
 
ilTabsGUI $tabs
 
ilErrorHandling $error
 
ilObjectDefinition $obj_definition
 
ilRbacAdmin $rbacadmin
 
ilPropertyFormGUI $form
 
ilLogger $log
 
ilObjectDataCache $obj_data_cache
 
Services $global_screen
 
ilAppEventHandler $app_event_handler
 
UIServices $ui
 
ilContainerFilterService $container_filter_service
 
ilContainerUserFilter $container_user_filter = null
 
Standard $ui_filter = null
 
bool $edit_order = false
 
bool $adminCommands = false
 
string $requested_redirectSource = ""
 
int $current_position = 0
 
ClipboardManager $clipboard
 
StandardGUIRequest $std_request
 
ModeManager $mode_manager = null
 
ilComponentFactory $component_factory
 
ILIAS Style Content DomainService $content_style_domain
 
- 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 = ""
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjFolderGUI::__construct (   $a_data,
int  $a_id = 0,
bool  $a_call_by_reference = true,
bool  $a_prepare_output = false 
)

Definition at line 41 of file class.ilObjFolderGUI.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().

46  {
47  global $DIC;
48 
49  $this->tree = $DIC->repositoryTree();
50  $this->tabs = $DIC->tabs();
51  $this->user = $DIC->user();
52  $this->ctrl = $DIC->ctrl();
53  $this->lng = $DIC->language();
54  $this->access = $DIC->access();
55  $this->rbacsystem = $DIC->rbac()->system();
56  $this->help = $DIC["ilHelp"];
57  $this->error = $DIC["ilErr"];
58  $this->tpl = $DIC["tpl"];
59  $this->settings = $DIC->settings();
60  $this->type = "fold";
61  parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
62  $this->lng->loadLanguageModule("obj");
63  $this->folder_request = $DIC
64  ->folder()
65  ->internal()
66  ->gui()
67  ->standardRequest();
68  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjFolderGUI::_goto (   $a_target)
static

goto target group

Definition at line 481 of file class.ilObjFolderGUI.php.

References $DIC, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryNode(), ILIAS\Repository\int(), and ilLanguage\txt().

481  : void
482  {
483  global $DIC;
484 
485  $ilAccess = $DIC->access();
486  $ilErr = $DIC["ilErr"];
487  $lng = $DIC->language();
488 
489  $a_target = (int) $a_target;
490 
491  if ($ilAccess->checkAccess("read", "", $a_target)) {
493  }
494  if ($ilAccess->checkAccess("visible", "", $a_target)) {
495  ilObjectGUI::_gotoRepositoryNode($a_target, "infoScreen");
496  }
497  $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
498  }
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...
static _gotoRepositoryNode(int $ref_id, string $cmd="")
$ilErr
Definition: raiseError.php:33
ilLanguage $lng
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ afterSave()

ilObjFolderGUI::afterSave ( ilObject  $new_object)
protected

Definition at line 337 of file class.ilObjFolderGUI.php.

References ILIAS\Repository\ctrl(), ilObject\getId(), ilObject\getRefId(), ILIAS\Repository\lng(), ilObjectGUI\redirectToRefId(), ilContainerSortingSettings\setSortMode(), and ilContainer\SORT_INHERIT.

337  : void
338  {
339  $sort = new ilContainerSortingSettings($new_object->getId());
341  $sort->update();
342 
343  // always send a message
344  $this->tpl->setOnScreenMessage('success', $this->lng->txt("fold_added"), true);
345  $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
346  $this->redirectToRefId($new_object->getRefId(), "");
347  }
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 sav...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ deleteObject()

ilObjFolderGUI::deleteObject ( bool  $error = false)

Definition at line 594 of file class.ilObjFolderGUI.php.

References ilContainerGUI\$error.

594  : void
595  {
596  $this->tabs_gui->activateTab('view_content');
597  parent::deleteObject($error);
598  }
ilErrorHandling $error

◆ editObject()

ilObjFolderGUI::editObject ( )

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

References ilContainerGUI\$error, ilContainerGUI\$form, $GLOBALS, $ilErr, ilContainerGUI\$tabs, ilObjectGUI\checkPermissionBool(), ilContainerGUI\getEditFormValues(), ilPropertyFormGUI\getHTML(), initEditForm(), ILIAS\Repository\lng(), setSubTabs(), and ilPropertyFormGUI\setValuesByArray().

553  : void
554  {
555  $ilTabs = $this->tabs;
557 
558  $this->setSubTabs("settings");
559  $ilTabs->activateTab("settings");
560 
561  if (!$this->checkPermissionBool("write")) {
562  $ilErr->raiseError($this->lng->txt("msg_no_perm_write"), $ilErr->MESSAGE);
563  }
564 
565  $form = $this->initEditForm();
566  $values = $this->getEditFormValues();
567  if ($values) {
568  $form->setValuesByArray($values, true);
569  }
570  $GLOBALS['tpl']->setContent($form->getHTML());
571  }
$ilErr
Definition: raiseError.php:33
setSubTabs(string $a_tab)
$GLOBALS["DIC"]
Definition: wac.php:53
setValuesByArray(array $a_values, bool $a_restrict_to_value_keys=false)
ilErrorHandling $error
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
ilPropertyFormGUI $form
+ Here is the call graph for this function:

◆ executeCommand()

ilObjFolderGUI::executeCommand ( )

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

References ilContainerGUI\$gui, ilObjectGUI\$user, ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ilContainerGUI\forwardToPageObject(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreen(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, null, ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), setSubTabs(), ilContainerGUI\setTitleAndDescription(), ilContainerGUI\showContainerPageTabs(), and viewObject().

101  : void
102  {
103  $ilUser = $this->user;
104  $next_class = $this->ctrl->getNextClass($this);
105  $cmd = $this->ctrl->getCmd();
106 
107  $header_action = true;
108  switch ($next_class) {
109  case strtolower(ilRepositoryTrashGUI::class):
110  $ru = new ilRepositoryTrashGUI($this);
111  $this->ctrl->setReturn($this, 'trash');
112  $this->ctrl->forwardCommand($ru);
113  break;
114 
115  case 'ilpermissiongui':
116  $this->prepareOutput();
117  $this->tabs_gui->activateTab('perm_settings');
118  $perm_gui = new ilPermissionGUI($this);
119  $ret = $this->ctrl->forwardCommand($perm_gui);
120  break;
121 
122 
123  case 'ilcoursecontentgui':
124  $this->prepareOutput();
125  $course_content_obj = new ilCourseContentGUI($this);
126  $this->ctrl->forwardCommand($course_content_obj);
127  break;
128 
129  case "illearningprogressgui":
130  $this->prepareOutput();
131 
132  $new_gui = new ilLearningProgressGUI(
134  $this->object->getRefId(),
135  $this->folder_request->getUserId() ?: $ilUser->getId()
136  );
137  $this->ctrl->forwardCommand($new_gui);
138  $this->tabs_gui->setTabActive('learning_progress');
139  break;
140 
141  // container page editing
142  case "ilcontainerpagegui":
143  $this->prepareOutput(false);
144  $ret = $this->forwardToPageObject();
145  if ($ret !== "") {
146  $this->tpl->setContent($ret);
147  }
148  $header_action = false;
149  break;
150 
151  case 'ilinfoscreengui':
152  $this->prepareOutput();
153  $this->infoScreen();
154  break;
155 
156  case 'ilobjectcopygui':
157  $this->prepareOutput();
158 
159  $cp = new ilObjectCopyGUI($this);
160  $cp->setType('fold');
161  $this->ctrl->forwardCommand($cp);
162  break;
163 
164  case "ilobjectcontentstylesettingsgui":
165  $this->checkPermission("write");
166  $this->setTitleAndDescription();
167  $this->showContainerPageTabs();
168  $settings_gui = $this->content_style_gui
169  ->objectSettingsGUIForRefId(
170  null,
171  $this->object->getRefId()
172  );
173  $this->ctrl->forwardCommand($settings_gui);
174  break;
175 
176  case 'ilexportgui':
177  $this->prepareOutput();
178 
179  $this->tabs_gui->setTabActive('export');
180  $exp = new ilExportGUI($this);
181  $exp->addFormat('xml');
182  $this->ctrl->forwardCommand($exp);
183  break;
184 
185  case "ilcommonactiondispatchergui":
186  $this->prepareOutput();
188  $this->ctrl->forwardCommand($gui);
189  break;
190 
191  case 'ildidactictemplategui':
192  $this->ctrl->setReturn($this, 'edit');
193  $did = new ilDidacticTemplateGUI($this);
194  $this->ctrl->forwardCommand($did);
195  break;
196  case 'ilcolumngui':
197  $this->tabs_gui->setTabActive('none');
198  $this->checkPermission("read");
199  $this->viewObject();
200  break;
201 
202  case 'ilobjecttranslationgui':
203  $this->checkPermissionBool("write");
204  $this->prepareOutput();
205  $this->setSubTabs("settings_trans");
206  $transgui = new ilObjectTranslationGUI($this);
207  $this->ctrl->forwardCommand($transgui);
208  break;
209 
210  default:
211 
212  $this->prepareOutput();
213  // cognos-blu-patch: begin
214  // removed timings forward
215  // cognos-blu-patch: end
216 
217  if (empty($cmd)) {
218  $cmd = "view";
219  }
220  $cmd .= "Object";
221  $this->$cmd();
222  break;
223  }
224 
225  if ($header_action) {
226  $this->addHeaderAction();
227  }
228  }
GUI class for the workflow of copying objects.
prepareOutput(bool $show_sub_objects=true)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setSubTabs(string $a_tab)
Repository GUI Utilities.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
Class ilCourseContentGUI.
ILIAS Container InternalGUIService $gui
addHeaderAction()
Add header action menu.
Class ilObjUserTrackingGUI.
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
GUI class for object translation handling.
+ Here is the call graph for this function:

◆ forwardToTimingsView()

ilObjFolderGUI::forwardToTimingsView ( )
protected

Definition at line 533 of file class.ilObjFolderGUI.php.

References ilObjectGUI\$tree, ilObject\_lookupObjId(), ilObjCourse\_lookupViewMode(), ilTree\checkForParentType(), ILIAS\Repository\ctrl(), ilSession\get(), ilSession\has(), ilSession\set(), and ilContainer\VIEW_TIMING.

533  : void
534  {
535  $tree = $this->tree;
536 
537  if (!$crs_ref = $tree->checkForParentType($this->ref_id, 'crs')) {
538  return;
539  }
540  if (!$this->ctrl->getCmd() && ilObjCourse::_lookupViewMode(ilObject::_lookupObjId($crs_ref)) === ilContainer::VIEW_TIMING) {
541  if (!ilSession::has('crs_timings')) {
542  ilSession::set('crs_timings', true);
543  }
544 
545  if (ilSession::get('crs_timings')) {
546  $this->ctrl->redirectByClass(ilCourseContentGUI::class, 'editUserTimings');
547  return;
548  }
549  }
550  ilSession::set('crs_timings', false);
551  }
static get(string $a_var)
static _lookupViewMode(int $a_id)
static _lookupObjId(int $ref_id)
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...
static has($a_var)
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ getEditFormCustomValues()

ilObjFolderGUI::getEditFormCustomValues ( array &  $a_values)
protected

Definition at line 297 of file class.ilObjFolderGUI.php.

References ilContainerSortingSettings\getSortMode(), and ILIAS\Repository\object().

297  : void
298  {
299  // we cannot use $this->object->getOrderType()
300  // if set to inherit it will be translated to parent setting
301  $sort = new ilContainerSortingSettings($this->object->getId());
302  $a_values["sor"] = $sort->getSortMode();
303  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ getTabs()

ilObjFolderGUI::getTabs ( )
protected

Definition at line 400 of file class.ilObjFolderGUI.php.

References ilObjectGUI\$access, ilObjectGUI\$ctrl, $help, ilObjectGUI\$lng, ilContainerGUI\$rbacsystem, ilLearningProgressAccess\checkAccess(), ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\object(), and ilLanguage\txt().

400  : void
401  {
403  $lng = $this->lng;
404  $ilCtrl = $this->ctrl;
405  $ilAccess = $this->access;
406  $ilHelp = $this->help;
407 
408  $this->ctrl->setParameter($this, "ref_id", $this->ref_id);
409 
410  $ilHelp->setScreenIdComponent("fold");
411 
412  $this->tabs_gui->setTabActive("");
413  if ($ilAccess->checkAccess('read', '', $this->ref_id)) {
414  $this->tabs_gui->addTab(
415  "view_content",
416  $lng->txt("content"),
417  $this->ctrl->getLinkTarget($this, "")
418  );
419 
420  //BEGIN ChangeEvent add info tab to category object
421  $force_active = $this->ctrl->getNextClass() === "ilinfoscreengui"
422  || strtolower($this->ctrl->getCmdClass()) === "ilnotegui";
423  $this->tabs_gui->addTarget(
424  "info_short",
425  $this->ctrl->getLinkTargetByClass(
426  ["ilobjfoldergui", "ilinfoscreengui"],
427  "showSummary"
428  ),
429  ["showSummary", "", "infoScreen"],
430  "",
431  "",
432  $force_active
433  );
434  //END ChangeEvent add info tab to category object
435  }
436 
437  if ($rbacsystem->checkAccess('write', $this->ref_id)) {
438  $this->tabs_gui->addTarget(
439  "settings",
440  $this->ctrl->getLinkTarget($this, "edit"),
441  "edit",
442  "",
443  "",
444  ($ilCtrl->getCmd() === "edit")
445  );
446  }
447 
448  // learning progress
449  if (ilLearningProgressAccess::checkAccess($this->object->getRefId())) {
450  $this->tabs_gui->addTarget(
451  'learning_progress',
452  $this->ctrl->getLinkTargetByClass(['ilobjfoldergui', 'illearningprogressgui'], ''),
453  '',
454  ['illplistofobjectsgui', 'illplistofsettingsgui', 'illearningprogressgui', 'illplistofprogressgui']
455  );
456  }
457 
458  if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
459  $this->tabs_gui->addTarget(
460  'export',
461  $this->ctrl->getLinkTargetByClass('ilexportgui', ''),
462  'export',
463  'ilexportgui'
464  );
465  }
466 
467 
468  if ($rbacsystem->checkAccess('edit_permission', $this->ref_id)) {
469  $this->tabs_gui->addTarget(
470  "perm_settings",
471  $this->ctrl->getLinkTargetByClass([get_class($this), 'ilpermissiongui'], "perm"),
472  ["perm", "info", "owner"],
473  'ilpermissiongui'
474  );
475  }
476  }
ilRbacSystem $rbacsystem
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...
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
ilLanguage $lng
ilAccessHandler $access
+ Here is the call graph for this function:

◆ infoScreen()

ilObjFolderGUI::infoScreen ( )
Exceptions
ilPermissionException

Definition at line 362 of file class.ilObjFolderGUI.php.

References ilObjectGUI\$access, $GLOBALS, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

Referenced by executeCommand().

362  : void
363  {
364  $ilAccess = $this->access;
365 
366  if (!$ilAccess->checkAccess("visible", "", $this->ref_id)) {
367  throw new ilPermissionException($this->lng->txt("msg_no_perm_read"));
368  }
369 
370  $info = new ilInfoScreenGUI($this);
371 
372  $GLOBALS['ilTabs']->activateTab('info_short');
373 
374  $info->enablePrivateNotes();
375 
376  if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
377  $info->enableNews();
378  }
379 
380  // no news editing for files, just notifications
381  $info->enableNewsEditing(false);
382  if ($ilAccess->checkAccess("write", "", $this->requested_ref_id)) {
383  $news_set = new ilSetting("news");
384  $enable_internal_rss = $news_set->get("enable_rss_for_internal");
385 
386  if ($enable_internal_rss) {
387  $info->setBlockProperty("news", "settings", '1');
388  $info->setBlockProperty("news", "public_notifications_option", '1');
389  }
390  }
391 
392 
393  // standard meta data
394  $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
395 
396  // forward the command
397  $this->ctrl->forwardCommand($info);
398  }
$GLOBALS["DIC"]
Definition: wac.php:53
ilAccessHandler $access
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ infoScreenObject()

ilObjFolderGUI::infoScreenObject ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 354 of file class.ilObjFolderGUI.php.

References ILIAS\Repository\ctrl().

354  : void
355  {
356  $this->ctrl->redirectByClass(ilInfoScreenGUI::class, "showSummary");
357  }
+ Here is the call graph for this function:

◆ initEditForm()

ilObjFolderGUI::initEditForm ( )
protected

Definition at line 235 of file class.ilObjFolderGUI.php.

References ilContainerGUI\$form, ilObjectGUI\$lng, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\ctrl(), ilObjectGUI\getObjectService(), ilObjectGUI\initDidacticTemplate(), ilContainerGUI\initListPresentationForm(), ilContainerGUI\initSortingForm(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\object(), ilTextAreaInputGUI\setCols(), ilFormGUI\setFormAction(), ilPropertyFormGUI\setTitle(), ilContainer\SORT_CREATION, ilContainer\SORT_INHERIT, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, and ilObject\TITLE_LENGTH.

Referenced by editObject().

236  {
237  $lng = $this->lng;
238  $obj_service = $this->getObjectService();
239 
240  $lng->loadLanguageModule($this->object->getType());
241 
242  $form = new ilPropertyFormGUI();
243  $form->setFormAction($this->ctrl->getFormAction($this, "update"));
244  $form->setTitle($this->lng->txt($this->object->getType() . "_edit"));
245 
246  // title
247  $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
248  $ti->setSize(min(40, ilObject::TITLE_LENGTH));
249  $ti->setMaxLength(ilObject::TITLE_LENGTH);
250  $ti->setRequired(true);
251  $form->addItem($ti);
252 
253  // description
254  $ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
255  $ta->setCols(40);
256  $ta->setRows(2);
257  $form->addItem($ta);
258 
259  // Show didactic template type
260  $this->initDidacticTemplate($form);
261 
262  $pres = new ilFormSectionHeaderGUI();
263  $pres->setTitle($this->lng->txt('fold_presentation'));
264  $form->addItem($pres);
265 
266  // title and icon visibility
267  $form = $obj_service->commonSettings()->legacyForm($form, $this->object)->addTitleIconVisibility();
268 
269  // top actions visibility
270  $form = $obj_service->commonSettings()->legacyForm($form, $this->object)->addTopActionsVisibility();
271 
272  // custom icon
273  $form = $obj_service->commonSettings()->legacyForm($form, $this->object)->addIcon();
274 
275  // tile image
276  $form = $obj_service->commonSettings()->legacyForm($form, $this->object)->addTileImage();
277 
278  // list presentation
280 
281  $this->initSortingForm(
282  $form,
283  [
288  ]
289  );
290 
291  $form->addCommandButton("update", $this->lng->txt("save"));
292  //$this->form->addCommandButton("cancelUpdate", $lng->txt("cancel"));
293 
294  return $form;
295  }
const TITLE_LENGTH
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng
setFormAction(string $a_formaction)
initDidacticTemplate(ilPropertyFormGUI $form)
addCommandButton(string $a_cmd, string $a_text, string $a_id="")
ilPropertyFormGUI $form
initListPresentationForm(ilPropertyFormGUI $form)
Add list presentation settings to form.
initSortingForm(ilPropertyFormGUI $form, array $a_sorting_settings)
Append sorting settings to property form.
This class represents a text area property in a property form.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ modifyItemGUI()

ilObjFolderGUI::modifyItemGUI ( ilObjectListGUI  $a_item_list_gui,
array  $a_item_data 
)

Definition at line 500 of file class.ilObjFolderGUI.php.

References ilObjectGUI\$tree, ilObjCourse\_lookupAboStatus(), ilObject\_lookupObjId(), ilObjCourseGUI\_modifyItemGUI(), ilTree\checkForParentType(), and ILIAS\Repository\object().

500  : void
501  {
502  $tree = $this->tree;
503 
504  // if folder is in a course, modify item list gui according to course requirements
505  if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(), 'crs')) {
506  $course_obj_id = ilObject::_lookupObjId($course_ref_id);
508  $a_item_list_gui,
509  'ilcoursecontentgui',
510  $a_item_data,
511  ilObjCourse::_lookupAboStatus($course_obj_id),
512  $course_ref_id,
513  $course_obj_id,
514  $this->object->getRefId()
515  );
516  }
517  }
static _lookupObjId(int $ref_id)
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...
static _modifyItemGUI(ilObjectListGUI $a_item_list_gui, string $a_cmd_class, array $a_item_data, bool $a_abo_status, int $a_course_ref_id, int $a_course_obj_id, int $a_parent_ref_id=0)
static _lookupAboStatus(int $a_id)
+ Here is the call graph for this function:

◆ renderObject()

ilObjFolderGUI::renderObject ( )

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

References ilContainerGUI\$tabs, and ilObjectGUI\checkPermission().

Referenced by viewObject().

91  : void
92  {
93  $ilTabs = $this->tabs;
94 
95  $this->checkPermission('read');
96 
97  $ilTabs->activateTab("view_content");
98  parent::renderObject();
99  }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFolderTree()

ilObjFolderGUI::setFolderTree ( ilTree  $a_tree)

Definition at line 230 of file class.ilObjFolderGUI.php.

230  : void
231  {
232  $this->folder_tree = $a_tree;
233  }

◆ setSubTabs()

ilObjFolderGUI::setSubTabs ( string  $a_tab)

Definition at line 573 of file class.ilObjFolderGUI.php.

References ilObjectGUI\$lng, ilContainerGUI\$tabs, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilLanguage\txt().

Referenced by editObject(), and executeCommand().

573  : void
574  {
575  $ilTabs = $this->tabs;
576  $lng = $this->lng;
577 
578  $ilTabs->addSubTab(
579  "settings",
580  $lng->txt("fold_settings"),
581  $this->ctrl->getLinkTarget($this, 'edit')
582  );
583 
584  $this->tabs_gui->addSubTab(
585  "settings_trans",
586  $this->lng->txt("obj_multilinguality"),
587  $this->ctrl->getLinkTargetByClass("ilobjecttranslationgui", "")
588  );
589 
590  $ilTabs->activateSubTab($a_tab);
591  $ilTabs->activateTab("settings");
592  }
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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showPossibleSubObjects()

ilObjFolderGUI::showPossibleSubObjects ( )
protected

show possible sub objects selection list

Definition at line 522 of file class.ilObjFolderGUI.php.

References ilContainerGUI\$gui, ilObjectGUI\buildAddNewItemElements(), and ilObjectGUI\getCreatableObjectTypes().

522  : void
523  {
526  $this->getCreatableObjectTypes()
527  )
528  );
529  $gui->render();
530  }
buildAddNewItemElements(array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
Render add new item selector.
ILIAS Container InternalGUIService $gui
+ Here is the call graph for this function:

◆ showSummaryObject()

ilObjFolderGUI::showSummaryObject ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 332 of file class.ilObjFolderGUI.php.

References ILIAS\Repository\ctrl().

332  : void
333  {
334  $this->ctrl->redirectByClass(ilInfoScreenGUI::class, "showSummary");
335  }
+ Here is the call graph for this function:

◆ updateCustom()

ilObjFolderGUI::updateCustom ( ilPropertyFormGUI  $form)
protected

Definition at line 305 of file class.ilObjFolderGUI.php.

References ilObjectGUI\getObjectService(), ilContainerGUI\saveListPresentation(), and ilContainerGUI\saveSortingSettings().

305  : void
306  {
307  $obj_service = $this->getObjectService();
308 
309  // title icon visibility
310  $obj_service->commonSettings()->legacyForm($form, $this->object)->saveTitleIconVisibility();
311 
312  // top actions visibility
313  $obj_service->commonSettings()->legacyForm($form, $this->object)->saveTopActionsVisibility();
314 
315  // custom icon
316  $obj_service->commonSettings()->legacyForm($form, $this->object)->saveIcon();
317 
318  // tile image
319  $obj_service->commonSettings()->legacyForm($form, $this->object)->saveTileImage();
320 
321  // list presentation
322  $this->saveListPresentation($form);
323 
324  $this->saveSortingSettings($form);
325  }
saveSortingSettings(ilPropertyFormGUI $form)
saveListPresentation(ilPropertyFormGUI $form)
+ Here is the call graph for this function:

◆ viewObject()

ilObjFolderGUI::viewObject ( )

Definition at line 71 of file class.ilObjFolderGUI.php.

References $GLOBALS, ilLearningProgress\_tracProgress(), ilObjectGUI\checkPermission(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\object(), and renderObject().

Referenced by executeCommand().

71  : void
72  {
73  $this->checkPermission('read');
74  if (strtolower($this->folder_request->getBaseClass()) === "iladministrationgui") {
75  parent::viewObject();
76  return;
77  }
78 
79  // Trac access - see ilObjCourseGUI
81  $GLOBALS["ilUser"]->getId(),
82  $this->object->getId(),
83  $this->object->getRefId(),
84  'fold'
85  );
86 
87  $this->renderObject();
88  $this->tabs_gui->setTabActive('view_content');
89  }
static _tracProgress(int $a_user_id, int $a_obj_id, int $a_ref_id, string $a_obj_type='')
$GLOBALS["DIC"]
Definition: wac.php:53
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $folder_request

StandardGUIRequest ilObjFolderGUI::$folder_request
protected

Definition at line 39 of file class.ilObjFolderGUI.php.

◆ $folder_tree

ilTree ilObjFolderGUI::$folder_tree

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

◆ $help

ilHelpGUI ilObjFolderGUI::$help
protected

Definition at line 37 of file class.ilObjFolderGUI.php.

Referenced by getTabs().


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