ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjFolderGUI Class Reference

Class ilObjFolderGUI. More...

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

Public Member Functions

 __construct ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=false)
 Constructor @access public. More...
 
 viewObject ()
 View folder. More...
 
 renderObject ()
 Render folder. More...
 
 executeCommand ()
 execute command note: this method is overwritten in all container objects More...
 
 setFolderTree ($a_tree)
 set tree More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import file object @global type $lng. More...
 
 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 ()
 show information screen More...
 
 getTabs ()
 Get tabs. More...
 
 downloadFolderObject ()
 
 modifyItemGUI ($a_item_list_gui, $a_item_data, $a_show_path)
 Modify Item ListGUI for presentation in container @global type $tree. More...
 
 editObject ()
 Edit. More...
 
 setSubTabs ($a_tab)
 Set sub tabs. More...
 
 editIconsObject ($a_form=null)
 Edit folder icons. More...
 
 initIconsForm ()
 
 updateIconsObject ()
 update container icons More...
 
- Public Member Functions inherited from ilObjectGUI
 executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 
- Public Member Functions inherited from ilContainerGUI
 __construct ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
 executeCommand ()
 execute command note: this method is overwritten in all container objects More...
 
 forwardToStyleSheet ()
 Forward to style object. More...
 
forwardToPageObject ()
 forward command to page object More...
 
 addPageTabs ()
 Add page tabs. More...
 
 getContainerPageHTML ()
 Get container page HTML. More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 showTreeFlatIcon ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 showPossibleSubObjects ()
 show possible sub objects selection list More...
 
 getContentGUI ()
 Get content gui object. More...
 
 renderObject ()
 render the object More...
 
 setContentSubTabs ()
 Set content sub tabs. More...
 
 showAdministrationPanel (&$tpl)
 show administration panel More...
 
 __showTimingsButton (&$tpl)
 
 showPermanentLink (&$tpl)
 show permanent link More...
 
 switchToStdEditorObject ()
 Switch to standard page editor. More...
 
 switchToOldEditorObject ()
 Switch to old page editor. More...
 
 useNewEditorObject ()
 Use new editor (-> delete xhtml content page) More...
 
 editPageFrameObject ()
 show page editor frameset More...
 
 editPageContentObject ()
 edit page content (for repository root node and categories) More...
 
 savePageContentObject ()
 
 cancelPageContentObject ()
 
 showLinkListObject ()
 
 clearAdminCommandsDetermination ()
 cleaer administration commands determination More...
 
newBlockTemplate ()
 determin admin commands More...
 
 addHeaderRow (&$a_tpl, $a_type, $a_show_image=true)
 adds a header row to a block template More...
 
 addStandardRow (&$a_tpl, $a_html, $a_item_ref_id="", $a_item_obj_id="", $a_image_type="")
 adds a standard row to a block template More...
 
 addMessageRow (&$a_tpl, $a_message, $a_type)
 add message row More...
 
 resetRowType ()
 
 setPageEditorTabs ()
 Add page editor tabs. More...
 
 addStandardContainerSubTabs ($a_include_view=true)
 Add standar container subtabs for view, manage, oderdering and text/media editor link. More...
 
 getTabs ()
 common tabs for all container objects (should be called at the end of child getTabs() method More...
 
 enableAdministrationPanelObject ()
 enable administration panel More...
 
 disableAdministrationPanelObject ()
 enable administration panel More...
 
 editOrderObject ()
 Edit order. More...
 
 isActiveOrdering ()
 Check if ordering is enabled. More...
 
 isActiveItemOrdering ()
 Check if item ordering is enabled. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
 enableMultiDownloadObject ()
 
 isMultiDownloadEnabled ()
 
 lockObject ()
 
 cutObject ()
 cut object(s) out from a container and write the information to clipboard 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 ()
 
 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 ()
 Show paste tree. More...
 
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent. More...
 
 keepObjectsInClipboardObject ()
 Keep objects in the clipboard. More...
 
 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 ()
 show clipboard More...
 
 showCustomIconsEditing ($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
 show edit section of custom icons for container More...
 
 isActiveAdministrationPanel ()
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 allowBlocksMoving ()
 Standard is to allow blocks moving. More...
 
 allowBlocksConfigure ()
 Standard is to allow blocks configuration. More...
 
 cloneWizardPageTreeObject ()
 @access public More...
 
 cloneWizardPageListObject ()
 @access public More...
 
 cloneWizardPageObject ($a_tree_view=true)
 Show clone wizard page for container objects. More...
 
 cloneAllObject ()
 Clone all object Overwritten method for copying container objects. More...
 
 saveSortingObject ()
 Save Sorting. More...
 
 cloneNodes ($srcRef, $dstRef, &$mapping, $newName=null)
 Recursively clones all nodes of the RBAC tree. More...
 
 modifyItemGUI ($a_item_list_gui, $a_item_data, $a_show_path)
 Modify list gui for presentation in container @global type $lng. More...
 
 editStylePropertiesObject ()
 Edit style properties. More...
 
 initStylePropertiesForm ()
 Init style properties form. More...
 
 createStyleObject ()
 Create Style. More...
 
 editStyleObject ()
 Edit Style. More...
 
 deleteStyleObject ()
 Delete Style. More...
 
 saveStyleSettingsObject ()
 Save style settings. More...
 
 getAsynchItemListObject ()
 Get item list command drop down asynchronously. More...
 
 redrawListItemObject ()
 Redraw a list item (ajax) More...
 
 showRepTree ()
 Show tree. More...
 
 trashObject ()
 Show trash content of object. More...
 
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method More...
 
 undeleteObject ()
 Get objects back from trash. More...
 
 confirmRemoveFromSystemObject ()
 confirmation screen remove from system More...
 
 setSideColumnReturn ()
 Set return point for side column actions. More...
 
 addToDeskObject ()
 Add desktop item @access public. More...
 
 removeFromDeskObject ()
 Remove from desktop @access public. More...
 

Static Public Member Functions

static _goto ($a_target)
 goto target group More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 
- Static Public Member Functions inherited from ilContainerGUI
static _buildPath ($a_ref_id, $a_course_ref_id)
 build path More...
 

Data Fields

 $folder_tree
 
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Data Fields inherited from ilContainerGUI
 $bl_cnt = 1
 
 $multi_download_enabled = false
 

Protected Member Functions

 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 forwardToTimingsView ()
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTabs ()
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_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 $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 
- Protected Member Functions inherited from ilContainerGUI
 getEditFormValues ()
 Get values for edit form. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 showPasswordInstructionObject ($a_init=true)
 Show webdav password instruction. More...
 
 initFormPasswordInstruction ()
 Init password form. More...
 
 savePasswordObject ()
 Save password. More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add file manager link. More...
 
 fileManagerLaunchObject ()
 Launch jnlp. More...
 
 initSortingForm (ilPropertyFormGUI $form, array $a_sorting_settings)
 Append sorting settings to property form. More...
 
 initSortingDirectionForm (ilContainerSortingSettings $sorting_settings, $element, $a_prefix)
 Add sorting direction. More...
 
 initManualSortingOptionForm (ilContainerSortingSettings $settings, $element, $a_prefix, $a_sorting_settings)
 Add manual sorting options. More...
 
 saveSortingSettings (ilPropertyFormGUI $form)
 Save sorting settings. More...
 
 getTreeSelectorGUI ($cmd)
 

Protected Attributes

 $help
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $rbacsystem
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
- Protected Attributes inherited from ilContainerGUI
 $rbacsystem
 
 $tabs
 
 $settings
 
 $user
 
 $db
 
 $access
 
 $error
 
 $obj_definition
 
 $rbacadmin
 
 $rbacreview
 
 $log
 
 $obj_data_cache
 
 $toolbar
 
 $plugin_admin
 
 $app_event_handler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Constructor @access public.

Reimplemented from ilContainerGUI.

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

37 {
38 global $DIC;
39
40 $this->tree = $DIC->repositoryTree();
41 $this->tabs = $DIC->tabs();
42 $this->user = $DIC->user();
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
45 $this->access = $DIC->access();
46 $this->rbacsystem = $DIC->rbac()->system();
47 $this->help = $DIC["ilHelp"];
48 $this->error = $DIC["ilErr"];
49 $this->tpl = $DIC["tpl"];
50 $this->settings = $DIC->settings();
51 $this->type = "fold";
52 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output, false);
53 }
user()
Definition: user.php:4
error($a_errmsg)
set error message @access public
global $DIC
Definition: saml.php:7
settings()
Definition: settings.php:2

References $DIC, error(), settings(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjFolderGUI::_goto (   $a_target)
static

goto target group

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

453 {
454 global $DIC;
455
456 $ilAccess = $DIC->access();
457 $ilErr = $DIC["ilErr"];
458 $lng = $DIC->language();
459
460 if ($ilAccess->checkAccess("read", "", $a_target)) {
462 }
463 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
464 }
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.

References $DIC, ilObjectGUI\$ilErr, ilObjectGUI\$lng, and ilObjectGUI\_gotoRepositoryNode().

+ Here is the call graph for this function:

◆ afterSave()

ilObjFolderGUI::afterSave ( ilObject  $a_new_object)
protected

Post (successful) object creation hook.

Parameters
ilObject$a_new_object

Reimplemented from ilObjectGUI.

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

288 {
289 include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
290 $sort = new ilContainerSortingSettings($a_new_object->getId());
291 $sort->setSortMode(ilContainer::SORT_INHERIT);
292 $sort->update();
293
294 // always send a message
295 ilUtil::sendSuccess($this->lng->txt("fold_added"), true);
296 $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
297 $this->redirectToRefId($a_new_object->getRefId(), "");
298 }
redirectToRefId($a_ref_id, $a_cmd="")
redirects to (repository) view per ref id usually to a container and usually used at the end of a sav...
getRefId()
get reference id @access public
getId()
get object id @access public
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References ilObject\getId(), ilObject\getRefId(), ilObjectGUI\redirectToRefId(), ilUtil\sendSuccess(), and ilContainer\SORT_INHERIT.

+ Here is the call graph for this function:

◆ downloadFolderObject()

ilObjFolderGUI::downloadFolderObject ( )

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

468 {
469 $ilAccess = $this->access;
472
473 if (!$ilAccess->checkAccess("read", "", $this->ref_id)) {
474 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
475 }
476 $filename = $this->object->downloadFolder();
477 ilUtil::deliverFile($filename, ilUtil::getASCIIFilename($this->object->getTitle() . ".zip"));
478 }
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
redirection script todo: (a better solution should control the processing via a xml file)

References ilContainerGUI\$access, ilContainerGUI\$error, $filename, ilObjectGUI\$ilErr, ilObjectGUI\$lng, ilUtil\deliverFile(), and ilUtil\getASCIIFilename().

+ Here is the call graph for this function:

◆ editIconsObject()

ilObjFolderGUI::editIconsObject (   $a_form = null)

Edit folder icons.

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

598 {
600
601 $this->checkPermission('write');
602
603 $this->tabs_gui->setTabActive('settings');
604
605 if (!$a_form) {
606 $a_form = $this->initIconsForm();
607 }
608
609 $tpl->setContent($a_form->getHTML());
610 }
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), and initIconsForm().

Referenced by updateIconsObject().

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

◆ editObject()

ilObjFolderGUI::editObject ( )

Edit.

Parameters

return

Reimplemented from ilObjectGUI.

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

542 {
543 $ilTabs = $this->tabs;
545
546 $this->setSubTabs("settings");
547 $ilTabs->activateTab("settings");
548
549 if (!$this->checkPermissionBool("write")) {
550 $ilErr->raiseError($this->lng->txt("msg_no_perm_write"), $ilErr->MESSAGE);
551 }
552
553 $form = $this->initEditForm();
554 $values = $this->getEditFormValues();
555 if ($values) {
556 $form->setValuesByArray($values, true);
557 }
558 $GLOBALS['tpl']->setContent($form->getHTML());
559 }
getEditFormValues()
Get values for edit form.
setSubTabs($a_tab)
Set sub tabs.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
initEditForm()
Init object edit form.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(isset($_POST['submit'])) $form

References ilContainerGUI\$error, $form, $GLOBALS, ilObjectGUI\$ilErr, ilContainerGUI\$tabs, ilObjectGUI\checkPermissionBool(), ilContainerGUI\getEditFormValues(), ilObjectGUI\initEditForm(), and setSubTabs().

+ Here is the call graph for this function:

◆ executeCommand()

ilObjFolderGUI::executeCommand ( )

execute command note: this method is overwritten in all container objects

Reimplemented from ilContainerGUI.

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

99 {
102
103 $next_class = $this->ctrl->getNextClass($this);
104 $cmd = $this->ctrl->getCmd();
105
106 // show repository tree
107 $this->showRepTree();
108
109 switch ($next_class) {
110 case 'ilpermissiongui':
111 $this->prepareOutput();
112 $this->tabs_gui->setTabActive('perm_settings');
113 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
114 $perm_gui = new ilPermissionGUI($this);
115 $ret =&$this->ctrl->forwardCommand($perm_gui);
116 break;
117
118 case 'ilcoursecontentgui':
119 $this->prepareOutput();
120 include_once './Modules/Course/classes/class.ilCourseContentGUI.php';
121 $course_content_obj = new ilCourseContentGUI($this);
122 $this->ctrl->forwardCommand($course_content_obj);
123 break;
124
125 case "illearningprogressgui":
126 $this->prepareOutput();
127 include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
128
129 $new_gui = new ilLearningProgressGUI(
131 $this->object->getRefId(),
132 $_GET['user_id'] ? $_GET['user_id'] : $ilUser->getId()
133 );
134 $this->ctrl->forwardCommand($new_gui);
135 $this->tabs_gui->setTabActive('learning_progress');
136 break;
137
138 // container page editing
139 case "ilcontainerpagegui":
140 $this->prepareOutput(false);
141 $ret = $this->forwardToPageObject();
142 if ($ret != "") {
143 $this->tpl->setContent($ret);
144 }
145 break;
146
147 case 'ilinfoscreengui':
148 $this->prepareOutput();
149 $this->infoScreen();
150 break;
151
152 case 'ilobjectcopygui':
153 $this->prepareOutput();
154
155 include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
156 $cp = new ilObjectCopyGUI($this);
157 $cp->setType('fold');
158 $this->ctrl->forwardCommand($cp);
159 break;
160
161 case "ilobjstylesheetgui":
162 $this->forwardToStyleSheet();
163 break;
164
165 case 'ilexportgui':
166 $this->prepareOutput();
167
168 $this->tabs_gui->setTabActive('export');
169 include_once './Services/Export/classes/class.ilExportGUI.php';
170 $exp = new ilExportGUI($this);
171 $exp->addFormat('xml');
172 $this->ctrl->forwardCommand($exp);
173 break;
174
175 case "ilcommonactiondispatchergui":
176 include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
178 $this->ctrl->forwardCommand($gui);
179 break;
180
181 case 'ildidactictemplategui':
182 $this->ctrl->setReturn($this, 'edit');
183 include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
184 $did = new ilDidacticTemplateGUI($this);
185 $this->ctrl->forwardCommand($did);
186 break;
187 case 'ilcolumngui':
188 $this->tabs_gui->setTabActive('none');
189 $this->checkPermission("read");
190 $this->viewObject();
191 break;
192
193 case 'ilbackgroundtaskhub':
194 include_once './Services/BackgroundTask/classes/class.ilBackgroundTaskHub.php';
195 $bggui = new ilBackgroundTaskHub();
196 $this->ctrl->forwardCommand($bggui);
197 break;
198
199 default:
200
201 $this->prepareOutput();
202 // Dirty hack for course timings view
203 if ($this->forwardToTimingsView()) {
204 break;
205 }
206
207 if (empty($cmd)) {
208 $cmd = "view";
209 }
210 $cmd .= "Object";
211 $this->$cmd();
212 break;
213 }
214
215 $this->addHeaderAction();
216 }
$_GET["client_id"]
background task hub (aka ajax handler, GUI)
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
& forwardToPageObject()
forward command to page object
prepareOutput($a_show_subobjects=true)
prepare output
forwardToStyleSheet()
Forward to style object.
Class ilCourseContentGUI.
GUI class for didactic template settings inside repository objects.
Export User Interface Class.
Class ilObjUserTrackingGUI.
viewObject()
View folder.
infoScreen()
show information screen
GUI class for the workflow of copying objects.
addHeaderAction()
Add header action menu.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
global $ilCtrl
Definition: ilias.php:18
$ret
Definition: parser.php:6
$ilUser
Definition: imgupload.php:18

References $_GET, ilObjectGUI\$ctrl, $ilCtrl, $ilUser, $ret, ilContainerGUI\$user, ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ilContainerGUI\forwardToPageObject(), ilContainerGUI\forwardToStyleSheet(), forwardToTimingsView(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreen(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, ilContainerGUI\prepareOutput(), ilContainerGUI\showRepTree(), and viewObject().

+ Here is the call graph for this function:

◆ forwardToTimingsView()

ilObjFolderGUI::forwardToTimingsView ( )
protected

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

510 {
512
513 if (!$crs_ref = $tree->checkForParentType($this->ref_id, 'crs')) {
514 return false;
515 }
516 include_once './Modules/Course/classes/class.ilObjCourse.php';
517 if (!$this->ctrl->getCmd() and ilObjCourse::_lookupViewMode(ilObject::_lookupObjId($crs_ref)) == ilContainer::VIEW_TIMING) {
518 if (!isset($_SESSION['crs_timings'])) {
519 $_SESSION['crs_timings'] = true;
520 }
521
522 if ($_SESSION['crs_timings'] == true) {
523 include_once './Modules/Course/classes/class.ilCourseContentGUI.php';
524 $course_content_obj = new ilCourseContentGUI($this);
525 $this->ctrl->setCmdClass(get_class($course_content_obj));
526 $this->ctrl->setCmd('editUserTimings');
527 $this->ctrl->forwardCommand($course_content_obj);
528 return true;
529 }
530 }
531 $_SESSION['crs_timings'] = false;
532 return false;
533 }
$_SESSION["AccountId"]
static _lookupViewMode($a_id)
lookup view mode of container
static _lookupObjId($a_id)

References $_SESSION, ilObjectGUI\$tree, ilObject\_lookupObjId(), ilObjCourse\_lookupViewMode(), and ilContainer\VIEW_TIMING.

Referenced by executeCommand().

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

◆ getEditFormCustomValues()

ilObjFolderGUI::getEditFormCustomValues ( array &  $a_values)
protected

Add values to custom edit fields.

Parameters
array$a_values

Reimplemented from ilObjectGUI.

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

261 {
262 // we cannot use $this->object->getOrderType()
263 // if set to inherit it will be translated to parent setting
264 include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
265 $sort = new ilContainerSortingSettings($this->object->getId());
266 $a_values["sor"] = $sort->getSortMode();
267 }

◆ getTabs()

ilObjFolderGUI::getTabs ( )

Get tabs.

Reimplemented from ilContainerGUI.

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

359 {
363 $ilAccess = $this->access;
364 $ilHelp = $this->help;
365
366 $this->ctrl->setParameter($this, "ref_id", $this->ref_id);
367
368 $ilHelp->setScreenIdComponent("fold");
369
370 $this->tabs_gui->setTabActive("");
371 if ($rbacsystem->checkAccess('read', $this->ref_id)) {
372 $this->tabs_gui->addTab(
373 "view_content",
374 $lng->txt("content"),
375 $this->ctrl->getLinkTarget($this, "")
376 );
377
378 //BEGIN ChangeEvent add info tab to category object
379 $force_active = ($this->ctrl->getNextClass() == "ilinfoscreengui"
380 || strtolower($_GET["cmdClass"]) == "ilnotegui")
381 ? true
382 : false;
383 $this->tabs_gui->addTarget(
384 "info_short",
385 $this->ctrl->getLinkTargetByClass(
386 array("ilobjfoldergui", "ilinfoscreengui"),
387 "showSummary"
388 ),
389 array("showSummary","", "infoScreen"),
390 "",
391 "",
392 $force_active
393 );
394 //END ChangeEvent add info tab to category object
395 }
396
397 if ($rbacsystem->checkAccess('write', $this->ref_id)) {
398 $this->tabs_gui->addTarget(
399 "settings",
400 $this->ctrl->getLinkTarget($this, "edit"),
401 "edit",
402 "",
403 "",
404 ($ilCtrl->getCmd() == "edit")
405 );
406 }
407
408 // learning progress
409 include_once './Services/Tracking/classes/class.ilLearningProgressAccess.php';
410 if (ilLearningProgressAccess::checkAccess($this->object->getRefId())) {
411 $this->tabs_gui->addTarget(
412 'learning_progress',
413 $this->ctrl->getLinkTargetByClass(array('ilobjfoldergui','illearningprogressgui'), ''),
414 '',
415 array('illplistofobjectsgui','illplistofsettingsgui','illearningprogressgui','illplistofprogressgui')
416 );
417 }
418
419 if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
420 $this->tabs_gui->addTarget(
421 'export',
422 $this->ctrl->getLinkTargetByClass('ilexportgui', ''),
423 'export',
424 'ilexportgui'
425 );
426 }
427
428
429 if ($rbacsystem->checkAccess('edit_permission', $this->ref_id)) {
430 $this->tabs_gui->addTarget(
431 "perm_settings",
432 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
433 array("perm","info","owner"),
434 'ilpermissiongui'
435 );
436 }
437
438 // show clipboard in repository
439 if ($_GET["baseClass"] == "ilRepositoryGUI" and !empty($_SESSION['il_rep_clipboard'])) {
440 $this->tabs_gui->addTarget(
441 "clipboard",
442 $this->ctrl->getLinkTarget($this, "clipboard"),
443 "clipboard",
444 get_class($this)
445 );
446 }
447 }
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress

References $_GET, $_SESSION, ilContainerGUI\$access, ilObjectGUI\$ctrl, $help, $ilCtrl, ilObjectGUI\$lng, ilContainerGUI\$rbacsystem, and ilLearningProgressAccess\checkAccess().

+ Here is the call graph for this function:

◆ importFileObject()

ilObjFolderGUI::importFileObject (   $parent_id = null,
  $a_catch_errors = true 
)

Import file object @global type $lng.

Parameters
type$parent_id
type$a_catch_errors

Reimplemented from ilObjectGUI.

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

233 {
235
236 if (parent::importFileObject($parent_id, $a_catch_errors)) {
237 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
238 $this->ctrl->returnToParent($this);
239 }
240 }

References ilObjectGUI\$lng, and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ infoScreen()

ilObjFolderGUI::infoScreen ( )

show information screen

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

316 {
317 $ilAccess = $this->access;
318
319 if (!$ilAccess->checkAccess("visible", "", $this->ref_id)) {
320 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
321 }
322
323 include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
324 $info = new ilInfoScreenGUI($this);
325
326 $GLOBALS['ilTabs']->activateTab('info_short');
327
328 $info->enablePrivateNotes();
329
330 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
331 $info->enableNews();
332 }
333
334 // no news editing for files, just notifications
335 $info->enableNewsEditing(false);
336 if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
337 $news_set = new ilSetting("news");
338 $enable_internal_rss = $news_set->get("enable_rss_for_internal");
339
340 if ($enable_internal_rss) {
341 $info->setBlockProperty("news", "settings", true);
342 $info->setBlockProperty("news", "public_notifications_option", true);
343 }
344 }
345
346
347 // standard meta data
348 $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
349
350 // forward the command
351 $this->ctrl->forwardCommand($info);
352 }
Class ilInfoScreenGUI.
ILIAS Setting Class.
$info
Definition: index.php:5

References $_GET, ilContainerGUI\$access, $GLOBALS, and $info.

Referenced by executeCommand(), infoScreenObject(), and showSummaryObject().

+ 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 305 of file class.ilObjFolderGUI.php.

306 {
307 $this->ctrl->setCmd("showSummary");
308 $this->ctrl->setCmdClass("ilinfoscreengui");
309 $this->infoScreen();
310 }

References infoScreen().

+ Here is the call graph for this function:

◆ initEditCustomForm()

ilObjFolderGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected

Add custom fields to update form.

Parameters
ilPropertyFormGUI$a_form

Reimplemented from ilObjectGUI.

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

245 {
246 // Show didactic template type
247 $this->initDidacticTemplate($a_form);
248
249 $this->initSortingForm(
250 $a_form,
251 array(
256 )
257 );
258 }
initSortingForm(ilPropertyFormGUI $form, array $a_sorting_settings)
Append sorting settings to property form.
initDidacticTemplate(ilPropertyFormGUI $form)
Show didactic template types.

References ilObjectGUI\initDidacticTemplate(), ilContainerGUI\initSortingForm(), ilContainer\SORT_CREATION, ilContainer\SORT_INHERIT, ilContainer\SORT_MANUAL, and ilContainer\SORT_TITLE.

+ Here is the call graph for this function:

◆ initIconsForm()

ilObjFolderGUI::initIconsForm ( )

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

613 {
614 $this->setSubTabs("icons");
615
616 include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
617 $form = new ilPropertyFormGUI();
618 $form->setFormAction($this->ctrl->getFormAction($this));
619
620 $this->showCustomIconsEditing(1, $form);
621
622 // $form->setTitle($this->lng->txt('edit_grouping'));
623 $form->addCommandButton('updateIcons', $this->lng->txt('save'));
624
625 return $form;
626 }
showCustomIconsEditing($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
show edit section of custom icons for container
This class represents a property form user interface.

References $form, setSubTabs(), and ilContainerGUI\showCustomIconsEditing().

Referenced by editIconsObject(), and updateIconsObject().

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

◆ modifyItemGUI()

ilObjFolderGUI::modifyItemGUI (   $a_item_list_gui,
  $a_item_data,
  $a_show_path 
)

Modify Item ListGUI for presentation in container @global type $tree.

Parameters
type$a_item_list_gui
type$a_item_data
type$a_show_path

Reimplemented from ilContainerGUI.

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

488 {
490
491 // if folder is in a course, modify item list gui according to course requirements
492 if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(), 'crs')) {
493 include_once("./Modules/Course/classes/class.ilObjCourse.php");
494 include_once("./Modules/Course/classes/class.ilObjCourseGUI.php");
495 $course_obj_id = ilObject::_lookupObjId($course_ref_id);
497 $a_item_list_gui,
498 'ilcoursecontentgui',
499 $a_item_data,
500 $a_show_path,
501 ilObjCourse::_lookupAboStatus($course_obj_id),
502 $course_ref_id,
503 $course_obj_id,
504 $this->object->getRefId()
505 );
506 }
507 }
static _modifyItemGUI( $a_item_list_gui, $a_cmd_class, $a_item_data, $a_show_path, $a_abo_status, $a_course_ref_id, $a_course_obj_id, $a_parent_ref_id=0)
We need a static version of this, e.g.
static _lookupAboStatus($a_id)

References ilObjectGUI\$tree, ilObjCourse\_lookupAboStatus(), ilObject\_lookupObjId(), and ilObjCourseGUI\_modifyItemGUI().

+ Here is the call graph for this function:

◆ renderObject()

ilObjFolderGUI::renderObject ( )

Render folder.

Reimplemented from ilContainerGUI.

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

88 {
89 $ilTabs = $this->tabs;
90
91 $this->checkPermission('read');
92
93 $ilTabs->activateTab("view_content");
94 $ret = parent::renderObject();
95 return $ret;
96 }

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

Referenced by viewObject().

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

◆ setFolderTree()

ilObjFolderGUI::setFolderTree (   $a_tree)

set tree

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

222 {
223 $this->folder_tree =&$a_tree;
224 }

◆ setSubTabs()

ilObjFolderGUI::setSubTabs (   $a_tab)

Set sub tabs.

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

566 {
567 $ilTabs = $this->tabs;
569
570 $ilTabs->addSubTab(
571 "settings",
572 $lng->txt("fold_settings"),
573 $this->ctrl->getLinkTarget($this, 'edit')
574 );
575
576 // custom icon
577 if ($this->ilias->getSetting("custom_icons")) {
578 $ilTabs->addSubTab(
579 "icons",
580 $lng->txt("icon_settings"),
581 $this->ctrl->getLinkTarget($this, 'editIcons')
582 );
583 }
584
585 $ilTabs->activateSubTab($a_tab);
586 $ilTabs->activateTab("settings");
587 }

References ilObjectGUI\$lng, and ilContainerGUI\$tabs.

Referenced by editObject(), and initIconsForm().

+ Here is the caller 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 280 of file class.ilObjFolderGUI.php.

281 {
282 $this->ctrl->setCmd("showSummary");
283 $this->ctrl->setCmdClass("ilinfoscreengui");
284 $this->infoScreen();
285 }

References infoScreen().

+ Here is the call graph for this function:

◆ updateCustom()

ilObjFolderGUI::updateCustom ( ilPropertyFormGUI  $a_form)
protected

Insert custom update form values into object.

Parameters
ilPropertyFormGUI$a_form

Reimplemented from ilObjectGUI.

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

270 {
271 $this->saveSortingSettings($a_form);
272 }
saveSortingSettings(ilPropertyFormGUI $form)
Save sorting settings.

References ilContainerGUI\saveSortingSettings().

+ Here is the call graph for this function:

◆ updateIconsObject()

ilObjFolderGUI::updateIconsObject ( )

update container icons

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

632 {
634
635 $this->checkPermission('write');
636
637 $form = $this->initIconsForm();
638 if ($form->checkInput()) {
639 //save custom icons
640 if ($ilSetting->get("custom_icons")) {
641 if ($_POST["cont_icon_delete"]) {
642 $this->object->removeCustomIcon();
643 }
644 $this->object->saveIcons($_FILES["cont_icon"]['tmp_name']);
645 }
646 if ($_FILES["cont_icon"]['tmp_name'] || $_POST["cont_icon_delete"]) {
647 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
648 }
649 $this->ctrl->redirect($this, "editIcons");
650 }
651
652 $form->setValuesByPost();
653 $this->editIconsObject($form);
654 }
$_POST["username"]
editIconsObject($a_form=null)
Edit folder icons.
global $ilSetting
Definition: privfeed.php:17

References $_POST, $form, $ilSetting, ilContainerGUI\$settings, ilObjectGUI\checkPermission(), editIconsObject(), initIconsForm(), and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ viewObject()

ilObjFolderGUI::viewObject ( )

View folder.

Reimplemented from ilObjectGUI.

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

60 {
62
63 $this->checkPermission('read');
64
65 if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
66 parent::viewObject();
67 return true;
68 }
69
70 // Trac access - see ilObjCourseGUI
71 include_once 'Services/Tracking/classes/class.ilLearningProgress.php';
73 $GLOBALS["ilUser"]->getId(),
74 $this->object->getId(),
75 $this->object->getRefId(),
76 'fold'
77 );
78
79 $this->renderObject();
80 $this->tabs_gui->setTabActive('view_content');
81 return true;
82 }
static _tracProgress($a_user_id, $a_obj_id, $a_ref_id, $a_obj_type='')
renderObject()
Render folder.

References $_GET, $GLOBALS, ilObjectGUI\$tree, ilLearningProgress\_tracProgress(), ilObjectGUI\checkPermission(), and renderObject().

Referenced by executeCommand().

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

Field Documentation

◆ $folder_tree

ilObjFolderGUI::$folder_tree

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

◆ $help

ilObjFolderGUI::$help
protected

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

Referenced by getTabs().


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