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 ()
 
 view ()
 
 showPossibleSubObjects ()
 
 showTree ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 getTabs ()
 
 setContentSubTabs ()
 Set content sub tabs. More...
 
 editSettings ()
 
 updateSettings ()
 
 getAdminTabs ()
 
 performPaste ()
 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 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 ()
 public More...
 
 cloneWizardPageListObject ()
 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 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 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...
 

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 ()
 
 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 public More...
 
 setAdminTabs ()
 set admin tabs 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.

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

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:18
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
global $DIC

Member Function Documentation

◆ __initTableGUI()

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

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 Make protected function avaiable for ilLocalUserGUI...

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

References $tbl.

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

◆ _goto()

static ilObjOrgUnitGUI::_goto (   $ref_id)
static

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

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

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  }
global $ilCtrl
Definition: ilias.php:18
Create styles array
The data for the language used.
global $DIC

◆ addAdminLocatorItems()

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

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

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

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
$_GET["client_id"]
Create styles array
The data for the language used.
static getRootOrgRefId()
static _getFrame($a_class, $a_type='')
Get content frame name.
+ 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.

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

Referenced by executeCommand().

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  }
setPropertyForm($form)
set property form object
initAdvancedSettingsForm()
Initialize the form for editing advanced meta data.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
+ 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.

References ilUtil\sendFailure().

Referenced by executeCommand().

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  }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilObjOrgUnitSettingsFormGUI.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjOrgUnitGUI::executeCommand ( )

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

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

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';
231  $new_gui = new ilLearningProgressGUI(ilLearningProgressGUI::LP_CONTEXT_ORG_UNIT, $_GET["ref_id"], $_GET['obj_id']);
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  }
setSubTabsSettings($active_tab_id)
Class ilInfoScreenGUI.
$_GET["client_id"]
Class ilLocalUserGUI.
$cmd
Definition: sahs_server.php:35
Class ilOrgUnitSimpleImportGUI.
Class ilOrgUnitExportGUI.
setContentSubTabs()
Set content sub tabs.
$info
Definition: example_052.php:80
setInfoObject($info)
get info sections
Class ilTranslationGUI.
updateAdvancedSettings()
Update Advanced Metadata.
static _checkAccessAdministrateUsers($ref_id)
redirection script todo: (a better solution should control the processing via a xml file) ...
importFileObject($parent_id=null, $a_catch_errors=true)
Import.
Class ilOrgUnitTypeGUI.
editAdvancedSettings()
Edit Advanced Metadata.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
performPaste()
Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject
Class ilOrgUnitStaffGUI.
Create new PHPExcel object
obj_idprivate
Class ilObjUserFolderGUI.
Class ilOrgUnitSimpleUserImportGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class ilObjUserGUI.
static _checkAccessToUserLearningProgress($ref_id, $usr_id)
Class ilObjUserTrackingGUI.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjOrgUnitGUI::getAdminTabs ( )
Parameters
ilTabsGUI$tabs_gui

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

References getTabs().

655  {
656  $this->getTabs();
657  }
+ Here is the call graph for this function:

◆ getTabs()

ilObjOrgUnitGUI::getTabs ( )
Parameters
ilTabsGUI$tabs_gui

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

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

Referenced by getAdminTabs().

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  }
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)
static _checkAccessAdministrateUsers($ref_id)
static getRootOrgRefId()
Create new PHPExcel object
obj_idprivate
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTreeSelectorGUI()

ilObjOrgUnitGUI::getTreeSelectorGUI (   $cmd)
protected

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

References $DIC, and $tree.

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.
global $DIC

◆ getTreeWhiteList()

ilObjOrgUnitGUI::getTreeWhiteList ( )
protected

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

References array.

Referenced by showTree().

386  {
387  $whiteList = array("orgu");
388  $pls = ilOrgUnitExtension::getActivePluginIdsForTree();
389  return array_merge($whiteList, $pls);
390  }
Create styles array
The data for the language used.
+ 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.

Referenced by editAdvancedSettings(), and updateAdvancedSettings().

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.
+ 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

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

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

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.
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ performPaste()

ilObjOrgUnitGUI::performPaste ( )

Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject

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

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

Referenced by executeCommand().

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  }
$_SESSION["AccountId"]
$_GET["client_id"]
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
$_POST["username"]
+ 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

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

References ilObject\_lookupType().

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
+ Here is the call graph for this function:

◆ setContentSubTabs()

ilObjOrgUnitGUI::setContentSubTabs ( )

Set content sub tabs.

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

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

Referenced by executeCommand().

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  }
$_GET["client_id"]
static getRootOrgRefId()
addStandardContainerSubTabs($a_include_view=true)
Add standar container subtabs for view, manage, oderdering and text/media editor link.
+ 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.

References $cmd.

Referenced by executeCommand().

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.
$cmd
Definition: sahs_server.php:35
+ Here is the caller graph for this function:

◆ setTitleAndDescription()

ilObjOrgUnitGUI::setTitleAndDescription ( )

called by prepare output

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

References object.

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  }
redirection script todo: (a better solution should control the processing via a xml file) ...
Create new PHPExcel object
obj_idprivate

◆ showPossibleSubObjects()

ilObjOrgUnitGUI::showPossibleSubObjects ( )

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

References $_GET, ilObjectDefinition\MODE_ADMINISTRATION, object, and ilObjectAddNewItemGUI\setMode().

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  }
$_GET["client_id"]
Create new PHPExcel object
obj_idprivate
Render add new item selector.
+ Here is the call graph for this function:

◆ showTree()

ilObjOrgUnitGUI::showTree ( )

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

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

Referenced by executeCommand().

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  }
$_GET["client_id"]
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Class ilOrgUnitExplorerGUI.
+ 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.

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

Referenced by executeCommand().

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.
setPropertyForm($form)
set property form object
initAdvancedSettingsForm()
Initialize the form for editing advanced meta data.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
+ 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.

References $toolbar, $tpl, ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilContainerGUI\showAdministrationPanel().

Referenced by executeCommand().

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  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilObjOrgUnitSettingsFormGUI.
+ 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.

References $_GET, and ilUtil\sendFailure().

Referenced by executeCommand().

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  }
$_GET["client_id"]
redirection script todo: (a better solution should control the processing via a xml file) ...
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ 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.

Referenced by updateSettings().

◆ $tpl

showAdministrationPanel(& ilObjOrgUnitGUI::$tpl
Parameters
$tpl

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

Referenced by __construct(), and updateSettings().

◆ $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: