ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
ilObjFolderGUI Class Reference

Class ilObjFolderGUI. More...

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

Public Member Functions

 ilObjFolderGUI ($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 ()
 Import object. 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 (&$tabs_gui)
 Get tabs. More...
 
 downloadFolderObject ()
 
 modifyItemGUI ($a_item_list_gui, $a_item_data, $a_show_path)
 Modify Item ListGUI for presentation in container. 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
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
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...
 
 getAdminTabs (&$tabs_gui)
 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 ($in_rep=false)
 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...
 
 editObject ()
 edit object More...
 
 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
 ilContainerGUI ($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 (&$tabs_gui)
 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 ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once. 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 ($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 Item ListGUI for presentation in container. 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 ($a_initial_call=false)
 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...
 
 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
 
 $ilias
 
 $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 ()
 
 prepareOutput ()
 prepare output More...
 
 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...
 
 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...
 
 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)
 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...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 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 ($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)
 

Detailed Description

Member Function Documentation

◆ _goto()

static ilObjFolderGUI::_goto (   $a_target)
static

goto target group

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

399 {
400 global $ilAccess, $ilErr, $lng;
401
402 if ($ilAccess->checkAccess("read", "", $a_target))
403 {
405 }
406 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
407 }
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.

References $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 253 of file class.ilObjFolderGUI.php.

254 {
255 include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
256 $sort = new ilContainerSortingSettings($a_new_object->getId());
257 $sort->setSortMode(ilContainer::SORT_INHERIT);
258 $sort->update();
259
260 // always send a message
261 ilUtil::sendSuccess($this->lng->txt("fold_added"),true);
262 $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
263 $this->redirectToRefId($a_new_object->getRefId(), "");
264 }
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 410 of file class.ilObjFolderGUI.php.

410 {
411 global $ilAccess, $ilErr, $lng;
412
413 if (!$ilAccess->checkAccess("read", "", $this->ref_id))
414 {
415 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
416 }
417 $filename = $this->object->downloadFolder();
418 ilUtil::deliverFile($filename, ilUtil::getASCIIFilename($this->object->getTitle().".zip"));
419 }
$filename
Definition: buildRTE.php:89
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
redirection script todo: (a better solution should control the processing via a xml file)

References $filename, $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 527 of file class.ilObjFolderGUI.php.

528 {
529 global $tpl;
530
531 $this->checkPermission('write');
532
533 $this->tabs_gui->setTabActive('settings');
534
535 if(!$a_form)
536 {
537 $a_form = $this->initIconsForm();
538 }
539
540 $tpl->setContent($a_form->getHTML());
541 }
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 474 of file class.ilObjFolderGUI.php.

475 {
476 global $ilTabs, $ilErr;
477
478 $this->setSubTabs("settings");
479 $ilTabs->activateTab("settings");
480
481 if (!$this->checkPermissionBool("write"))
482 {
483 $ilErr->raiseError($this->lng->txt("msg_no_perm_write"),$ilErr->MESSAGE);
484 }
485
486 $form = $this->initEditForm();
487 $values = $this->getEditFormValues();
488 if($values)
489 {
490 $form->setValuesByArray($values,TRUE);
491 }
492 $GLOBALS['tpl']->setContent($form->getHTML());
493 }
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['ct_recipient']

References $GLOBALS, $ilErr, 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 70 of file class.ilObjFolderGUI.php.

71 {
72 global $ilUser,$ilCtrl;
73
74 $next_class = $this->ctrl->getNextClass($this);
75 $cmd = $this->ctrl->getCmd();
76
77 // show repository tree
78 $this->showRepTree(true);
79
80 switch ($next_class)
81 {
82 case 'ilpermissiongui':
83 $this->prepareOutput();
84 $this->tabs_gui->setTabActive('perm_settings');
85 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
86 $perm_gui =& new ilPermissionGUI($this);
87 $ret =& $this->ctrl->forwardCommand($perm_gui);
88 break;
89
90 case 'ilcoursecontentgui':
91 $this->prepareOutput();
92 include_once './Modules/Course/classes/class.ilCourseContentGUI.php';
93 $course_content_obj = new ilCourseContentGUI($this);
94 $this->ctrl->forwardCommand($course_content_obj);
95 break;
96
97 case "illearningprogressgui":
98 $this->prepareOutput();
99 include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
100
102 $this->object->getRefId(),
103 $_GET['user_id'] ? $_GET['user_id'] : $ilUser->getId());
104 $this->ctrl->forwardCommand($new_gui);
105 $this->tabs_gui->setTabActive('learning_progress');
106 break;
107
108 // container page editing
109 case "ilcontainerpagegui":
110 $this->prepareOutput(false);
111 $ret = $this->forwardToPageObject();
112 if ($ret != "")
113 {
114 $this->tpl->setContent($ret);
115 }
116 break;
117
118 case 'ilinfoscreengui':
119 $this->prepareOutput();
120 $this->infoScreen();
121 break;
122
123 case 'ilobjectcopygui':
124 $this->prepareOutput();
125
126 include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
127 $cp = new ilObjectCopyGUI($this);
128 $cp->setType('fold');
129 $this->ctrl->forwardCommand($cp);
130 break;
131
132 case "ilobjstylesheetgui":
133 $this->forwardToStyleSheet();
134 break;
135
136 case 'ilexportgui':
137 $this->prepareOutput();
138
139 $this->tabs_gui->setTabActive('export');
140 include_once './Services/Export/classes/class.ilExportGUI.php';
141 $exp = new ilExportGUI($this);
142 $exp->addFormat('xml');
143 $this->ctrl->forwardCommand($exp);
144 break;
145
146 case "ilcommonactiondispatchergui":
147 include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
149 $this->ctrl->forwardCommand($gui);
150 break;
151
152 case 'ildidactictemplategui':
153 $this->ctrl->setReturn($this,'edit');
154 include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
155 $did = new ilDidacticTemplateGUI($this);
156 $this->ctrl->forwardCommand($did);
157 break;
158 case 'ilcolumngui':
159 $this->tabs_gui->setTabActive('none');
160 $this->checkPermission("read");
161 $this->viewObject();
162 break;
163
164 default:
165
166 $this->prepareOutput();
167 // Dirty hack for course timings view
168 if($this->forwardToTimingsView())
169 {
170 break;
171 }
172
173 if (empty($cmd))
174 {
175 $cmd = "view";
176 }
177 $cmd .= "Object";
178 $this->$cmd();
179 break;
180 }
181
182 $this->addHeaderAction();
183 }
$_GET["client_id"]
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
& forwardToPageObject()
forward command to page object
showRepTree($a_initial_call=false)
Show tree.
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.
prepareOutput()
prepare output
addHeaderAction()
Add header action menu.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35
global $ilUser
Definition: imgupload.php:15

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

+ Here is the call graph for this function:

◆ forwardToTimingsView()

ilObjFolderGUI::forwardToTimingsView ( )
protected

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

441 {
442 global $tree;
443
444 if(!$crs_ref = $tree->checkForParentType($this->ref_id, 'crs'))
445 {
446 return false;
447 }
448 include_once './Modules/Course/classes/class.ilObjCourse.php';
449 if(!$this->ctrl->getCmd() and ilObjCourse::_lookupViewMode(ilObject::_lookupObjId($crs_ref)) == ilContainer::VIEW_TIMING)
450 {
451 if(!isset($_SESSION['crs_timings'])) {
452 $_SESSION['crs_timings'] = true;
453 }
454
455 if($_SESSION['crs_timings'] == true) {
456 include_once './Modules/Course/classes/class.ilCourseContentGUI.php';
457 $course_content_obj = new ilCourseContentGUI($this);
458 $this->ctrl->setCmdClass(get_class($course_content_obj));
459 $this->ctrl->setCmd('editUserTimings');
460 $this->ctrl->forwardCommand($course_content_obj);
461 return true;
462 }
463 }
464 $_SESSION['crs_timings'] = false;
465 return false;
466 }
static _lookupObjId($a_id)
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

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

227 {
228 // we cannot use $this->object->getOrderType()
229 // if set to inherit it will be translated to parent setting
230 #include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
231 #$sort = new ilContainerSortingSettings($this->object->getId());
232 #$a_values["sor"] = $sort->getSortMode();
233 }

◆ getTabs()

ilObjFolderGUI::getTabs ( $tabs_gui)

Get tabs.

Reimplemented from ilContainerGUI.

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

327 {
328 global $rbacsystem, $ilUser, $lng, $ilCtrl,$ilAccess, $ilHelp;
329
330 $this->ctrl->setParameter($this,"ref_id",$this->ref_id);
331
332 $ilHelp->setScreenIdComponent("fold");
333
334 $tabs_gui->setTabActive("");
335 if ($rbacsystem->checkAccess('read',$this->ref_id))
336 {
337 $tabs_gui->addTab("view_content", $lng->txt("content"),
338 $this->ctrl->getLinkTarget($this, ""));
339
340 //BEGIN ChangeEvent add info tab to category object
341 $force_active = ($this->ctrl->getNextClass() == "ilinfoscreengui"
342 || strtolower($_GET["cmdClass"]) == "ilnotegui")
343 ? true
344 : false;
345 $tabs_gui->addTarget("info_short",
346 $this->ctrl->getLinkTargetByClass(
347 array("ilobjfoldergui", "ilinfoscreengui"), "showSummary"),
348 array("showSummary","", "infoScreen"),
349 "", "", $force_active);
350 //END ChangeEvent add info tab to category object
351 }
352
353 if ($rbacsystem->checkAccess('write',$this->ref_id))
354 {
355 $tabs_gui->addTarget("settings",
356 $this->ctrl->getLinkTarget($this, "edit"), "edit", "", "", ($ilCtrl->getCmd() == "edit"));
357 }
358
359 // learning progress
360 include_once './Services/Tracking/classes/class.ilLearningProgressAccess.php';
361 if(ilLearningProgressAccess::checkAccess($this->object->getRefId()))
362 {
363 $tabs_gui->addTarget('learning_progress',
364 $this->ctrl->getLinkTargetByClass(array('ilobjfoldergui','illearningprogressgui'),''),
365 '',
366 array('illplistofobjectsgui','illplistofsettingsgui','illearningprogressgui','illplistofprogressgui'));
367 }
368
369 if($ilAccess->checkAccess('write','',$this->object->getRefId()))
370 {
371 $tabs_gui->addTarget(
372 'export',
373 $this->ctrl->getLinkTargetByClass('ilexportgui',''),
374 'export',
375 'ilexportgui'
376 );
377 }
378
379
380 if ($rbacsystem->checkAccess('edit_permission',$this->ref_id))
381 {
382 $tabs_gui->addTarget("perm_settings",
383 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
384 }
385
386 // show clipboard in repository
387 if ($_GET["baseClass"] == "ilRepositoryGUI" and !empty($_SESSION['il_rep_clipboard']))
388 {
389 $tabs_gui->addTarget("clipboard",
390 $this->ctrl->getLinkTarget($this, "clipboard"), "clipboard", get_class($this));
391 }
392
393 }
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress

References $_GET, $_SESSION, $ilCtrl, $ilUser, ilObjectGUI\$lng, and ilLearningProgressAccess\checkAccess().

+ Here is the call graph for this function:

◆ ilObjFolderGUI()

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

Constructor @access public.

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

31 {
32 $this->type = "fold";
33 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output, false);
34 }

◆ importFileObject()

ilObjFolderGUI::importFileObject ( )

Import object.

Returns

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

198 {
199 global $lng;
200
201 if(parent::importFileObject())
202 {
203 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
204 $this->ctrl->returnToParent($this);
205 }
206 }

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

+ Here is the call graph for this function:

◆ infoScreen()

ilObjFolderGUI::infoScreen ( )

show information screen

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

282 {
283 global $ilAccess;
284
285 if (!$ilAccess->checkAccess("visible", "", $this->ref_id))
286 {
287 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
288 }
289
290 include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
291 $info = new ilInfoScreenGUI($this);
292
293 $info->enablePrivateNotes();
294
295 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
296 {
297 $info->enableNews();
298 }
299
300 // no news editing for files, just notifications
301 $info->enableNewsEditing(false);
302 if ($ilAccess->checkAccess("write", "", $_GET["ref_id"]))
303 {
304 $news_set = new ilSetting("news");
305 $enable_internal_rss = $news_set->get("enable_rss_for_internal");
306
307 if ($enable_internal_rss)
308 {
309 $info->setBlockProperty("news", "settings", true);
310 $info->setBlockProperty("news", "public_notifications_option", true);
311 }
312 }
313
314
315 // standard meta data
316 $info->addMetaDataSections($this->object->getId(),0, $this->object->getType());
317
318 // forward the command
319 $this->ctrl->forwardCommand($info);
320 }
Class ilInfoScreenGUI.
ILIAS Setting Class.

References $_GET.

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

272 {
273 $this->ctrl->setCmd("showSummary");
274 $this->ctrl->setCmdClass("ilinfoscreengui");
275 $this->infoScreen();
276 }

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

211 {
212 // Show didactic template type
213 $this->initDidacticTemplate($a_form);
214
215 $this->initSortingForm(
216 $a_form,
217 array(
222 )
223 );
224 }
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 543 of file class.ilObjFolderGUI.php.

544 {
545 $this->setSubTabs("icons");
546
547 include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
548 $form = new ilPropertyFormGUI();
549 $form->setFormAction($this->ctrl->getFormAction($this));
550
551 $this->showCustomIconsEditing(1, $form);
552
553 // $form->setTitle($this->lng->txt('edit_grouping'));
554 $form->addCommandButton('updateIcons', $this->lng->txt('save'));
555
556 return $form;
557 }
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 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.

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

425 {
426 global $tree;
427
428 // if folder is in a course, modify item list gui according to course requirements
429 if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(),'crs'))
430 {
431 include_once("./Modules/Course/classes/class.ilObjCourse.php");
432 include_once("./Modules/Course/classes/class.ilObjCourseGUI.php");
433 $course_obj_id = ilObject::_lookupObjId($course_ref_id);
434 ilObjCourseGUI::_modifyItemGUI($a_item_list_gui, 'ilcoursecontentgui', $a_item_data, $a_show_path,
435 ilObjCourse::_lookupAboStatus($course_obj_id), $course_ref_id, $course_obj_id,
436 $this->object->getRefId());
437 }
438 }
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.

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

60 {
61 global $ilTabs;
62
63 $this->checkPermission('read');
64
65 $ilTabs->activateTab("view_content");
66 $ret = parent::renderObject();
67 return $ret;
68 }

References $ret, 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 188 of file class.ilObjFolderGUI.php.

189 {
190 $this->folder_tree =& $a_tree;
191 }

◆ setSubTabs()

ilObjFolderGUI::setSubTabs (   $a_tab)

Set sub tabs.

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

500 {
501 global $ilTabs, $lng;
502
503 $ilTabs->addSubTab("settings",
504 $lng->txt("fold_settings"),
505 $this->ctrl->getLinkTarget($this,'edit'));
506
507 // custom icon
508 if ($this->ilias->getSetting("custom_icons"))
509 {
510 $ilTabs->addSubTab("icons",
511 $lng->txt("icon_settings"),
512 $this->ctrl->getLinkTarget($this,'editIcons'));
513 }
514
515 $ilTabs->activateSubTab($a_tab);
516 $ilTabs->activateTab("settings");
517 }

References ilObjectGUI\$lng.

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

247 {
248 $this->ctrl->setCmd("showSummary");
249 $this->ctrl->setCmdClass("ilinfoscreengui");
250 $this->infoScreen();
251 }

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

236 {
237 $this->saveSortingSettings($a_form);
238 }
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 562 of file class.ilObjFolderGUI.php.

563 {
564 global $ilSetting;
565
566 $this->checkPermission('write');
567
568 $form = $this->initIconsForm();
569 if($form->checkInput())
570 {
571 //save custom icons
572 if ($ilSetting->get("custom_icons"))
573 {
574 if($_POST["cont_icon_delete"])
575 {
576 $this->object->removeCustomIcon();
577 }
578 $this->object->saveIcons($_FILES["cont_icon"]['tmp_name']);
579 }
580 if ($_FILES["cont_icon"]['tmp_name'] || $_POST["cont_icon_delete"])
581 {
582 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
583 }
584 $this->ctrl->redirect($this,"editIcons");
585 }
586
587 $form->setValuesByPost();
588 $this->editIconsObject($form);
589 }
editIconsObject($a_form=null)
Edit folder icons.
$_POST['username']
Definition: cron.php:12
global $ilSetting
Definition: privfeed.php:40

References $_POST, $ilSetting, 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 40 of file class.ilObjFolderGUI.php.

41 {
42 global $tree;
43
44 $this->checkPermission('read');
45
46 if (strtolower($_GET["baseClass"]) == "iladministrationgui")
47 {
48 parent::viewObject();
49 return true;
50 }
51 $this->renderObject();
52 $this->tabs_gui->setTabActive('view_content');
53 return true;
54 }
renderObject()
Render folder.

References $_GET, ilObjectGUI\$tree, 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 24 of file class.ilObjFolderGUI.php.


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