ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjOrgUnitGUI Class Reference

Class ilObjOrgUnit GUI class. More...

+ Inheritance diagram for ilObjOrgUnitGUI:
+ Collaboration diagram for ilObjOrgUnitGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 execute command note: this method is overwritten in all container objects More...
 
 view ()
 
 showPossibleSubObjects ()
 show possible sub objects selection list More...
 
 showTree ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 getTabs ()
 
 setContentSubTabs ()
 Set content sub tabs. More...
 
 editSettings ()
 
 updateSettings ()
 
 getAdminTabs ()
 
 performPaste ()
 @description Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject More...
 
 doUserAutoCompleteObject ()
 ?? More...
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 
- 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...
 
 getAllNestedCategories ($ref_id)
 
 __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...
 
- 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...
 
 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...
 
 addToDeskObject ()
 Add desktop item @access public. More...
 
 removeFromDeskObject ()
 Remove from desktop @access public. More...
 

Static Public Member Functions

static _goto ($ref_id)
 
- Static Public Member Functions inherited from ilContainerGUI
static _buildPath ($a_ref_id, $a_course_ref_id)
 build path 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...
 

Data Fields

 $ctrl
 
 $tpl
 
 $tabs_gui
 
 $tree
 
 $object
 
 $ilias
 
- Data Fields inherited from ilContainerGUI
 $bl_cnt = 1
 
 $multi_download_enabled = false
 
- 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
 

Protected Member Functions

 initCreationForms ($a_new_type)
 initCreationForms More...
 
 getTreeWhiteList ()
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 
 setSubTabsSettings ($active_tab_id)
 
 initAdvancedSettingsForm ()
 Initialize the form for editing advanced meta data. More...
 
 editAdvancedSettings ()
 Edit Advanced Metadata. More...
 
 updateAdvancedSettings ()
 Update Advanced Metadata. More...
 
 getTreeSelectorGUI ($cmd)
 
- 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 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...
 
 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, $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 Attributes

 $ilAccess
 
 $toolbar
 
 $ilLocator
 
 $ilLog
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjOrgUnitGUI::__construct ( )

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

91 {
92 global $DIC;
93 $tpl = $DIC['tpl'];
94 $ilCtrl = $DIC['ilCtrl'];
95 $ilAccess = $DIC['ilAccess'];
96 $ilToolbar = $DIC['ilToolbar'];
97 $ilLocator = $DIC['ilLocator'];
98 $tree = $DIC['tree'];
99 $lng = $DIC['lng'];
100 $ilLog = $DIC['ilLog'];
101 $ilias = $DIC['ilias'];
102 parent::__construct(array(), $_GET["ref_id"], true, false);
103
104 $this->tpl = $tpl;
105 $this->ctrl = $ilCtrl;
106 $this->ilAccess = $ilAccess;
107 $this->ilLocator = $ilLocator;
108 $this->tree = $tree;
109 $this->toolbar = $ilToolbar;
110 $this->ilLog = $ilLog;
111 $this->ilias = $ilias;
112 $this->type = 'orgu';
113
114 $lng->loadLanguageModule("orgu");
115 $this->tpl->addCss('./Modules/OrgUnit/templates/default/orgu.css');
116 }
$_GET["client_id"]
logging
Definition: class.ilLog.php:19
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file)
global $DIC

References $_GET, $DIC, $ilAccess, $ilCtrl, $ilias, $ilLocator, $ilLog, ilObjectGUI\$lng, $tpl, and $tree.

Member Function Documentation

◆ __initTableGUI()

& ilObjOrgUnitGUI::__initTableGUI ( )
Returns
ilTableGUI @description Make protected function avaiable for ilLocalUserGUI...

Reimplemented from ilObjectGUI.

Definition at line 692 of file class.ilObjOrgUnitGUI.php.

692 {
693 return parent::__initTableGUI();
694 }

◆ __setTableGUIBasicData()

ilObjOrgUnitGUI::__setTableGUIBasicData ( $tbl,
$result_set,
  $a_from = "" 
)
Returns
ilTableGUI @description Make protected function avaiable for ilLocalUserGUI...

Reimplemented from ilObjectGUI.

Definition at line 701 of file class.ilObjOrgUnitGUI.php.

701 {
702 return parent::__setTableGUIBasicData($tbl, $result_set, $a_from);
703 }
$tbl
Definition: example_048.php:81

References $tbl.

◆ _goto()

static ilObjOrgUnitGUI::_goto (   $ref_id)
static

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

629 {
630 global $DIC;
631 $ilCtrl = $DIC['ilCtrl'];
632 $ilCtrl->initBaseClass("ilAdministrationGUI");
633 $ilCtrl->setTargetScript("ilias.php");
634 $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $ref_id);
635 $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "admin_mode", "settings");
636 $ilCtrl->setParameterByClass("IlObjPluginDispatchGUI", "admin_mode", "settings");
637 $ilCtrl->redirectByClass(array( "ilAdministrationGUI", "ilObjOrgUnitGUI" ), "view");
638 }

References $DIC, $ilCtrl, and ilObjectGUI\$ref_id.

◆ addAdminLocatorItems()

ilObjOrgUnitGUI::addAdminLocatorItems (   $a_do_not_add_object = false)
protected
Parameters
bool$a_do_not_add_object

Reimplemented from ilObjectGUI.

Definition at line 418 of file class.ilObjOrgUnitGUI.php.

418 {
419 $path = $this->tree->getPathFull($_GET["ref_id"], ilObjOrgUnit::getRootOrgRefId());
420 // add item for each node on path
421 foreach ((array)$path as $key => $row) {
422 if ($row["title"] == "__OrgUnitAdministration") {
423 $row["title"] = $this->lng->txt("objs_orgu");
424 }
425 $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $row["child"]);
426 $this->ilLocator->addItem($row["title"], $this->ctrl->getLinkTargetByClass("ilobjorgunitgui", "view"), ilFrameTargetInfo::_getFrame("MainContent"), $row["child"]);
427 $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $_GET["ref_id"]);
428 }
429 }
$path
Definition: aliased.php:25
static _getFrame($a_class, $a_type='')
Get content frame name.
static getRootOrgRefId()

References $_GET, $path, $row, ilFrameTargetInfo\_getFrame(), and ilObjOrgUnit\getRootOrgRefId().

+ Here is the call graph for this function:

◆ doUserAutoCompleteObject()

ilObjOrgUnitGUI::doUserAutoCompleteObject ( )

??

Definition at line 682 of file class.ilObjOrgUnitGUI.php.

682 {
683 }

◆ editAdvancedSettings()

ilObjOrgUnitGUI::editAdvancedSettings ( )
protected

Edit Advanced Metadata.

Definition at line 549 of file class.ilObjOrgUnitGUI.php.

549 {
550 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
551 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
552 $this->ctrl->redirect($this);
553 }
554 $form = $this->initAdvancedSettingsForm();
555 $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
556 $gui->setPropertyForm($form);
557 $gui->parse();
558 $this->tpl->setContent($form->getHTML());
559 }
initAdvancedSettingsForm()
Initialize the form for editing advanced meta data.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References initAdvancedSettingsForm(), ilAdvancedMDRecordGUI\MODE_EDITOR, and ilUtil\sendFailure().

Referenced by executeCommand().

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

◆ editSettings()

ilObjOrgUnitGUI::editSettings ( )

Definition at line 584 of file class.ilObjOrgUnitGUI.php.

584 {
585 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
586 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
587 $this->ctrl->redirect($this);
588 }
589 $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
590 $this->tpl->setContent($form->getHTML());
591 }
Class ilObjOrgUnitSettingsFormGUI.

References ilUtil\sendFailure().

Referenced by executeCommand().

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

◆ executeCommand()

ilObjOrgUnitGUI::executeCommand ( )

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

Reimplemented from ilContainerGUI.

Definition at line 119 of file class.ilObjOrgUnitGUI.php.

119 {
120 $cmd = $this->ctrl->getCmd();
121 $next_class = $this->ctrl->getNextClass($this);
122 parent::prepareOutput();
123
124 //Otherwise move-Objects would not work
125 if ($cmd != "cut") {
126 $this->showTree();
127 }
128
129 switch ($next_class) {
130 case "illocalusergui":
132 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
133 $this->ctrl->redirect($this);
134 }
135 $this->tabs_gui->setTabActive('administrate_users');
136 $ilLocalUserGUI = new ilLocalUserGUI($this);
137 $this->ctrl->forwardCommand($ilLocalUserGUI);
138 break;
139 case "ilorgunitsimpleimportgui":
140 $this->tabs_gui->setTabActive("view");
141 $this->setContentSubTabs();
142 $this->tabs_gui->setSubTabActive('import');
143 $ilOrgUnitSimpleImportGUI = new ilOrgUnitSimpleImportGUI($this);
144 $this->ctrl->forwardCommand($ilOrgUnitSimpleImportGUI);
145 break;
146 case "ilorgunitsimpleuserimportgui":
147 $ilOrgUnitSimpleUserImportGUI = new ilOrgUnitSimpleUserImportGUI($this);
148 $this->ctrl->forwardCommand($ilOrgUnitSimpleUserImportGUI);
149 break;
150 case "ilorgunitstaffgui":
151 case "ilrepositorysearchgui":
152 $this->tabs_gui->setTabActive('orgu_staff');
153 $ilOrgUnitStaffGUI = new ilOrgUnitStaffGUI($this);
154 $this->ctrl->forwardCommand($ilOrgUnitStaffGUI);
155 break;
156 case "ilobjusergui":
157 switch ($cmd) {
158 case "create":
159 $ilObjUserGUI = new ilObjUserGUI("", (int)$_GET['ref_id'], true, false);
160 $ilObjUserGUI->setCreationMode(true);
161 $this->ctrl->forwardCommand($ilObjUserGUI);
162 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
163 break;
164 case "save":
165 $ilObjUserGUI = new ilObjUserGUI("", $_GET['ref_id'], true, false);
166 $ilObjUserGUI->setCreationMode(true);
167 $this->ctrl->forwardCommand($ilObjUserGUI);
168 $this->tabs_gui->clearTargets();
169 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
170 break;
171 case "view":
172 case "update":
173 $ilObjUserGUI = new ilObjUserGUI("", (int)$_GET['obj_id'], false, false);
174 $ilObjUserGUI->setCreationMode(false);
175 $this->ctrl->forwardCommand($ilObjUserGUI);
176 $this->tabs_gui->clearTargets();
177 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
178 break;
179 case "cancel":
180 $this->ctrl->redirectByClass("illocalusergui", "index");
181 break;
182 }
183 break;
184 case "ilobjuserfoldergui":
185 switch ($cmd) {
186 case "view":
187 $this->ctrl->redirectByClass("illocalusergui", "index");
188 break;
189 default:
190 $ilObjUserFolderGUI = new ilObjUserFolderGUI("", (int)$_GET['ref_id'], true, false);
191 $ilObjUserFolderGUI->setUserOwnerId((int)$_GET['ref_id']);
192 $ilObjUserFolderGUI->setCreationMode(true);
193 $this->ctrl->forwardCommand($ilObjUserFolderGUI);
194 $this->tabs_gui->clearTargets();
195 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
196 break;
197 }
198 break;
199 case "ilinfoscreengui":
200 $this->tabs_gui->setTabActive("info_short");
201 if (!$this->ilAccess->checkAccess("read", "", $this->ref_id) AND !$this->ilAccess->checkAccess("visible", "", $this->ref_id)) {
202 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
203 }
204 $info = new ilInfoScreenGUI($this);
205 $amd_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
206 $amd_gui->setInfoObject($info);
207 $amd_gui->parse();
208 $this->ctrl->forwardCommand($info);
209 break;
210 case 'ilpermissiongui':
211 $this->tabs_gui->setTabActive('perm_settings');
212 $ilPermissionGUI = new ilPermissionGUI($this);
213 $this->ctrl->forwardCommand($ilPermissionGUI);
214 break;
215 case "ilcommonactiondispatchergui":
216 include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
218 $this->ctrl->forwardCommand($gui);
219 break;
220 case 'illearningprogressgui':
221 case 'illplistofprogressgui':
222 $this->tabs_gui->clearTargets();
223 $this->tabs_gui->setBackTarget($this->lng->txt('backto_staff'), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", 'showStaff'));
224 if (!ilObjOrgUnitAccess::_checkAccessToUserLearningProgress($this->object->getRefid(), $_GET['obj_id'])) {
225 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
226 $this->ctrl->redirectByClass("ilOrgUnitStaffGUI", "showStaff");
227 }
228 $this->ctrl->saveParameterByClass("illearningprogressgui", "obj_id");
229 $this->ctrl->saveParameterByClass("illearningprogressgui", "recursive");
230 include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
232 $this->ctrl->forwardCommand($new_gui);
233 break;
234 case 'ilorgunitexportgui':
235 $this->tabs_gui->setTabActive('export');;
236 $ilOrgUnitExportGUI = new ilOrgUnitExportGUI($this);
237 $ilOrgUnitExportGUI->addFormat('xml');
238 $this->ctrl->forwardCommand($ilOrgUnitExportGUI);
239 break;
240 case 'iltranslationgui':
241 $this->tabs_gui->setTabActive("settings");
242 $this->setSubTabsSettings('edit_translations');
243
244 $ilTranslationGui = new ilTranslationGUI($this);
245 $this->ctrl->forwardCommand($ilTranslationGui);
246 break;
247 case 'ilorgunittypegui':
248 $this->tabs_gui->setTabActive('orgu_types');
249 $types_gui = new ilOrgUnitTypeGUI($this);
250 $this->ctrl->forwardCommand($types_gui);
251 break;
252 default:
253 switch ($cmd) {
254 case '':
255 case 'view':
256 case 'render':
257 case 'cancel':
258 case 'cancelDelete':
259 $this->view();
260 break;
261 case 'performPaste':
262 $this->performPaste();
263 break;
264 case 'paste':
265 $this->performPaste();
266 break;
267 case 'performPasteIntoMultipleObjects':
269 break;
270 case 'create':
271 parent::createObject();
272 break;
273 case 'save':
274 parent::saveObject();
275 break;
276 case 'delete':
277 $this->tabs_gui->clearTargets();
278 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
279 parent::deleteObject();
280 break;
281 case 'confirmedDelete':
282 parent::confirmedDeleteObject();
283 break;
284 case 'cut':
285 $this->tabs_gui->clearTargets();
286 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
287 parent::cutObject();
288 break;
289 case 'clear':
290 parent::clearObject();
291 break;
292 case 'enableAdministrationPanel':
293 parent::enableAdministrationPanelObject();
294 break;
295 case 'disableAdministrationPanel':
296 parent::disableAdministrationPanelObject();
297 break;
298 case 'getAsynchItemList':
299 parent::getAsynchItemListObject();
300 break;
301 case 'editSettings':
302 $this->tabs_gui->setTabActive("settings");
303 $this->setSubTabsSettings('edit_settings');
304 $this->editSettings();
305 break;
306 case 'updateSettings':
307 $this->tabs_gui->setTabActive("settings");
308 $this->setSubTabsSettings('edit_settings');
309 $this->updateSettings();
310 break;
311 case 'editAdvancedSettings':
312 $this->tabs_gui->setTabActive("settings");
313 $this->setSubTabsSettings('edit_advanced_settings');
314 $this->editAdvancedSettings();
315 break;
316 case 'updateAdvancedSettings':
317 $this->tabs_gui->setTabActive("settings");
318 $this->setSubTabsSettings('edit_advanced_settings');
319 $this->updateAdvancedSettings();
320 break;
321 case 'importFile':
322 $this->importFileObject();
323 break;
324 }
325 break;
326 }
327 }
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Class ilInfoScreenGUI.
Class ilObjUserTrackingGUI.
Class ilLocalUserGUI.
static _checkAccessToUserLearningProgress($ref_id, $usr_id)
static _checkAccessAdministrateUsers($ref_id)
updateAdvancedSettings()
Update Advanced Metadata.
setContentSubTabs()
Set content sub tabs.
editAdvancedSettings()
Edit Advanced Metadata.
performPaste()
@description Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject
setSubTabsSettings($active_tab_id)
Class ilObjUserFolderGUI.
Class ilObjUserGUI.
importFileObject($parent_id=null, $a_catch_errors=true)
Import.
Class ilOrgUnitExportGUI.
Class ilOrgUnitSimpleImportGUI.
Class ilOrgUnitSimpleUserImportGUI.
Class ilOrgUnitStaffGUI.
Class ilOrgUnitTypeGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class ilTranslationGUI.
$info
Definition: example_052.php:80
$cmd
Definition: sahs_server.php:35

References $_GET, $cmd, $info, ilObjOrgUnitAccess\_checkAccessAdministrateUsers(), ilObjOrgUnitAccess\_checkAccessToUserLearningProgress(), editAdvancedSettings(), editSettings(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilObjectGUI\importFileObject(), ilLearningProgressBaseGUI\LP_CONTEXT_ORG_UNIT, ilAdvancedMDRecordGUI\MODE_INFO, performPaste(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilUtil\sendFailure(), setContentSubTabs(), setSubTabsSettings(), showTree(), updateAdvancedSettings(), updateSettings(), and view().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjOrgUnitGUI::getAdminTabs ( )
Parameters
ilTabsGUI$tabs_gui

Reimplemented from ilObjectGUI.

Definition at line 655 of file class.ilObjOrgUnitGUI.php.

655 {
656 $this->getTabs();
657 }

References getTabs().

+ Here is the call graph for this function:

◆ getTabs()

ilObjOrgUnitGUI::getTabs ( )
Parameters
ilTabsGUI$tabs_gui

Reimplemented from ilContainerGUI.

Definition at line 450 of file class.ilObjOrgUnitGUI.php.

450 {
451 if ($this->ilAccess->checkAccess('read', '', $this->object->getRefId())) {
452 $this->tabs_gui->addTab("view_content", $this->lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
453 $this->tabs_gui->addTab("info_short", "Info", $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
454 }
455
456 // Tabs for OrgUnits exclusive root!
457 if ($this->object->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
458 if (ilObjOrgUnitAccess::_checkAccessStaff($this->object->getRefId())) {
459 $this->tabs_gui->addTab("orgu_staff", $this->lng->txt("orgu_staff"), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", "showStaff"));
460 }
461 if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
462 $this->tabs_gui->addTab("settings", $this->lng->txt("settings"), $this->ctrl->getLinkTarget($this, 'editSettings'));
463 }
464 if (ilObjOrgUnitAccess::_checkAccessAdministrateUsers($this->object->getRefId())) {
465 $this->tabs_gui->addTab("administrate_users", $this->lng->txt("administrate_users"), $this->ctrl->getLinkTargetByClass("ilLocalUserGUI", "index"));
466 }
467 }
468
469 if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
470 $this->tabs_gui->addTarget('export', $this->ctrl->getLinkTargetByClass('ilorgunitexportgui', ''), 'export', 'ilorgunitexportgui');
471
472 // Add OrgUnit types tab
473 if ($this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
474 $this->tabs_gui->addTab('orgu_types', $this->lng->txt('orgu_types'), $this->ctrl->getLinkTargetByClass('ilOrgUnitTypeGUI'));
475 }
476 }
477 parent::getTabs();
478 }
static _checkAccessStaff($ref_id)

References ilObjOrgUnitAccess\_checkAccessAdministrateUsers(), ilObjOrgUnitAccess\_checkAccessStaff(), and ilObjOrgUnit\getRootOrgRefId().

Referenced by getAdminTabs().

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

◆ getTreeSelectorGUI()

ilObjOrgUnitGUI::getTreeSelectorGUI (   $cmd)
protected
Parameters
$cmdstring
Returns
ilTreeExplorerGUI

Reimplemented from ilContainerGUI.

Definition at line 641 of file class.ilObjOrgUnitGUI.php.

641 {
642 global $DIC;
643 $tree = $DIC['tree'];
644 $explorer = new ilOrgUnitExplorerGUI("rep_exp_sel", $this, "showPasteTree", $tree);
645 $explorer->setAjax(false);
646 $explorer->setSelectMode('nodes[]', false);
647
648 return $explorer;
649 }
Class ilOrgUnitExplorerGUI.

References $DIC, and $tree.

◆ getTreeWhiteList()

ilObjOrgUnitGUI::getTreeWhiteList ( )
protected

Definition at line 386 of file class.ilObjOrgUnitGUI.php.

386 {
387 $whiteList = array("orgu");
388 $pls = ilOrgUnitExtension::getActivePluginIdsForTree();
389 return array_merge($whiteList, $pls);
390 }

Referenced by showTree().

+ Here is the caller graph for this function:

◆ initAdvancedSettingsForm()

ilObjOrgUnitGUI::initAdvancedSettingsForm ( )
protected

Initialize the form for editing advanced meta data.

Returns
ilPropertyFormGUI

Definition at line 536 of file class.ilObjOrgUnitGUI.php.

536 {
537 $form = new ilPropertyFormGUI();
538 $form->setFormAction($this->ctrl->getFormAction($this));
539 $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
540 $form->addCommandButton('editSettings', $this->lng->txt('cancel'));
541
542 return $form;
543 }
This class represents a property form user interface.

Referenced by editAdvancedSettings(), and updateAdvancedSettings().

+ Here is the caller graph for this function:

◆ initCreationForms()

ilObjOrgUnitGUI::initCreationForms (   $a_new_type)
protected

initCreationForms

We override the method of class.ilObjectGUI because we have no copy functionality at the moment

Parameters
string$a_new_type
Returns
array

Reimplemented from ilObjectGUI.

Definition at line 357 of file class.ilObjOrgUnitGUI.php.

357 {
358 $forms = array(
359 self::CFORM_NEW => $this->initCreateForm($a_new_type),
360 self::CFORM_IMPORT => $this->initImportForm($a_new_type),
361 );
362
363 return $forms;
364 }
initImportForm($a_new_type)
Init object import form.
initCreateForm($a_new_type)
Init object creation form.

References ilObjectGUI\initCreateForm(), and ilObjectGUI\initImportForm().

+ Here is the call graph for this function:

◆ performPaste()

ilObjOrgUnitGUI::performPaste ( )

@description Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject

Definition at line 663 of file class.ilObjOrgUnitGUI.php.

663 {
664
665 if (!in_array($_SESSION['clipboard']['cmd'], array( 'cut' ))) {
666 $message = __METHOD__ . ": cmd was not 'cut' ; may be a hack attempt!";
667 $this->ilias->raiseError($message, $this->ilias->error_obj->WARNING);
668 }
669 if ($_SESSION['clipboard']['cmd'] == 'cut') {
670 if (isset($_GET['ref_id']) && (int)$_GET['ref_id']) {
671 $_POST['nodes'] = array( $_GET['ref_id'] );
673 }
674 }
675 $this->ctrl->returnToParent($this);
676 }
$_POST["username"]
$_SESSION["AccountId"]

References $_GET, $_POST, $_SESSION, and ilContainerGUI\performPasteIntoMultipleObjectsObject().

Referenced by executeCommand().

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

◆ redirectToRefId()

ilObjOrgUnitGUI::redirectToRefId (   $a_ref_id,
  $a_cmd = "" 
)
protected
Parameters
int$a_ref_id
string$a_cmd

Reimplemented from ilObjectGUI.

Definition at line 436 of file class.ilObjOrgUnitGUI.php.

436 {
437 $obj_type = ilObject::_lookupType($a_ref_id, true);
438 if ($obj_type != "orgu") {
439 parent::redirectToRefId($a_ref_id, $a_cmd);
440 } else {
441 $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $a_ref_id);
442 $this->ctrl->redirectByClass("ilObjOrgUnitGUI", $a_cmd);
443 }
444 }
static _lookupType($a_id, $a_reference=false)
lookup object type

References ilObject\_lookupType().

+ Here is the call graph for this function:

◆ setContentSubTabs()

ilObjOrgUnitGUI::setContentSubTabs ( )

Set content sub tabs.

Reimplemented from ilContainerGUI.

Definition at line 521 of file class.ilObjOrgUnitGUI.php.

522 {
524 //only display the import tab at the first level
525 if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) AND $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
526 $this->tabs_gui->addSubTab("import", $this->lng->txt("import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "chooseImport"));
527 }
528 }
addStandardContainerSubTabs($a_include_view=true)
Add standar container subtabs for view, manage, oderdering and text/media editor link.

References $_GET, ilContainerGUI\addStandardContainerSubTabs(), and ilObjOrgUnit\getRootOrgRefId().

Referenced by executeCommand().

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

◆ setSubTabsSettings()

ilObjOrgUnitGUI::setSubTabsSettings (   $active_tab_id)
protected
Parameters
$active_tab_id

Definition at line 484 of file class.ilObjOrgUnitGUI.php.

484 {
485 $next_class = $this->ctrl->getNextClass($this);
486 $cmd = $this->ctrl->getCmd();
487 $this->tabs_gui->addSubTab('edit_settings', $this->lng->txt('settings'), $this->ctrl->getLinkTarget($this, 'editSettings'));
488 $this->tabs_gui->addSubTab("edit_translations", $this->lng->txt("obj_multilinguality"), $this->ctrl->getLinkTargetByClass("iltranslationgui", "editTranslations"));
489
490 $ilOrgUnitType = $this->object->getOrgUnitType();
491 if ($ilOrgUnitType instanceof ilOrgUnitType) {
492 if (count($ilOrgUnitType->getAssignedAdvancedMDRecords(true))) {
493 $this->tabs_gui->addSubTab('edit_advanced_settings', $this->lng->txt('orgu_adv_settings'), $this->ctrl->getLinkTarget($this, 'editAdvancedSettings'));
494 }
495 }
496
497 $this->tabs_gui->setSubTabActive($active_tab_id);
498 switch ($next_class) {
499 case 'iltranslationgui':
500 $this->tabs_gui->setSubTabActive("edit_translations");
501 break;
502 case '':
503 switch ($cmd) {
504 case 'editSettings':
505 $this->tabs_gui->setSubTabActive('edit_settings');
506 break;
507 case 'editAdvancedSettings':
508 case 'updateAdvancedSettings':
509 $this->tabs_gui->setSubTabActive('edit_advanced_settings');
510 break;
511 }
512 break;
513 }
514
515 return;
516 }
Class ilOrgUnitType.

References $cmd.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setTitleAndDescription()

ilObjOrgUnitGUI::setTitleAndDescription ( )

called by prepare output

Reimplemented from ilContainerGUI.

Definition at line 396 of file class.ilObjOrgUnitGUI.php.

396 {
397 # all possible create permissions
398 parent::setTitleAndDescription();
399 if ($this->object->getTitle() == "__OrgUnitAdministration") {
400 $this->tpl->setTitle($this->lng->txt("objs_orgu"));
401 $this->tpl->setDescription($this->lng->txt("objs_orgu"));
402 }
403
404 // Check for custom icon of type
405 if ($this->ilias->getSetting('custom_icons')) {
406 $icons_cache = ilObjOrgUnit::getIconsCache();
407 $icon_file = (isset($icons_cache[$this->object->getId()])) ? $icons_cache[$this->object->getId()] : '';
408 if ($icon_file) {
409 $this->tpl->setTitleIcon($icon_file, $this->lng->txt("obj_" . $this->object->getType()));
410 }
411 }
412 }

◆ showPossibleSubObjects()

ilObjOrgUnitGUI::showPossibleSubObjects ( )

show possible sub objects selection list

Reimplemented from ilContainerGUI.

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

367 {
368 $gui = new ilObjectAddNewItemGUI($this->object->getRefId());
370 $gui->setCreationUrl("ilias.php?ref_id=" . $_GET["ref_id"] . "&admin_mode=settings&cmd=create&baseClass=ilAdministrationGUI");
371 $gui->render();
372 }
Render add new item selector.

References $_GET, and ilObjectDefinition\MODE_ADMINISTRATION.

◆ showTree()

ilObjOrgUnitGUI::showTree ( )

Definition at line 375 of file class.ilObjOrgUnitGUI.php.

375 {
376 $tree = new ilOrgUnitExplorerGUI("orgu_explorer", "ilObjOrgUnitGUI", "showTree", new ilTree(1));
377 $tree->setTypeWhiteList(
378 $this->getTreeWhiteList()
379 );
380 if (!$tree->handleCommand()) {
381 $this->tpl->setLeftNavContent($tree->getHTML());
382 }
383 $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $_GET["ref_id"]);
384 }
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...

References $_GET, $tree, and getTreeWhiteList().

Referenced by executeCommand().

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

◆ updateAdvancedSettings()

ilObjOrgUnitGUI::updateAdvancedSettings ( )
protected

Update Advanced Metadata.

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

565 {
566 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
567 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
568 $this->ctrl->redirect($this);
569 }
570 $form = $this->initAdvancedSettingsForm();
571 $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
572 $gui->setPropertyForm($form);
573 $form->checkInput();
574 $gui->parse();
575 if ($gui->importEditFormPostValues()) {
576 $gui->writeEditForm();
577 ilUtil::sendSuccess($this->lng->txt('settings_saved'), true);
578 $this->ctrl->redirect($this, 'editAdvancedSettings');
579 } else {
580 $this->tpl->setContent($form->getHTML());
581 }
582 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References initAdvancedSettingsForm(), ilAdvancedMDRecordGUI\MODE_EDITOR, ilUtil\sendFailure(), and ilUtil\sendSuccess().

Referenced by executeCommand().

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

◆ updateSettings()

ilObjOrgUnitGUI::updateSettings ( )

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

594 {
595 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
596 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
597 $this->ctrl->redirect($this);
598 }
599 $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
600 if ($form->saveObject()) {
601 ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
602 $this->ctrl->redirect($this, 'editSettings');
603 } else {
604 $this->tpl->setContent($form->getHTML());
605 }
606 }

References ilUtil\sendFailure(), and ilUtil\sendSuccess().

Referenced by executeCommand().

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

◆ view()

ilObjOrgUnitGUI::view ( )

Definition at line 330 of file class.ilObjOrgUnitGUI.php.

330 {
331 if (!$this->ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
332 if ($this->ilAccess->checkAccess("visible", "", $_GET["ref_id"])) {
333 ilUtil::sendFailure($this->lng->txt("msg_no_perm_read"));
334 $this->ctrl->redirectByClass('ilinfoscreengui', '');
335 }
336
337 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
338 }
339
340 parent::renderObject();
341 $this->tabs_gui->setTabActive("view_content");
342 $this->tabs_gui->removeSubTab("page_editor");
343 $this->tabs_gui->removeSubTab("ordering"); // Mantis 0014728
344
345 }

References $_GET, and ilUtil\sendFailure().

Referenced by executeCommand().

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

Field Documentation

◆ $ctrl

ilObjOrgUnitGUI::$ctrl

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

◆ $ilAccess

ilObjOrgUnitGUI::$ilAccess
protected

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

Referenced by __construct().

◆ $ilias

ilObjOrgUnitGUI::$ilias

Definition at line 88 of file class.ilObjOrgUnitGUI.php.

Referenced by __construct().

◆ $ilLocator

ilObjOrgUnitGUI::$ilLocator
protected

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

Referenced by __construct().

◆ $ilLog

ilObjOrgUnitGUI::$ilLog
protected

Definition at line 84 of file class.ilObjOrgUnitGUI.php.

Referenced by __construct().

◆ $object

ilObjOrgUnitGUI::$object

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

◆ $tabs_gui

ilObjOrgUnitGUI::$tabs_gui

Definition at line 60 of file class.ilObjOrgUnitGUI.php.

◆ $toolbar

ilObjOrgUnitGUI::$toolbar
protected

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

◆ $tpl

ilObjOrgUnitGUI::$tpl

Definition at line 56 of file class.ilObjOrgUnitGUI.php.

Referenced by __construct().

◆ $tree

ilObjOrgUnitGUI::$tree

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

Referenced by __construct(), getTreeSelectorGUI(), and showTree().


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