ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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="")
 
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent. 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...
 
- 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...
 
 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

const TAB_POSITIONS = 'positions'
 
const TAB_ORGU_TYPES = 'orgu_types'
 
const TAB_SETTINGS = "settings"
 
const TAB_STAFF = 'orgu_staff'
 
const TAB_GLOBAL_SETTINGS = 'global_settings'
 
const TAB_EXPORT = 'export'
 
 $ctrl
 
 $tpl
 
 $tabs_gui
 
 $tree
 
 $object
 
 $ilias
 
const CMD_EDIT_SETTINGS = 'editSettings'
 
- Data Fields inherited from ilContainerGUI
 $bl_cnt = 1
 
 $multi_download_enabled = false
 
- 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
 

Protected Member Functions

 afterSave (ilObject $a_new_object)
 @inheritDoc More...
 
 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...
 
 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 ilContainerGUI
 $rbacsystem
 
 $tabs
 
 $settings
 
 $user
 
 $db
 
 $access
 
 $error
 
 $obj_definition
 
 $rbacadmin
 
 $rbacreview
 
 $log
 
 $obj_data_cache
 
 $toolbar
 
 $plugin_admin
 
 $app_event_handler
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $rbacsystem
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjOrgUnitGUI::__construct ( )

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

77 {
78 global $DIC;
79 $tpl = $DIC['tpl'];
80 $ilCtrl = $DIC['ilCtrl'];
81 $ilAccess = $DIC['ilAccess'];
82 $ilToolbar = $DIC['ilToolbar'];
83 $ilLocator = $DIC['ilLocator'];
84 $tree = $DIC['tree'];
85 $lng = $DIC['lng'];
86 $ilLog = $DIC['ilLog'];
87 $ilias = $DIC['ilias'];
88 parent::__construct(array(), $_GET["ref_id"], true, false);
89
90 $this->tpl = $tpl;
91 $this->ctrl = $ilCtrl;
92 $this->ilAccess = $ilAccess;
93 $this->ilLocator = $ilLocator;
94 $this->tree = $tree;
95 $this->toolbar = $ilToolbar;
96 $this->ilLog = $ilLog;
97 $this->ilias = $ilias;
98 $this->type = 'orgu';
99
100 $lng->loadLanguageModule("orgu");
101 $this->tpl->addCss('./Modules/OrgUnit/templates/default/orgu.css');
102 }
$_GET["client_id"]
Class ilAccessHandler.
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
Definition: saml.php:7

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 741 of file class.ilObjOrgUnitGUI.php.

742 {
743 return parent::__initTableGUI();
744 }

◆ __setTableGUIBasicData()

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

Reimplemented from ilObjectGUI.

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

752 {
753 return parent::__setTableGUIBasicData($tbl, $result_set, $a_from);
754 }
$tbl
Definition: example_048.php:81

References $tbl.

◆ _goto()

static ilObjOrgUnitGUI::_goto (   $ref_id)
static

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

675 {
676 global $DIC;
677 $ilCtrl = $DIC['ilCtrl'];
678 $ilCtrl->initBaseClass("ilAdministrationGUI");
679 $ilCtrl->setTargetScript("ilias.php");
680 $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $ref_id);
681 $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "admin_mode", self::TAB_SETTINGS);
682 $ilCtrl->setParameterByClass("IlObjPluginDispatchGUI", "admin_mode", self::TAB_SETTINGS);
683 $ilCtrl->redirectByClass(array( "ilAdministrationGUI", "ilObjOrgUnitGUI" ), "view");
684 }

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 445 of file class.ilObjOrgUnitGUI.php.

446 {
447 $path = $this->tree->getPathFull($_GET["ref_id"], ilObjOrgUnit::getRootOrgRefId());
448 // add item for each node on path
449 foreach ((array) $path as $key => $row) {
450 if ($row["title"] == "__OrgUnitAdministration") {
451 $row["title"] = $this->lng->txt("objs_orgu");
452 }
453 $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $row["child"]);
454 $this->ilLocator->addItem($row["title"], $this->ctrl->getLinkTargetByClass("ilobjorgunitgui", "view"), ilFrameTargetInfo::_getFrame("MainContent"), $row["child"]);
455 $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $_GET["ref_id"]);
456 }
457 }
static _getFrame($a_class, $a_type='')
Get content frame name.
static getRootOrgRefId()
$key
Definition: croninfo.php:18

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

+ Here is the call graph for this function:

◆ afterSave()

ilObjOrgUnitGUI::afterSave ( ilObject  $a_new_object)
protected

@inheritDoc

Reimplemented from ilObjectGUI.

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

337 {
338 ilUtil::sendSuccess($this->lng->txt("object_added"), true);
339 $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
341 $this->getReturnLocation(
342 "save",
343 $this->ctrl->getLinkTarget($this, self::CMD_EDIT_SETTINGS, "", false, false)
344 )
345 );
346 }
getReturnLocation($a_cmd, $a_location="")
get return location for command (command is method name without "Object", e.g.
getRefId()
get reference id @access public
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)

References ilObject\getRefId(), ilObjectGUI\getReturnLocation(), ilUtil\redirect(), and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ cancelMoveLinkObject()

ilObjOrgUnitGUI::cancelMoveLinkObject ( )

Cancel move|link empty clipboard and return to parent.

Reimplemented from ilContainerGUI.

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

758 {
759 global $DIC;
760 $parent_ref_id = $_SESSION["clipboard"]["parent"];
761 unset($_SESSION['clipboard']);
762 $DIC->ctrl()->setParameter($this, 'ref_id', $parent_ref_id);
763 $DIC->ctrl()->redirect($this);
764 }
$_SESSION["AccountId"]

References $_SESSION, and $DIC.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ doUserAutoCompleteObject()

ilObjOrgUnitGUI::doUserAutoCompleteObject ( )

??

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

731 {
732 }

◆ editAdvancedSettings()

ilObjOrgUnitGUI::editAdvancedSettings ( )
protected

Edit Advanced Metadata.

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

588 {
589 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
590 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
591 $this->ctrl->redirect($this);
592 }
594 $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
595 $gui->setPropertyForm($form);
596 $gui->parse();
597 $this->tpl->setContent($form->getHTML());
598 }
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)
initAdvancedSettingsForm()
Initialize the form for editing advanced meta data.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
if(isset($_POST['submit'])) $form

References $form, ilAccess\checkAccess(), 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 625 of file class.ilObjOrgUnitGUI.php.

626 {
627 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
628 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
629 $this->ctrl->redirect($this);
630 }
631 $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
632 $this->tpl->setContent($form->getHTML());
633 }
Class ilObjOrgUnitSettingsFormGUI.

References $form, ilAccess\checkAccess(), and 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 105 of file class.ilObjOrgUnitGUI.php.

106 {
107 $cmd = $this->ctrl->getCmd();
108 $next_class = $this->ctrl->getNextClass($this);
109 parent::prepareOutput();
110
111 //Otherwise move-Objects would not work
112 if ($cmd != "cut") {
113 $this->showTree();
114 }
115
116 switch ($next_class) {
117 case 'ilorgunitglobalsettingsgui':
118 $this->tabs_gui->activateTab(self::TAB_GLOBAL_SETTINGS);
119 $global_settings = new ilOrgUnitGlobalSettingsGUI();
120 $this->ctrl->forwardCommand($global_settings);
121 break;
122 case "illocalusergui":
124 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
125 $this->ctrl->redirect($this);
126 }
127 $this->tabs_gui->activateTab('administrate_users');
128 $ilLocalUserGUI = new ilLocalUserGUI($this);
129 $this->ctrl->forwardCommand($ilLocalUserGUI);
130 break;
131 case "ilorgunitsimpleimportgui":
132 $this->tabs_gui->activateTab("view");
133 $this->setContentSubTabs();
134 $this->tabs_gui->setSubTabActive('import');
135 $ilOrgUnitSimpleImportGUI = new ilOrgUnitSimpleImportGUI($this);
136 $this->ctrl->forwardCommand($ilOrgUnitSimpleImportGUI);
137 break;
138 case "ilorgunitsimpleuserimportgui":
139 $ilOrgUnitSimpleUserImportGUI = new ilOrgUnitSimpleUserImportGUI($this);
140 $this->ctrl->forwardCommand($ilOrgUnitSimpleUserImportGUI);
141 break;
142 case "ilorgunitstaffgui":
143 case "ilrepositorysearchgui":
144 $this->tabs_gui->activateTab(self::TAB_STAFF);
145 $ilOrgUnitStaffGUI = new ilOrgUnitStaffGUI($this);
146 $this->ctrl->forwardCommand($ilOrgUnitStaffGUI);
147 break;
148 case "ilobjusergui":
149 switch ($cmd) {
150 case "create":
151 $ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['ref_id'], true, false);
152 $ilObjUserGUI->setCreationMode(true);
153 $this->ctrl->forwardCommand($ilObjUserGUI);
154 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
155 break;
156 case "save":
157 $ilObjUserGUI = new ilObjUserGUI("", $_GET['ref_id'], true, false);
158 $ilObjUserGUI->setCreationMode(true);
159 $this->ctrl->forwardCommand($ilObjUserGUI);
160 $this->tabs_gui->clearTargets();
161 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
162 break;
163 case "view":
164 case "update":
165 $ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['obj_id'], false, false);
166 $ilObjUserGUI->setCreationMode(false);
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 "cancel":
172 $this->ctrl->redirectByClass("illocalusergui", "index");
173 break;
174 }
175 break;
176 case "ilobjuserfoldergui":
177 switch ($cmd) {
178 case "view":
179 $this->ctrl->redirectByClass("illocalusergui", "index");
180 break;
181 default:
182 $ilObjUserFolderGUI = new ilObjUserFolderGUI("", (int) $_GET['ref_id'], true, false);
183 $ilObjUserFolderGUI->setUserOwnerId((int) $_GET['ref_id']);
184 $ilObjUserFolderGUI->setCreationMode(true);
185 $this->ctrl->forwardCommand($ilObjUserFolderGUI);
186 $this->tabs_gui->clearTargets();
187 $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
188 break;
189 }
190 break;
191 case "ilinfoscreengui":
192 $this->tabs_gui->activateTab("info_short");
193 if (!$this->ilAccess->checkAccess("read", "", $this->ref_id)
194 and !$this->ilAccess->checkAccess("visible", "", $this->ref_id)) {
195 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
196 }
197 $info = new ilInfoScreenGUI($this);
198 $amd_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
199 $amd_gui->setInfoObject($info);
200 $amd_gui->parse();
201 $this->ctrl->forwardCommand($info);
202 break;
203 case 'ilpermissiongui':
204 $this->tabs_gui->activateTab('perm_settings');
205 $ilPermissionGUI = new ilPermissionGUI($this);
206 $this->ctrl->forwardCommand($ilPermissionGUI);
207 break;
208 case "ilcommonactiondispatchergui":
210 $this->ctrl->forwardCommand($gui);
211 break;
212 case 'illearningprogressgui':
213 case 'illplistofprogressgui':
214 $this->tabs_gui->clearTargets();
215 $this->tabs_gui->setBackTarget($this->lng->txt('backto_staff'), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", 'showStaff'));
216 if (!ilObjOrgUnitAccess::_checkAccessToUserLearningProgress($this->object->getRefid(), $_GET['obj_id'])) {
217 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
218 $this->ctrl->redirectByClass("ilOrgUnitStaffGUI", "showStaff");
219 }
220 $this->ctrl->saveParameterByClass("illearningprogressgui", "obj_id");
221 $this->ctrl->saveParameterByClass("illearningprogressgui", "recursive");
223 $this->ctrl->forwardCommand($new_gui);
224 break;
225 case 'ilorgunitexportgui':
226 $this->tabs_gui->activateTab(self::TAB_EXPORT);;
227 $ilOrgUnitExportGUI = new ilOrgUnitExportGUI($this);
228 $ilOrgUnitExportGUI->addFormat('xml');
229 $this->ctrl->forwardCommand($ilOrgUnitExportGUI);
230 break;
231 case strtolower(ilTranslationGUI::class):
232 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
233 $this->setSubTabsSettings('edit_translations');
234 $ilTranslationGui = new ilTranslationGUI($this);
235 $this->ctrl->forwardCommand($ilTranslationGui);
236 break;
237 case strtolower(ilOrgUnitTypeGUI::class):
238 $this->tabs_gui->activateTab(self::TAB_ORGU_TYPES);
239 $types_gui = new ilOrgUnitTypeGUI($this);
240 $this->ctrl->forwardCommand($types_gui);
241 break;
242 case strtolower(ilOrgUnitPositionGUI::class):
243 $this->tabs_gui->activateTab(self::TAB_POSITIONS);
244 $types_gui = new ilOrgUnitPositionGUI($this);
245 $this->ctrl->forwardCommand($types_gui);
246 break;
247 case strtolower(ilOrgUnitUserAssignmentGUI::class):
248 $this->tabs_gui->activateTab(self::TAB_STAFF);
249 $ilOrgUnitUserAssignmentGUI = new ilOrgUnitUserAssignmentGUI();
250 $this->ctrl->forwardCommand($ilOrgUnitUserAssignmentGUI);
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;
302 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
303 $this->setSubTabsSettings('edit_settings');
304 $this->editSettings();
305 break;
306 case 'updateSettings':
307 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
308 $this->setSubTabsSettings('edit_settings');
309 $this->updateSettings();
310 break;
311 case 'editAdvancedSettings':
312 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
313 $this->setSubTabsSettings('edit_advanced_settings');
314 $this->editAdvancedSettings();
315 break;
316 case 'updateAdvancedSettings':
317 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
318 $this->setSubTabsSettings('edit_advanced_settings');
319 $this->updateAdvancedSettings();
320 break;
321 case 'importFile':
322 $this->importFileObject();
323 break;
324 case 'cancelMoveLink':
325 $this->cancelMoveLinkObject();
326 break;
327 }
328 break;
329 }
330 }
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.
cancelMoveLinkObject()
Cancel move|link empty clipboard and return to parent.
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 ilOrgUnitPositionGUI.
Class ilOrgUnitSimpleImportGUI.
Class ilOrgUnitSimpleUserImportGUI.
Class ilOrgUnitStaffGUI.
Class ilOrgUnitTypeGUI.
Class ilOrgUnitUserAssignmentGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class ilTranslationGUI.
$info
Definition: index.php:5

References $_GET, $info, ilObjOrgUnitAccess\_checkAccessAdministrateUsers(), ilObjOrgUnitAccess\_checkAccessToUserLearningProgress(), cancelMoveLinkObject(), ilAccess\checkAccess(), CMD_EDIT_SETTINGS, 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 702 of file class.ilObjOrgUnitGUI.php.

703 {
704 $this->getTabs();
705 }

References getTabs().

+ Here is the call graph for this function:

◆ getTabs()

ilObjOrgUnitGUI::getTabs ( )
Parameters
ilTabsGUI$tabs_gui

Reimplemented from ilContainerGUI.

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

480 {
481 $read_access_ref_id = $this->rbacsystem->checkAccess('visible,read', $this->object->getRefId());
482 if ($read_access_ref_id) {
483 $this->tabs_gui->addTab("view_content", $this->lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
484 $this->tabs_gui->addTab("info_short", "Info", $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
485 }
486
487 // Tabs for OrgUnits exclusive root!
488 if ($this->object->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
489 if (ilObjOrgUnitAccess::_checkAccessStaff($this->object->getRefId())) {
490 // $this->tabs_gui->addTab('legacy_staff', 'legacy_staff', $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", "showStaff"));
491 $this->tabs_gui->addTab(self::TAB_STAFF, $this->lng->txt(self::TAB_STAFF), $this->ctrl->getLinkTargetByClass(ilOrgUnitUserAssignmentGUI::class, ilOrgUnitUserAssignmentGUI::CMD_INDEX));
492 }
493 if ($read_access_ref_id) {
494 $this->tabs_gui->addTab(self::TAB_SETTINGS, $this->lng->txt(self::TAB_SETTINGS), $this->ctrl->getLinkTarget($this, self::CMD_EDIT_SETTINGS));
495 $this->tabs_gui->addTab("administrate_users", $this->lng->txt("administrate_users"), $this->ctrl->getLinkTargetByClass("ilLocalUserGUI", "index"));
496 }
497 }
498
499 if ($read_access_ref_id) {
500 if ($this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
501 $this->tabs_gui->addTab(self::TAB_GLOBAL_SETTINGS, $this->lng->txt('settings'), $this->ctrl->getLinkTargetByClass(ilOrgUnitGlobalSettingsGUI::class));
502 }
503 $this->tabs_gui->addTab(self::TAB_EXPORT, $this->lng->txt(self::TAB_EXPORT), $this->ctrl->getLinkTargetByClass(ilOrgUnitExportGUI::class));
504
505 // Add OrgUnit types and positions tabs
506 if ($this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
507 $this->tabs_gui->addTab(self::TAB_ORGU_TYPES, $this->lng->txt(self::TAB_ORGU_TYPES), $this->ctrl->getLinkTargetByClass(ilOrgUnitTypeGUI::class));
508 $this->tabs_gui->addTab(self::TAB_POSITIONS, $this->lng->txt(self::TAB_POSITIONS), $this->ctrl->getLinkTargetByClass(ilOrgUnitPositionGUI::class));
509 }
510 }
511 parent::getTabs();
512 }
static _checkAccessStaff($ref_id)

References ilObjOrgUnitAccess\_checkAccessStaff(), ILIAS\Modules\OrgUnit\ARHelper\BaseCommands\CMD_INDEX, 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 687 of file class.ilObjOrgUnitGUI.php.

688 {
689 global $DIC;
690 $tree = $DIC['tree'];
691 $explorer = new ilOrgUnitExplorerGUI("rep_exp_sel", $this, "showPasteTree", $tree);
692 $explorer->setAjax(false);
693 $explorer->setSelectMode('nodes[]', false);
694
695 return $explorer;
696 }
Class ilOrgUnitExplorerGUI.

References $DIC, and $tree.

◆ getTreeWhiteList()

ilObjOrgUnitGUI::getTreeWhiteList ( )
protected

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

410 {
411 $whiteList = array( "orgu" );
412 $pls = ilOrgUnitExtension::getActivePluginIdsForTree();
413
414 return array_merge($whiteList, $pls);
415 }

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 573 of file class.ilObjOrgUnitGUI.php.

574 {
575 $form = new ilPropertyFormGUI();
576 $form->setFormAction($this->ctrl->getFormAction($this));
577 $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
578 $form->addCommandButton(self::CMD_EDIT_SETTINGS, $this->lng->txt('cancel'));
579
580 return $form;
581 }
This class represents a property form user interface.

References $form.

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 377 of file class.ilObjOrgUnitGUI.php.

378 {
379 $forms = array(
380 self::CFORM_NEW => $this->initCreateForm($a_new_type),
381 self::CFORM_IMPORT => $this->initImportForm($a_new_type),
382 );
383
384 return $forms;
385 }
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 711 of file class.ilObjOrgUnitGUI.php.

712 {
713 if (!in_array($_SESSION['clipboard']['cmd'], array( 'cut' ))) {
714 $message = __METHOD__ . ": cmd was not 'cut' ; may be a hack attempt!";
715 $this->ilias->raiseError($message, $this->ilias->error_obj->WARNING);
716 }
717 if ($_SESSION['clipboard']['cmd'] == 'cut') {
718 if (isset($_GET['ref_id']) && (int) $_GET['ref_id']) {
719 $_POST['nodes'] = array( $_GET['ref_id'] );
721 }
722 }
723 $this->ctrl->returnToParent($this);
724 }
$_POST["username"]
catch(Exception $e) $message

References $_GET, $_POST, $_SESSION, $message, 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 464 of file class.ilObjOrgUnitGUI.php.

465 {
466 $obj_type = ilObject::_lookupType($a_ref_id, true);
467 if ($obj_type != "orgu") {
468 parent::redirectToRefId($a_ref_id, $a_cmd);
469 } else {
470 $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $a_ref_id);
471 $this->ctrl->redirectByClass("ilObjOrgUnitGUI", $a_cmd);
472 }
473 }
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 557 of file class.ilObjOrgUnitGUI.php.

558 {
560 //only display the import tab at the first level
561 if ($this->rbacsystem->checkAccess("visible, read", $_GET["ref_id"]) and $this->object->getRefId()
563 $this->tabs_gui->addSubTab("import", $this->lng->txt("import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "chooseImport"));
564 }
565 }
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 518 of file class.ilObjOrgUnitGUI.php.

519 {
520 $next_class = $this->ctrl->getNextClass($this);
521 $cmd = $this->ctrl->getCmd();
522 $this->tabs_gui->addSubTab('edit_settings', $this->lng->txt(self::TAB_SETTINGS), $this->ctrl->getLinkTarget($this, self::CMD_EDIT_SETTINGS));
523 $this->tabs_gui->addSubTab("edit_translations", $this->lng->txt("obj_multilinguality"), $this->ctrl->getLinkTargetByClass("iltranslationgui", "editTranslations"));
524
525 $ilOrgUnitType = $this->object->getOrgUnitType();
526 if ($ilOrgUnitType instanceof ilOrgUnitType) {
527 if (count($ilOrgUnitType->getAssignedAdvancedMDRecords(true))) {
528 $this->tabs_gui->addSubTab('edit_advanced_settings', $this->lng->txt('orgu_adv_settings'), $this->ctrl->getLinkTarget($this, 'editAdvancedSettings'));
529 }
530 }
531
532 $this->tabs_gui->setSubTabActive($active_tab_id);
533 switch ($next_class) {
534 case 'iltranslationgui':
535 $this->tabs_gui->setSubTabActive("edit_translations");
536 break;
537 case '':
538 switch ($cmd) {
540 $this->tabs_gui->setSubTabActive('edit_settings');
541 break;
542 case 'editAdvancedSettings':
543 case 'updateAdvancedSettings':
544 $this->tabs_gui->setSubTabActive('edit_advanced_settings');
545 break;
546 }
547 break;
548 }
549
550 return;
551 }
Class ilOrgUnitType.

References CMD_EDIT_SETTINGS.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setTitleAndDescription()

ilObjOrgUnitGUI::setTitleAndDescription ( )

called by prepare output

Reimplemented from ilContainerGUI.

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

422 {
423 # all possible create permissions
424 parent::setTitleAndDescription();
425 if ($this->object->getTitle() == "__OrgUnitAdministration") {
426 $this->tpl->setTitle($this->lng->txt("objs_orgu"));
427 $this->tpl->setDescription($this->lng->txt("objs_orgu"));
428 }
429
430 // Check for custom icon of type
431 if ($this->ilias->getSetting('custom_icons')) {
432 $icons_cache = ilObjOrgUnit::getIconsCache();
433 $icon_file = (isset($icons_cache[$this->object->getId()])) ? $icons_cache[$this->object->getId()] : '';
434 if ($icon_file) {
435 $this->tpl->setTitleIcon($icon_file, $this->lng->txt("obj_"
436 . $this->object->getType()));
437 }
438 }
439 }

◆ showPossibleSubObjects()

ilObjOrgUnitGUI::showPossibleSubObjects ( )

show possible sub objects selection list

Reimplemented from ilContainerGUI.

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

389 {
390 $gui = new ilObjectAddNewItemGUI($this->object->getRefId());
392 $gui->setCreationUrl("ilias.php?ref_id=" . $_GET["ref_id"]
393 . "&admin_mode=settings&cmd=create&baseClass=ilAdministrationGUI");
394 $gui->render();
395 }
Render add new item selector.

References $_GET, and ilObjectDefinition\MODE_ADMINISTRATION.

◆ showTree()

ilObjOrgUnitGUI::showTree ( )

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

399 {
400 $tree = new ilOrgUnitExplorerGUI("orgu_explorer", "ilObjOrgUnitGUI", "showTree", new ilTree(1));
401 $tree->setTypeWhiteList($this->getTreeWhiteList());
402 if (!$tree->handleCommand()) {
403 $this->tpl->setLeftNavContent($tree->getHTML());
404 }
405 $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $_GET["ref_id"]);
406 }
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 604 of file class.ilObjOrgUnitGUI.php.

605 {
606 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
607 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
608 $this->ctrl->redirect($this);
609 }
611 $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
612 $gui->setPropertyForm($form);
613 $form->checkInput();
614 $gui->parse();
615 if ($gui->importEditFormPostValues()) {
616 $gui->writeEditForm();
617 ilUtil::sendSuccess($this->lng->txt('settings_saved'), true);
618 $this->ctrl->redirect($this, 'editAdvancedSettings');
619 } else {
620 $this->tpl->setContent($form->getHTML());
621 }
622 }

References $form, ilAccess\checkAccess(), 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 636 of file class.ilObjOrgUnitGUI.php.

637 {
638 if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
639 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
640 $this->ctrl->redirect($this);
641 }
642 $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
643 if ($form->saveObject()) {
644 ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
645 $this->ctrl->redirect($this, self::CMD_EDIT_SETTINGS);
646 } else {
647 $this->tpl->setContent($form->getHTML());
648 }
649 }

References $form, ilAccess\checkAccess(), 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 349 of file class.ilObjOrgUnitGUI.php.

350 {
351 if (!$this->rbacsystem->checkAccess("read", $_GET["ref_id"])) {
352 if ($this->rbacsystem->checkAccess("visible", $_GET["ref_id"])) {
353 ilUtil::sendFailure($this->lng->txt("msg_no_perm_read"));
354 $this->ctrl->redirectByClass('ilinfoscreengui', '');
355 }
356
357 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
358 }
359
360 parent::renderObject();
361 $this->tabs_gui->activateTab("view_content");
362 $this->tabs_gui->removeSubTab("page_editor");
363 $this->tabs_gui->removeSubTab("ordering"); // Mantis 0014728
364 }

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 36 of file class.ilObjOrgUnitGUI.php.

◆ $ilAccess

ilObjOrgUnitGUI::$ilAccess
protected

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

Referenced by __construct().

◆ $ilias

ilObjOrgUnitGUI::$ilias

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

Referenced by __construct().

◆ $ilLocator

ilObjOrgUnitGUI::$ilLocator
protected

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

Referenced by __construct().

◆ $ilLog

ilObjOrgUnitGUI::$ilLog
protected

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

Referenced by __construct().

◆ $object

ilObjOrgUnitGUI::$object

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

◆ $tabs_gui

ilObjOrgUnitGUI::$tabs_gui

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

◆ $toolbar

ilObjOrgUnitGUI::$toolbar
protected

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

◆ $tpl

ilObjOrgUnitGUI::$tpl

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

Referenced by __construct().

◆ $tree

ilObjOrgUnitGUI::$tree

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

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

◆ CMD_EDIT_SETTINGS

const ilObjOrgUnitGUI::CMD_EDIT_SETTINGS = 'editSettings'

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

Referenced by executeCommand(), and setSubTabsSettings().

◆ TAB_EXPORT

const ilObjOrgUnitGUI::TAB_EXPORT = 'export'

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

◆ TAB_GLOBAL_SETTINGS

const ilObjOrgUnitGUI::TAB_GLOBAL_SETTINGS = 'global_settings'

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

◆ TAB_ORGU_TYPES

const ilObjOrgUnitGUI::TAB_ORGU_TYPES = 'orgu_types'

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

◆ TAB_POSITIONS

const ilObjOrgUnitGUI::TAB_POSITIONS = 'positions'

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

Referenced by ilOrgUnitPositionGUI\getActiveTabId().

◆ TAB_SETTINGS

const ilObjOrgUnitGUI::TAB_SETTINGS = "settings"

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

◆ TAB_STAFF

const ilObjOrgUnitGUI::TAB_STAFF = 'orgu_staff'

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


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