ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
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)
 
 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 ($a_initial_call=false)
 Show tree. More...
 
 trashObject ()
 Show trash content of object. More...
 
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method More...
 
 undeleteObject ()
 Get objects back from trash. More...
 
 confirmRemoveFromSystemObject ()
 confirmation screen remove from system More...
 
- 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...
 
 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...
 
 parseInfoScreen (ilInfoScreenGUI $info)
 Add Advanced Meta Data Information to the Info Screen. 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)
 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
 

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 
103  $lng->loadLanguageModule("orgu");
104  $this->tpl->addCss('./Modules/OrgUnit/templates/default/orgu.css');
105  }
$_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 708 of file class.ilObjOrgUnitGUI.php.

708  {
709  return parent::__initTableGUI();
710  }

◆ __setTableGUIBasicData()

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

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

717  {
718  return parent::__setTableGUIBasicData($tbl, $a_result_set, $a_from, $a_form);
719  }

◆ _goto()

static ilObjOrgUnitGUI::_goto (   $ref_id)
static

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

References $ilCtrl, and ilObjectGUI\$ref_id.

648  {
649  global $ilCtrl;
650  $ilCtrl->initBaseClass("ilAdministrationGUI");
651  $ilCtrl->setTargetScript("ilias.php");
652  $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $ref_id);
653  $ilCtrl->setParameterByClass("ilObjOrgUnitGUI", "admin_mode", "settings");
654  $ilCtrl->redirectByClass(array( "ilAdministrationGUI", "ilObjOrgUnitGUI" ), "view");
655  }
global $ilCtrl
Definition: ilias.php:18

◆ addAdminLocatorItems()

ilObjOrgUnitGUI::addAdminLocatorItems ( )
protected

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

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

408  {
409  $path = $this->tree->getPathFull($_GET["ref_id"], ilObjOrgUnit::getRootOrgRefId());
410  // add item for each node on path
411  foreach ((array)$path as $key => $row) {
412  if ($row["title"] == "__OrgUnitAdministration") {
413  $row["title"] = $this->lng->txt("objs_orgu");
414  }
415  $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $row["child"]);
416  $this->ilLocator->addItem($row["title"], $this->ctrl->getLinkTargetByClass("ilobjorgunitgui", "view"), ilFrameTargetInfo::_getFrame("MainContent"), $row["child"]);
417  $this->ctrl->setParameterByClass("ilobjorgunitgui", "ref_id", $_GET["ref_id"]);
418  }
419  }
$_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 698 of file class.ilObjOrgUnitGUI.php.

698  {
699  }

◆ editAdvancedSettings()

ilObjOrgUnitGUI::editAdvancedSettings ( )
protected

Edit Advanced Metadata.

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

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

Referenced by executeCommand().

527  {
528  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
529  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
530  $this->ctrl->redirect($this);
531  }
532  $form = $this->initAdvancedSettingsForm();
533  $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
534  $gui->setPropertyForm($form);
535  $gui->setSelectedOnly(true);
536  $gui->parse();
537  $this->tpl->setContent($form->getHTML());
538  }
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 606 of file class.ilObjOrgUnitGUI.php.

References ilUtil\sendFailure().

Referenced by executeCommand().

606  {
607  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
608  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
609  $this->ctrl->redirect($this);
610  }
611  $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
612  $this->tpl->setContent($form->getHTML());
613  }
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 108 of file class.ilObjOrgUnitGUI.php.

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

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

References getTabs().

671  {
672  $this->getTabs($tabs_gui);
673  }
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 440 of file class.ilObjOrgUnitGUI.php.

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

Referenced by getAdminTabs().

440  {
441  if ($this->ilAccess->checkAccess('read', '', $this->object->getRefId())) {
442  $this->tabs_gui->addTab("view_content", $this->lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
443  $this->tabs_gui->addTab("info_short", "Info", $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
444  }
445 
446  // Tabs for OrgUnits exclusive root!
447  if ($this->object->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
448  if (ilObjOrgUnitAccess::_checkAccessStaff($this->object->getRefId())) {
449  $this->tabs_gui->addTab("orgu_staff", $this->lng->txt("orgu_staff"), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", "showStaff"));
450  }
451  if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
452  $this->tabs_gui->addTab("settings", $this->lng->txt("settings"), $this->ctrl->getLinkTarget($this, 'editSettings'));
453  }
454  if (ilObjOrgUnitAccess::_checkAccessAdministrateUsers($this->object->getRefId())) {
455  $this->tabs_gui->addTab("administrate_users", $this->lng->txt("administrate_users"), $this->ctrl->getLinkTargetByClass("ilLocalUserGUI", "index"));
456  }
457  }
458 
459  if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
460  $this->tabs_gui->addTarget('export', $this->ctrl->getLinkTargetByClass('ilorgunitexportgui', ''), 'export', 'ilorgunitexportgui');
461 
462  // Add OrgUnit types tab
463  if ($this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
464  $this->tabs_gui->addTab('orgu_types', $this->lng->txt('orgu_types'), $this->ctrl->getLinkTargetByClass('ilOrgUnitTypeGUI'));
465  }
466  }
467  parent::getTabs($this->tabs_gui);
468  }
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 658 of file class.ilObjOrgUnitGUI.php.

References $tree.

658  {
659  global $tree;
660  $explorer = new ilOrgUnitExplorerGUI("rep_exp_sel", $this, "showPasteTree", $tree);
661  $explorer->setAjax(false);
662  $explorer->setSelectMode('nodes[]', false);
663 
664  return $explorer;
665  }
Class ilOrgUnitExplorerGUI.

◆ initAdvancedSettingsForm()

ilObjOrgUnitGUI::initAdvancedSettingsForm ( )
protected

Initialize the form for editing advanced meta data.

Returns
ilPropertyFormGUI

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

Referenced by editAdvancedSettings(), and updateAdvancedSettings().

514  {
515  $form = new ilPropertyFormGUI();
516  $form->setFormAction($this->ctrl->getFormAction($this));
517  $form->addCommandButton('updateAdvancedSettings', $this->lng->txt('save'));
518  $form->addCommandButton('editSettings', $this->lng->txt('cancel'));
519 
520  return $form;
521  }
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 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.
+ Here is the call graph for this function:

◆ parseInfoScreen()

ilObjOrgUnitGUI::parseInfoScreen ( ilInfoScreenGUI  $info)
protected

Add Advanced Meta Data Information to the Info Screen.

Parameters
ilInfoScreenGUI$info

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

References ilAdvancedMDRecord\_lookupTitle(), ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), ilObjectGUI\getHTML(), ilADTFactory\getInstance(), ilAdvancedMDValues\getInstancesForObjectId(), and ilAdvancedMDValues\read().

Referenced by executeCommand().

570  {
571  include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
572  include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php');
573  include_once('Services/ADT/classes/class.ilADTFactory.php');
574 
575  $type = $this->object->getOrgUnitType();
576  if (!$type) {
577  return;
578  }
579  $assigned_record_ids = $type->getAssignedAdvancedMDRecordIds();
580 
581  foreach (ilAdvancedMDValues::getInstancesForObjectId($this->object->getId(), 'orgu') as $record_id => $a_values) {
582  // Skip record ids not assigned to the type
583  if (!in_array($record_id, $assigned_record_ids)) {
584  continue;
585  }
586 
587  // Note that we have to do this because with the instances above the sub-type and sub-id are missing...
588  $a_values = new ilAdvancedMDValues($record_id, $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
589 
590  // this correctly binds group and definitions
591  $a_values->read();
592 
593  $info->addSection(ilAdvancedMDRecord::_lookupTitle($record_id));
594 
595  $defs = $a_values->getDefinitions();
596  foreach ($a_values->getADTGroup()->getElements() as $element_id => $element) {
597  if (!$element->isNull()) {
598  $info->addProperty($defs[$element_id]->getTitle(), ilADTFactory::getInstance()->getPresentationBridgeForInstance($element)
599  ->getHTML());
600  }
601  }
602  }
603  }
addSection($a_title)
add a new section
static getInstance()
Get singleton.
static _lookupTitle($a_record_id)
Lookup title.
static getInstancesForObjectId($a_obj_id, $a_obj_type=null)
Get instances for given object id.
read()
Get record values.
addProperty($a_name, $a_value, $a_link="")
add a property to current section
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ performPaste()

ilObjOrgUnitGUI::performPaste ( )

Prepare $_POST for the generic method performPasteIntoMultipleObjectsObject

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

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

Referenced by executeCommand().

679  {
680 
681  if (!in_array($_SESSION['clipboard']['cmd'], array( 'cut' ))) {
682  $message = __METHOD__ . ": cmd was not 'cut' ; may be a hack attempt!";
683  $this->ilias->raiseError($message, $this->ilias->error_obj->WARNING);
684  }
685  if ($_SESSION['clipboard']['cmd'] == 'cut') {
686  if (isset($_GET['ref_id']) && (int)$_GET['ref_id']) {
687  $_POST['nodes'] = array( $_GET['ref_id'] );
689  }
690  }
691  $this->ctrl->returnToParent($this);
692  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
$_POST['username']
Definition: cron.php:12
$_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 426 of file class.ilObjOrgUnitGUI.php.

References ilObject\_lookupType().

426  {
427  $obj_type = ilObject::_lookupType($a_ref_id, true);
428  if ($obj_type != "orgu") {
429  parent::redirectToRefId($a_ref_id, $a_cmd);
430  } else {
431  $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $a_ref_id);
432  $this->ctrl->redirectByClass("ilObjOrgUnitGUI", $a_cmd);
433  }
434  }
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:

◆ setSubTabsSettings()

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

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

References $cmd.

Referenced by executeCommand().

474  {
475  $next_class = $this->ctrl->getNextClass($this);
476  $cmd = $this->ctrl->getCmd();
477  $this->tabs_gui->addSubTab('edit_settings', $this->lng->txt('settings'), $this->ctrl->getLinkTarget($this, 'editSettings'));
478  $this->tabs_gui->addSubTab("edit_translations", $this->lng->txt("obj_multilinguality"), $this->ctrl->getLinkTargetByClass("iltranslationgui", "editTranslations"));
479 
480  $ilOrgUnitType = $this->object->getOrgUnitType();
481  if ($ilOrgUnitType instanceof ilOrgUnitType) {
482  if (count($ilOrgUnitType->getAssignedAdvancedMDRecords(true))) {
483  $this->tabs_gui->addSubTab('edit_advanced_settings', $this->lng->txt('orgu_adv_settings'), $this->ctrl->getLinkTarget($this, 'editAdvancedSettings'));
484  }
485  }
486 
487  $this->tabs_gui->setSubTabActive($active_tab_id);
488  switch ($next_class) {
489  case 'iltranslationgui':
490  $this->tabs_gui->setSubTabActive("edit_translations");
491  break;
492  case '':
493  switch ($cmd) {
494  case 'editSettings':
495  $this->tabs_gui->setSubTabActive('edit_settings');
496  break;
497  case 'editAdvancedSettings':
498  case 'updateAdvancedSettings':
499  $this->tabs_gui->setSubTabActive('edit_advanced_settings');
500  break;
501  }
502  break;
503  }
504 
505  return;
506  }
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 388 of file class.ilObjOrgUnitGUI.php.

388  {
389  # all possible create permissions
390  //$possible_ops_ids = $rbacreview->getOperationsByTypeAndClass('orgu', 'create');
391  parent::setTitleAndDescription();
392  if ($this->object->getTitle() == "__OrgUnitAdministration") {
393  $this->tpl->setTitle($this->lng->txt("objs_orgu"));
394  $this->tpl->setDescription($this->lng->txt("objs_orgu"));
395  }
396 
397  // Check for custom icon of type
398  if ($this->ilias->getSetting('custom_icons')) {
399  $icons_cache = ilObjOrgUnit::getIconsCache();
400  $icon_file = (isset($icons_cache[$this->object->getId()])) ? $icons_cache[$this->object->getId()] : '';
401  if ($icon_file) {
402  $this->tpl->setTitleIcon($icon_file, $this->lng->txt("obj_" . $this->object->getType()));
403  }
404  }
405  }
redirection script todo: (a better solution should control the processing via a xml file) ...

◆ showPossibleSubObjects()

ilObjOrgUnitGUI::showPossibleSubObjects ( )

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

References $_GET, ilObjectDefinition\MODE_ADMINISTRATION, 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"]
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, and $tree.

Referenced by executeCommand().

375  {
376  $tree = new ilOrgUnitExplorerGUI("orgu_explorer", "ilObjOrgUnitGUI", "showTree", new ilTree(1));
377  $tree->setTypeWhiteList(array( "orgu" ));
378  if (!$tree->handleCommand()) {
379  $this->tpl->setLeftNavContent($tree->getHTML());
380  }
381  $this->ctrl->setParameterByClass("ilObjOrgUnitGUI", "ref_id", $_GET["ref_id"]);
382  }
$_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 544 of file class.ilObjOrgUnitGUI.php.

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

Referenced by executeCommand().

544  {
545  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
546  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
547  $this->ctrl->redirect($this);
548  }
549  $form = $this->initAdvancedSettingsForm();
550  $gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
551  $gui->setPropertyForm($form);
552  $gui->setSelectedOnly(true);
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 616 of file class.ilObjOrgUnitGUI.php.

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

Referenced by executeCommand().

616  {
617  if (!$this->ilAccess->checkAccess("write", "", $this->ref_id)) {
618  ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
619  $this->ctrl->redirect($this);
620  }
621  $form = new ilObjOrgUnitSettingsFormGUI($this, $this->object);
622  if ($form->saveObject()) {
623  ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
624  $this->ctrl->redirect($this, 'editSettings');
625  } else {
626  $this->tpl->setContent($form->getHTML());
627  }
628  }
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 326 of file class.ilObjOrgUnitGUI.php.

References $_GET, ilObjOrgUnit\getRootOrgRefId(), and ilUtil\sendFailure().

Referenced by executeCommand().

326  {
327  if (!$this->ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
328  if ($this->ilAccess->checkAccess("visible", "", $_GET["ref_id"])) {
329  ilUtil::sendFailure($this->lng->txt("msg_no_perm_read"));
330  $this->ctrl->redirectByClass('ilinfoscreengui', '');
331  }
332 
333  $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
334  }
335 
336  parent::renderObject();
337  $this->tabs_gui->setTabActive("view_content");
338  $this->tabs_gui->removeSubTab("page_editor");
339  $this->tabs_gui->removeSubTab("ordering"); // Mantis 0014728
340  if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) AND $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
341  $this->toolbar->addButton($this->lng->txt("simple_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "importScreen"));
342  $this->toolbar->addButton($this->lng->txt("simple_user_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleUserImportGUI", "userImportScreen"));
343  }
344  }
$_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.
static getRootOrgRefId()
+ 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: