ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 (ilTabsGUI $tabs_gui=NULL)
 
 setContentSubTabs ()
 Set content sub tabs. More...
 
 editSettings ()
 
 updateSettings ()
 
 getAdminTabs (ilTabsGUI $tabs_gui)
 
 performPaste ()
 Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject More...
 
 doUserAutoCompleteObject ()
 ?? More...
 
 __initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$a_result_set, $a_from, $a_form)
 
- Public Member Functions inherited from ilContainerGUI
 ilContainerGUI ($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...
 
 __showTimingsButton (&$tpl)
 
 showPermanentLink (&$tpl)
 show permanent link More...
 
 switchToStdEditorObject ()
 Switch to standard page editor. More...
 
 switchToOldEditorObject ()
 Switch to old page editor. More...
 
 useNewEditorObject ()
 Use new editor (-> delete xhtml content page) More...
 
 editPageFrameObject ()
 show page editor frameset More...
 
 editPageContentObject ()
 edit page content (for repository root node and categories) More...
 
 savePageContentObject ()
 
 cancelPageContentObject ()
 
 showLinkListObject ()
 
 clearAdminCommandsDetermination ()
 cleaer administration commands determination More...
 
newBlockTemplate ()
 determin admin commands More...
 
 addHeaderRow (&$a_tpl, $a_type, $a_show_image=true)
 adds a header row to a block template More...
 
 addStandardRow (&$a_tpl, $a_html, $a_item_ref_id="", $a_item_obj_id="", $a_image_type="")
 adds a standard row to a block template More...
 
 addMessageRow (&$a_tpl, $a_message, $a_type)
 add message row More...
 
 resetRowType ()
 
 setPageEditorTabs ()
 Add page editor tabs. More...
 
 addStandardContainerSubTabs ($a_include_view=true)
 Add standar container subtabs for view, manage, oderdering and text/media editor link. More...
 
 getTabs (&$tabs_gui)
 common tabs for all container objects (should be called at the end of child getTabs() method More...
 
 enableAdministrationPanelObject ()
 enable administration panel More...
 
 disableAdministrationPanelObject ()
 enable administration panel More...
 
 editOrderObject ()
 Edit order. More...
 
 isActiveOrdering ()
 Check if ordering is enabled. More...
 
 isActiveItemOrdering ()
 Check if item ordering is enabled. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
 enableMultiDownloadObject ()
 
 isMultiDownloadEnabled ()
 
 lockObject ()
 
 cutObject ()
 cut object(s) out from a container and write the information to clipboard More...
 
 copyObject ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once. More...
 
 downloadObject ()
 
 linkObject ()
 create an new reference of an object in tree it's like a hard link of unix More...
 
 clearObject ()
 clear clipboard and go back to last object More...
 
 performPasteIntoMultipleObjectsObject ()
 
 initAndDisplayLinkIntoMultipleObjectsObject ()
 
 showPasteTreeObject ()
 Show paste tree. More...
 
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent. More...
 
 keepObjectsInClipboardObject ()
 Keep objects in the clipboard. More...
 
 initAndDisplayCopyIntoMultipleObjectsObject ()
 
 initAndDisplayMoveIntoObjectObject ()
 
 pasteObject ()
 paste object from clipboard to current place Depending on the chosen command the object(s) are linked, copied or moved More...
 
 clipboardObject ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once. More...
 
 showCustomIconsEditing ($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
 show edit section of custom icons for container More...
 
 isActiveAdministrationPanel ()
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 allowBlocksMoving ()
 Standard is to allow blocks moving. More...
 
 allowBlocksConfigure ()
 Standard is to allow blocks configuration. More...
 
 cloneWizardPageTreeObject ()
 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 Item ListGUI for presentation in container. More...
 
 editStylePropertiesObject ()
 Edit style properties. More...
 
 initStylePropertiesForm ()
 Init style properties form. More...
 
 createStyleObject ()
 Create Style. More...
 
 editStyleObject ()
 Edit Style. More...
 
 deleteStyleObject ()
 Delete Style. More...
 
 saveStyleSettingsObject ()
 Save style settings. More...
 
 getAsynchItemListObject ()
 Get item list command drop down asynchronously. More...
 
 redrawListItemObject ()
 Redraw a list item (ajax) More...
 
 showRepTree ()
 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...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public. More...
 
executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ($in_rep=false)
 cancel action and go back to previous page 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...
 
 addAdminLocatorItems ()
 
 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 ()
 
 prepareOutput ()
 prepare output More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs 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...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

Protected Attributes

 $ilAccess
 
 $toolbar
 
 $ilLocator
 
 $ilLog
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjOrgUnitGUI::__construct ( )

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

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

90  {
91  global $tpl, $ilCtrl, $ilAccess, $ilToolbar, $ilLocator, $tree, $lng, $ilLog, $ilias;
92  parent::ilContainerGUI(array(), $_GET["ref_id"], true, false);
93 
94  $this->tpl = $tpl;
95  $this->ctrl = $ilCtrl;
96  $this->ilAccess = $ilAccess;
97  $this->ilLocator = $ilLocator;
98  $this->tree = $tree;
99  $this->toolbar = $ilToolbar;
100  $this->ilLog = $ilLog;
101  $this->ilias = $ilias;
102  $this->type = 'orgu';
103 
104  $lng->loadLanguageModule("orgu");
105  $this->tpl->addCss('./Modules/OrgUnit/templates/default/orgu.css');
106  }
$_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) ...

Member Function Documentation

◆ __initTableGUI()

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

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

666  {
667  return parent::__initTableGUI();
668  }

◆ __setTableGUIBasicData()

ilObjOrgUnitGUI::__setTableGUIBasicData ( $tbl,
$a_result_set,
  $a_from,
  $a_form 
)
Returns
ilTableGUI Make protected function avaiable for ilLocalUserGUI...

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

References $tbl.

675  {
676  return parent::__setTableGUIBasicData($tbl, $a_result_set, $a_from, $a_form);
677  }
$tbl
Definition: example_048.php:81

◆ _goto()

static ilObjOrgUnitGUI::_goto (   $ref_id)
static

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

References $ilCtrl, and ilObjectGUI\$ref_id.

606  {
607  global $ilCtrl;
608  $ilCtrl->initBaseClass("ilAdministrationGUI");
609  $ilCtrl->setTargetScript("ilias.php");
610  $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $ref_id);
611  $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "admin_mode", "settings");
612  $ilCtrl->redirectByClass(array( "ilAdministrationGUI", "ilObjOrgUnitGUI" ), "view");
613  }
global $ilCtrl
Definition: ilias.php:18

◆ addAdminLocatorItems()

ilObjOrgUnitGUI::addAdminLocatorItems ( )
protected

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

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

398  {
399  $path = $this->tree->getPathFull($_GET["ref_id"], ilObjOrgUnit::getRootOrgRefId());
400  // add item for each node on path
401  foreach ((array)$path as $key => $row) {
402  if ($row["title"] == "__OrgUnitAdministration") {
403  $row["title"] = $this->lng->txt("objs_orgu");
404  }
405  $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $row["child"]);
406  $this->ilLocator->addItem($row["title"], $this->ctrl->getLinkTargetByClass("ilobjorgunitgui", "view"), ilFrameTargetInfo::_getFrame("MainContent"), $row["child"]);
407  $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $_GET["ref_id"]);
408  }
409  }
$_GET["client_id"]
static getRootOrgRefId()
static _getFrame($a_class, $a_type='')
Get content frame name.
$path
Definition: index.php:22
+ Here is the call graph for this function:

◆ doUserAutoCompleteObject()

ilObjOrgUnitGUI::doUserAutoCompleteObject ( )

??

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

656  {
657  }

◆ editAdvancedSettings()

ilObjOrgUnitGUI::editAdvancedSettings ( )
protected

Edit Advanced Metadata.

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

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

Referenced by executeCommand().

529  {
530  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
531  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
532  $this->ctrl->redirect($this);
533  }
534  $form = $this->initAdvancedSettingsForm();
535  $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
536  $gui->setPropertyForm($form);
537  $gui->parse();
538  $this->tpl->setContent($form->getHTML());
539  }
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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editSettings()

ilObjOrgUnitGUI::editSettings ( )

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

References ilUtil\sendFailure().

Referenced by executeCommand().

564  {
565  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
566  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
567  $this->ctrl->redirect($this);
568  }
569  $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
570  $this->tpl->setContent($form->getHTML());
571  }
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 109 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, performPaste(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilUtil\sendFailure(), setContentSubTabs(), ilAdvancedMDRecordGUI\setInfoObject(), setSubTabsSettings(), showTree(), updateAdvancedSettings(), updateSettings(), and view().

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

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

References getTabs().

629  {
630  $this->getTabs($tabs_gui);
631  }
getTabs(ilTabsGUI $tabs_gui=NULL)
+ Here is the call graph for this function:

◆ getTabs()

ilObjOrgUnitGUI::getTabs ( ilTabsGUI  $tabs_gui = NULL)
Parameters
ilTabsGUI$tabs_gui

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

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

Referenced by getAdminTabs().

430  {
431  if ($this->ilAccess->checkAccess('read', '', $this->object->getRefId())) {
432  $this->tabs_gui->addTab("view_content", $this->lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
433  $this->tabs_gui->addTab("info_short", "Info", $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
434  }
435 
436  // Tabs for OrgUnits exclusive root!
437  if ($this->object->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
438  if (ilObjOrgUnitAccess::_checkAccessStaff($this->object->getRefId())) {
439  $this->tabs_gui->addTab("orgu_staff", $this->lng->txt("orgu_staff"), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", "showStaff"));
440  }
441  if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
442  $this->tabs_gui->addTab("settings", $this->lng->txt("settings"), $this->ctrl->getLinkTarget($this, 'editSettings'));
443  }
444  if (ilObjOrgUnitAccess::_checkAccessAdministrateUsers($this->object->getRefId())) {
445  $this->tabs_gui->addTab("administrate_users", $this->lng->txt("administrate_users"), $this->ctrl->getLinkTargetByClass("ilLocalUserGUI", "index"));
446  }
447  }
448 
449  if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
450  $this->tabs_gui->addTarget('export', $this->ctrl->getLinkTargetByClass('ilorgunitexportgui', ''), 'export', 'ilorgunitexportgui');
451 
452  // Add OrgUnit types tab
453  if ($this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
454  $this->tabs_gui->addTab('orgu_types', $this->lng->txt('orgu_types'), $this->ctrl->getLinkTargetByClass('ilOrgUnitTypeGUI'));
455  }
456  }
457  parent::getTabs($this->tabs_gui);
458  }
static _checkAccessStaff($ref_id)
static _checkAccessAdministrateUsers($ref_id)
static getRootOrgRefId()
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTreeSelectorGUI()

ilObjOrgUnitGUI::getTreeSelectorGUI (   $cmd)
protected

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

References $tree.

616  {
617  global $tree;
618  $explorer = new ilOrgUnitExplorerGUI("rep_exp_sel", $this, "showPasteTree", $tree);
619  $explorer->setAjax(false);
620  $explorer->setSelectMode('nodes[]', false);
621 
622  return $explorer;
623  }
Class ilOrgUnitExplorerGUI.

◆ initAdvancedSettingsForm()

ilObjOrgUnitGUI::initAdvancedSettingsForm ( )
protected

Initialize the form for editing advanced meta data.

Returns
ilPropertyFormGUI

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

Referenced by editAdvancedSettings(), and updateAdvancedSettings().

516  {
517  $form = new ilPropertyFormGUI();
518  $form->setFormAction($this->ctrl->getFormAction($this));
519  $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
520  $form->addCommandButton('editSettings', $this->lng->txt('cancel'));
521 
522  return $form;
523  }
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 347 of file class.ilObjOrgUnitGUI.php.

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

347  {
348  $forms = array(
349  self::CFORM_NEW => $this->initCreateForm($a_new_type),
350  self::CFORM_IMPORT => $this->initImportForm($a_new_type),
351  );
352 
353  return $forms;
354  }
initImportForm($a_new_type)
Init object import form.
initCreateForm($a_new_type)
Init object creation form.
+ Here is the call graph for this function:

◆ performPaste()

ilObjOrgUnitGUI::performPaste ( )

Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject

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

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

Referenced by executeCommand().

637  {
638 
639  if (!in_array($_SESSION['clipboard']['cmd'], array( 'cut' ))) {
640  $message = __METHOD__ . ": cmd was not 'cut' ; may be a hack attempt!";
641  $this->ilias->raiseError($message, $this->ilias->error_obj->WARNING);
642  }
643  if ($_SESSION['clipboard']['cmd'] == 'cut') {
644  if (isset($_GET['ref_id']) && (int)$_GET['ref_id']) {
645  $_POST['nodes'] = array( $_GET['ref_id'] );
647  }
648  }
649  $this->ctrl->returnToParent($this);
650  }
$_POST['username']
Definition: cron.php:12
$_SESSION["AccountId"]
$_GET["client_id"]
redirection script todo: (a better solution should control the processing via a xml file) ...
+ 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 416 of file class.ilObjOrgUnitGUI.php.

References ilObject\_lookupType().

416  {
417  $obj_type = ilObject::_lookupType($a_ref_id, true);
418  if ($obj_type != "orgu") {
419  parent::redirectToRefId($a_ref_id, $a_cmd);
420  } else {
421  $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $a_ref_id);
422  $this->ctrl->redirectByClass("ilObjOrgUnitGUI", $a_cmd);
423  }
424  }
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 501 of file class.ilObjOrgUnitGUI.php.

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

Referenced by executeCommand().

502  {
504  //only display the import tab at the first level
505  if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) AND $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
506  $this->tabs_gui->addSubTab("import", $this->lng->txt("import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "chooseImport"));
507  }
508  }
$_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 464 of file class.ilObjOrgUnitGUI.php.

References $cmd.

Referenced by executeCommand().

464  {
465  $next_class = $this->ctrl->getNextClass($this);
466  $cmd = $this->ctrl->getCmd();
467  $this->tabs_gui->addSubTab('edit_settings', $this->lng->txt('settings'), $this->ctrl->getLinkTarget($this, 'editSettings'));
468  $this->tabs_gui->addSubTab("edit_translations", $this->lng->txt("obj_multilinguality"), $this->ctrl->getLinkTargetByClass("iltranslationgui", "editTranslations"));
469 
470  $ilOrgUnitType = $this->object->getOrgUnitType();
471  if ($ilOrgUnitType instanceof ilOrgUnitType) {
472  if (count($ilOrgUnitType->getAssignedAdvancedMDRecords(true))) {
473  $this->tabs_gui->addSubTab('edit_advanced_settings', $this->lng->txt('orgu_adv_settings'), $this->ctrl->getLinkTarget($this, 'editAdvancedSettings'));
474  }
475  }
476 
477  $this->tabs_gui->setSubTabActive($active_tab_id);
478  switch ($next_class) {
479  case 'iltranslationgui':
480  $this->tabs_gui->setSubTabActive("edit_translations");
481  break;
482  case '':
483  switch ($cmd) {
484  case 'editSettings':
485  $this->tabs_gui->setSubTabActive('edit_settings');
486  break;
487  case 'editAdvancedSettings':
488  case 'updateAdvancedSettings':
489  $this->tabs_gui->setSubTabActive('edit_advanced_settings');
490  break;
491  }
492  break;
493  }
494 
495  return;
496  }
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 378 of file class.ilObjOrgUnitGUI.php.

378  {
379  # all possible create permissions
380  //$possible_ops_ids = $rbacreview->getOperationsByTypeAndClass('orgu', 'create');
381  parent::setTitleAndDescription();
382  if ($this->object->getTitle() == "__OrgUnitAdministration") {
383  $this->tpl->setTitle($this->lng->txt("objs_orgu"));
384  $this->tpl->setDescription($this->lng->txt("objs_orgu"));
385  }
386 
387  // Check for custom icon of type
388  if ($this->ilias->getSetting('custom_icons')) {
389  $icons_cache = ilObjOrgUnit::getIconsCache();
390  $icon_file = (isset($icons_cache[$this->object->getId()])) ? $icons_cache[$this->object->getId()] : '';
391  if ($icon_file) {
392  $this->tpl->setTitleIcon($icon_file, $this->lng->txt("obj_" . $this->object->getType()));
393  }
394  }
395  }
redirection script todo: (a better solution should control the processing via a xml file) ...

◆ showPossibleSubObjects()

ilObjOrgUnitGUI::showPossibleSubObjects ( )

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

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

357  {
358  $gui = new ilObjectAddNewItemGUI($this->object->getRefId());
360  $gui->setCreationUrl("ilias.php?ref_id=" . $_GET["ref_id"] . "&admin_mode=settings&cmd=create&baseClass=ilAdministrationGUI");
361  $gui->render();
362  }
$_GET["client_id"]
Render add new item selector.
+ Here is the call graph for this function:

◆ showTree()

ilObjOrgUnitGUI::showTree ( )

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

References $_GET, and $tree.

Referenced by executeCommand().

365  {
366  $tree = new ilOrgUnitExplorerGUI("orgu_explorer", "ilObjOrgUnitGUI", "showTree", new ilTree(1));
367  $tree->setTypeWhiteList(array( "orgu" ));
368  if (!$tree->handleCommand()) {
369  $this->tpl->setLeftNavContent($tree->getHTML());
370  }
371  $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $_GET["ref_id"]);
372  }
$_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 caller graph for this function:

◆ updateAdvancedSettings()

ilObjOrgUnitGUI::updateAdvancedSettings ( )
protected

Update Advanced Metadata.

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

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

Referenced by executeCommand().

545  {
546  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
547  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
548  $this->ctrl->redirect($this);
549  }
550  $form = $this->initAdvancedSettingsForm();
551  $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
552  $gui->setPropertyForm($form);
553  $form->checkInput();
554  $gui->parse();
555  if ($gui->importEditFormPostValues()) {
556  $gui->writeEditForm();
557  ilUtil::sendSuccess($this->lng->txt('settings_saved'), true);
558  $this->ctrl->redirect($this, 'editAdvancedSettings');
559  } else {
560  $this->tpl->setContent($form->getHTML());
561  }
562  }
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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSettings()

ilObjOrgUnitGUI::updateSettings ( )

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

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

Referenced by executeCommand().

574  {
575  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
576  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
577  $this->ctrl->redirect($this);
578  }
579  $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
580  if ($form->saveObject()) {
581  ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
582  $this->ctrl->redirect($this, 'editSettings');
583  } else {
584  $this->tpl->setContent($form->getHTML());
585  }
586  }
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 320 of file class.ilObjOrgUnitGUI.php.

References $_GET, and ilUtil\sendFailure().

Referenced by executeCommand().

320  {
321  if (!$this->ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
322  if ($this->ilAccess->checkAccess("visible", "", $_GET["ref_id"])) {
323  ilUtil::sendFailure($this->lng->txt("msg_no_perm_read"));
324  $this->ctrl->redirectByClass('ilinfoscreengui', '');
325  }
326 
327  $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
328  }
329 
330  parent::renderObject();
331  $this->tabs_gui->setTabActive("view_content");
332  $this->tabs_gui->removeSubTab("page_editor");
333  $this->tabs_gui->removeSubTab("ordering"); // Mantis 0014728
334 
335  }
$_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 51 of file class.ilObjOrgUnitGUI.php.

◆ $ilAccess

ilObjOrgUnitGUI::$ilAccess
protected

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

Referenced by __construct().

◆ $ilias

ilObjOrgUnitGUI::$ilias

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

Referenced by __construct().

◆ $ilLocator

ilObjOrgUnitGUI::$ilLocator
protected

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

Referenced by __construct().

◆ $ilLog

ilObjOrgUnitGUI::$ilLog
protected

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

Referenced by __construct().

◆ $object

ilObjOrgUnitGUI::$object

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

◆ $tabs_gui

ilObjOrgUnitGUI::$tabs_gui

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

◆ $toolbar

ilObjOrgUnitGUI::$toolbar
protected

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

Referenced by updateSettings().

◆ $tpl

ilObjOrgUnitGUI::$tpl

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

Referenced by __construct(), and updateSettings().

◆ $tree

ilObjOrgUnitGUI::$tree

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

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


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