function &executeCommand() { global $ilTabs; $next_class = $this->ctrl->getNextClass($this); $cmd = $this->ctrl->getCmd(); $this->prepareOutput(); switch ($next_class) { case 'ilusertablegui': include_once "./Services/User/classes/class.ilUserTableGUI.php"; $u_table = new ilUserTableGUI($this, "view"); $u_table->initFilter(); $this->ctrl->setReturn($this, 'view'); $this->ctrl->forwardCommand($u_table); break; case 'ilpermissiongui': include_once "Services/AccessControl/classes/class.ilPermissionGUI.php"; $perm_gui =& new ilPermissionGUI($this); $ret =& $this->ctrl->forwardCommand($perm_gui); break; case 'ilrepositorysearchgui': include_once './Services/Search/classes/class.ilRepositorySearchGUI.php'; $user_search =& new ilRepositorySearchGUI(); $user_search->enableSearchableCheck(false); $user_search->setCallback($this, 'searchResultHandler', $this->getUserMultiCommands(true)); $this->tabs_gui->setTabActive('search_user_extended'); $this->ctrl->setReturn($this, 'view'); $ret =& $this->ctrl->forwardCommand($user_search); break; case 'ilaccountcodesgui': $this->tabs_gui->setTabActive('settings'); $this->setSubTabs("settings"); $ilTabs->activateSubTab("account_codes"); include_once "./Services/User/classes/class.ilAccountCodesGUI.php"; $acc = new ilAccountCodesGUI($this->ref_id); $this->ctrl->forwardCommand($acc); break; case 'ilcustomuserfieldsgui': $this->tabs_gui->setTabActive('settings'); $this->setSubTabs("settings"); $ilTabs->activateSubTab("user_defined_fields"); include_once "./Services/User/classes/class.ilCustomUserFieldsGUI.php"; $cf = new ilCustomUserFieldsGUI(); $this->ctrl->forwardCommand($cf); break; default: if (!$cmd) { $cmd = "view"; } $cmd .= "Object"; $this->{$cmd}(); break; } return true; }
function &executeCommand() { global $rbacsystem, $ilNavigationHistory, $ilAccess, $ilCtrl, $ilTabs; $next_class = $this->ctrl->getNextClass($this); $cmd = $this->ctrl->getCmd(); switch ($next_class) { case "ilobjusergui": include_once './Services/User/classes/class.ilObjUserGUI.php'; $this->tabs_gui->setTabActive('administrate_users'); if (!$_GET['obj_id']) { $this->gui_obj = new ilObjUserGUI("", $_GET['ref_id'], true, false); $this->gui_obj->setCreationMode($this->creation_mode); $ret =& $this->ctrl->forwardCommand($this->gui_obj); } else { $this->gui_obj = new ilObjUserGUI("", $_GET['obj_id'], false, false); $this->gui_obj->setCreationMode($this->creation_mode); $ret =& $this->ctrl->forwardCommand($this->gui_obj); } $ilTabs->clearTargets(); $ilTabs->setBackTarget($this->lng->txt('backto_lua'), $this->ctrl->getLinkTarget($this, 'listUsers')); break; case "ilobjuserfoldergui": include_once './Services/User/classes/class.ilObjUserFolderGUI.php'; $this->tabs_gui->setTabActive('administrate_users'); $this->gui_obj = new ilObjUserFolderGUI("", (int) $_GET['ref_id'], true, false); $this->gui_obj->setUserOwnerId((int) $_GET['ref_id']); $this->gui_obj->setCreationMode($this->creation_mode); $ret =& $this->ctrl->forwardCommand($this->gui_obj); break; case "ilcolumngui": $this->checkPermission("read"); $this->prepareOutput(); include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->object->getStyleSheetId())); $this->renderObject(); break; case 'ilpermissiongui': $this->prepareOutput(); $this->tabs_gui->setTabActive('perm_settings'); include_once "Services/AccessControl/classes/class.ilPermissionGUI.php"; $perm_gui =& new ilPermissionGUI($this); $ret =& $this->ctrl->forwardCommand($perm_gui); break; case 'ilinfoscreengui': $this->prepareOutput(); $this->infoScreen(); break; case 'ilcontainerlinklistgui': include_once "Services/Container/classes/class.ilContainerLinkListGUI.php"; $link_list_gui =& new ilContainerLinkListGUI(); $ret =& $this->ctrl->forwardCommand($link_list_gui); break; // container page editing // container page editing case "ilpageobjectgui": $this->prepareOutput(false); $ret = $this->forwardToPageObject(); if ($ret != "") { $this->tpl->setContent($ret); } break; case 'ilobjectcopygui': $this->prepareOutput(); include_once './Services/Object/classes/class.ilObjectCopyGUI.php'; $cp = new ilObjectCopyGUI($this); $cp->setType('cat'); $this->ctrl->forwardCommand($cp); break; case "ilobjstylesheetgui": $this->forwardToStyleSheet(); break; case 'ilusertablegui': include_once './Services/User/classes/class.ilUserTableGUI.php'; $u_table = new ilUserTableGUI($this, "listUsers"); $u_table->initFilter(); $this->ctrl->setReturn($this, 'listUsers'); $this->ctrl->forwardCommand($u_table); break; case "ilcommonactiondispatchergui": $this->prepareOutput(); include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php"; $gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall(); $this->ctrl->forwardCommand($gui); break; case 'ildidactictemplategui': $this->ctrl->setReturn($this, 'edit'); include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php'; $did = new ilDidacticTemplateGUI($this); $this->ctrl->forwardCommand($did); break; case 'ilexportgui': $this->prepareOutput(); $this->tabs_gui->setTabActive('export'); include_once './Services/Export/classes/class.ilExportGUI.php'; $exp = new ilExportGUI($this); $exp->addFormat('xml'); $this->ctrl->forwardCommand($exp); break; default: if ($cmd == "infoScreen") { $this->checkPermission("visible"); } else { $this->checkPermission("read"); } // add entry to navigation history if (!$this->getCreationMode() && $ilAccess->checkAccess("read", "", $_GET["ref_id"])) { $ilNavigationHistory->addItem($_GET["ref_id"], $ilCtrl->getLinkTargetByClass("ilrepositorygui", "frameset"), "cat"); } $this->prepareOutput(); include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; if (is_object($this->object)) { $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->object->getStyleSheetId())); } if (!$cmd) { $cmd = "render"; } $cmd .= "Object"; $this->{$cmd}(); break; } $this->addHeaderAction(); return true; }