/**
  * forward method
  */
 public function forward()
 {
     $this->tabs->setTabActive('settings');
     $this->lng->loadLanguageModule('tax');
     require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
     $questionList = new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin, $this->poolOBJ->getId());
     $questionList->load();
     require_once 'Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php';
     $taxGUI = new ilObjTaxonomyGUI();
     $taxGUI->setAssignedObject($this->poolOBJ->getId());
     $taxGUI->setMultiple(true);
     $taxGUI->activateAssignedItemSorting($questionList, 'qpl', $this->poolOBJ->getId(), 'quest');
     $this->ctrl->forwardCommand($taxGUI);
 }
 public function executeCommand()
 {
     if ($this->isAccessDenied()) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     $nextClass = $this->ctrl->getNextClass();
     $this->manageTabs($nextClass);
     switch ($nextClass) {
         case 'ilassquestionskillassignmentsgui':
             require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
             $questionList = new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin);
             $questionList->setParentObjId($this->poolOBJ->getId());
             $questionList->setQuestionInstanceTypeFilter(ilAssQuestionList::QUESTION_INSTANCE_TYPE_ORIGINALS);
             $questionList->load();
             $gui = new ilAssQuestionSkillAssignmentsGUI($this->ctrl, $this->access, $this->tpl, $this->lng, $this->db);
             $gui->setAssignmentEditingEnabled(true);
             $gui->setQuestionContainerId($this->poolOBJ->getId());
             $gui->setQuestionList($questionList);
             $this->ctrl->forwardCommand($gui);
             break;
         case 'ilassquestionskillusagestablegui':
             $gui = new ilAssQuestionSkillUsagesTableGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->poolOBJ->getId());
             $this->ctrl->forwardCommand($gui);
             break;
     }
 }
 public function executeCommand()
 {
     if ($this->isAccessDenied()) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     $nextClass = $this->ctrl->getNextClass();
     $this->manageTabs($nextClass);
     switch ($nextClass) {
         case 'ilassquestionskillassignmentsgui':
             $questionContainerId = $this->getQuestionContainerId();
             require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
             $questionList = new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin);
             $questionList->setParentObjId($questionContainerId);
             $questionList->setQuestionInstanceTypeFilter($this->getRequiredQuestionInstanceTypeFilter());
             $questionList->load();
             $gui = new ilAssQuestionSkillAssignmentsGUI($this->ctrl, $this->access, $this->tpl, $this->lng, $this->db);
             $gui->setAssignmentEditingEnabled($this->isAssignmentEditingRequired());
             $gui->setQuestionContainerId($questionContainerId);
             $gui->setQuestionList($questionList);
             if ($this->testOBJ->isFixedTest()) {
                 $gui->setQuestionOrderSequence($this->testOBJ->getQuestions());
             } else {
                 $gui->setAssignmentConfigurationHintMessage($this->buildAssignmentConfigurationInPoolHintMessage());
             }
             $this->ctrl->forwardCommand($gui);
             break;
         case 'iltestskilllevelthresholdsgui':
             $gui = new ilTestSkillLevelThresholdsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ->getTestId());
             $gui->setQuestionAssignmentColumnsEnabled(!$this->testOBJ->isRandomTest());
             $gui->setQuestionContainerId($this->getQuestionContainerId());
             $this->ctrl->forwardCommand($gui);
             break;
     }
 }
 /**
  * execute command
  */
 public function &executeCommand()
 {
     global $ilCtrl;
     // determine next class in the call structure
     $next_class = $this->ilCtrl->getNextClass($this);
     switch ($next_class) {
         case 'ilrepositorysearchgui':
             include_once './Services/Search/classes/class.ilRepositorySearchGUI.php';
             $rep_search =& new ilRepositorySearchGUI();
             $this->ilCtrl->setReturn($this, 'perminfo');
             $this->ilCtrl->forwardCommand($rep_search);
             break;
         default:
             $cmd = $this->ilCtrl->getCmd();
             $this->{$cmd}();
             break;
     }
 }
 public function executeCommand()
 {
     if ($this->isAccessDenied()) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     $nextClass = $this->ctrl->getNextClass();
     $this->manageTabs($nextClass);
     switch ($nextClass) {
         case 'iltestskillquestionassignmentsgui':
             $gui = new ilTestSkillQuestionAssignmentsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ);
             $this->ctrl->forwardCommand($gui);
             break;
         case 'iltestskilllevelthresholdsgui':
             $gui = new ilTestSkillLevelThresholdsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ);
             $this->ctrl->forwardCommand($gui);
             break;
     }
 }
 /**
  * @return bool
  * @throws Exception
  * @throws ilCtrlException
  * @throws ilException
  */
 public function executeCommand()
 {
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     switch ($next_class) {
         case 'ilrepositorysearchgui':
             switch ($cmd) {
                 case 'addUserFromAutoComplete':
                     if ($_GET['addusertype'] == "staff") {
                         $this->addStaff();
                     } elseif ($_GET['addusertype'] == "other") {
                         $this->addOtherRoles();
                     }
                     break;
                 default:
                     $repo = new ilRepositorySearchGUI();
                     $this->ctrl->forwardCommand($repo);
                     break;
             }
             break;
         default:
             switch ($cmd) {
                 case 'showStaff':
                     $this->tabs_gui->activateSubTab("show_staff");
                     $this->showStaff();
                     break;
                 case 'showOtherRoles':
                     $this->tabs_gui->activateSubTab("show_other_roles");
                     $this->showOtherRoles();
                     break;
                 case 'showStaffRec':
                     $this->tabs_gui->activateSubTab("show_staff_rec");
                     $this->showStaffRec();
                     break;
                 case 'confirmRemoveFromRole':
                 case 'confirmRemoveFromEmployees':
                 case 'confirmRemoveFromSuperiors':
                     $this->confirmRemoveUser($cmd);
                     break;
                 case 'addStaff':
                 case 'addOtherRoles':
                 case 'fromSuperiorToEmployee':
                 case 'fromEmployeeToSuperior':
                 case 'removeFromSuperiors':
                 case 'removeFromEmployees':
                 case 'removeFromRole':
                     $this->{$cmd}();
                     break;
                 default:
                     throw new ilException("Unknown command for command class ilOrgUnitStaffGUI: " . $cmd);
                     break;
             }
             break;
     }
     return true;
 }
 /**
  *
  */
 public function executeCommand()
 {
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     $this->prepareOutput();
     switch ($next_class) {
         case 'ilpermissiongui':
             $this->tabs_gui->setTabActive('perm_settings');
             require_once 'Services/AccessControl/classes/class.ilPermissionGUI.php';
             $perm_gui = new ilPermissionGUI($this);
             $this->ctrl->forwardCommand($perm_gui);
             break;
         default:
             if ($cmd == '' || $cmd == 'view') {
                 $cmd = 'settings';
             }
             $this->{$cmd}();
             break;
     }
 }
 /**
  *
  */
 public function executeCommand()
 {
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     switch ($next_class) {
         case 'ilrepositorysearchgui':
             include_once 'Services/Search/classes/class.ilRepositorySearchGUI.php';
             $rep_search = new ilRepositorySearchGUI();
             $rep_search->setCallback($this, 'addModerator');
             $this->ctrl->setReturn($this, 'showModerators');
             $this->ctrl->forwardCommand($rep_search);
             break;
         default:
             if (!$cmd) {
                 $cmd = 'showModerators';
             }
             $this->{$cmd}();
             break;
     }
 }
 public function executeCommand()
 {
     if (!$this->access->checkAccess("write", "", $this->testOBJ->getRefId())) {
         ilUtil::sendFailure($this->lng->txt("cannot_edit_test"), true);
         $this->ctrl->redirectByClass('ilObjTestGUI', "infoScreen");
     }
     if ($this->isAvoidManipulationRedirectRequired()) {
         ilUtil::sendFailure($this->lng->txt("tst_msg_cannot_modify_random_question_set_conf_due_to_part"), true);
         $this->ctrl->redirect($this);
     }
     $this->handleTabs();
     $nextClass = $this->ctrl->getNextClass();
     switch ($nextClass) {
         case 'ilTestRandomQuestionSetPoolDefinitionFormGUI':
             $formGUI = new ilTestRandomQuestionSetPoolDefinitionFormGUI($this->ctrl, $this->lng, $this->testOBJ, $this, $this->questionSetConfig);
             $this->ctrl->forwardCommand($formGUI);
             break;
         default:
             $cmd = $this->ctrl->getCmd(self::CMD_SHOW_GENERAL_CONFIG_FORM) . 'Cmd';
             $this->{$cmd}();
     }
 }
 public function executeCommand()
 {
     $this->tabs->setTabActive(self::TAB_ID_QUESTION_PREVIEW);
     $this->lng->loadLanguageModule('content');
     $nextClass = $this->ctrl->getNextClass($this);
     switch ($nextClass) {
         case 'ilassquestionhintrequestgui':
             require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
             $gui = new ilAssQuestionHintRequestGUI($this, self::CMD_SHOW, $this->questionGUI, $this->hintTracking);
             $this->ctrl->forwardCommand($gui);
             break;
         case 'ilassspecfeedbackpagegui':
         case 'ilassgenfeedbackpagegui':
             require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php';
             $forwarder = new ilAssQuestionFeedbackPageObjectCommandForwarder($this->questionOBJ, $this->ctrl, $this->tabs, $this->lng);
             $forwarder->forward();
             break;
         default:
             $cmd = $this->ctrl->getCmd(self::CMD_SHOW) . 'Cmd';
             $this->{$cmd}();
     }
 }
 public function executeCommand()
 {
     $cmd = $this->ctrl->getCmd();
     $next_class = $this->ctrl->getNextClass($this);
     parent::prepareOutput();
     $this->showTree();
     switch ($next_class) {
         case "illocalusergui":
             $this->tabs_gui->setTabActive('administrate_users');
             $ilLocalUserGUI = new ilLocalUserGUI($this);
             $this->ctrl->forwardCommand($ilLocalUserGUI);
             break;
         case "ilextidgui":
             $this->tabs_gui->setTabActive("settings");
             $this->setSubTabsSettings();
             $ilExtIdGUI = new ilExtIdGUI($this);
             $this->ctrl->forwardCommand($ilExtIdGUI);
             break;
         case "ilorgunitsimpleimportgui":
             $this->tabs_gui->setTabActive("view_content");
             $ilOrgUnitSimpleImportGUI = new ilOrgUnitSimpleImportGUI($this);
             $this->ctrl->forwardCommand($ilOrgUnitSimpleImportGUI);
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
             break;
         case "ilorgunitsimpleuserimportgui":
             $this->tabs_gui->setTabActive("view_content");
             $ilOrgUnitSimpleUserImportGUI = new ilOrgUnitSimpleUserImportGUI($this);
             $this->ctrl->forwardCommand($ilOrgUnitSimpleUserImportGUI);
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
             break;
         case "ilorgunitstaffgui":
         case "ilrepositorysearchgui":
             $this->tabs_gui->setTabActive('orgu_staff');
             $ilOrgUnitStaffGUI = new ilOrgUnitStaffGUI($this);
             $this->ctrl->forwardCommand($ilOrgUnitStaffGUI);
             break;
         case "ilobjusergui":
             switch ($cmd) {
                 case "create":
                     $ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['ref_id'], true, false);
                     $ilObjUserGUI->setCreationMode(true);
                     $this->ctrl->forwardCommand($ilObjUserGUI);
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
                     break;
                 case "view":
                 case "update":
                     $ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['obj_id'], false, false);
                     $ilObjUserGUI->setCreationMode(false);
                     $this->ctrl->forwardCommand($ilObjUserGUI);
                     break;
                 case "cancel":
                     $this->ctrl->redirectByClass("illocalusergui", "index");
                     break;
             }
             break;
         case "ilobjuserfoldergui":
             $ilObjUserFolderGUI = new ilObjUserFolderGUI("", (int) $_GET['ref_id'], true, false);
             $ilObjUserFolderGUI->setUserOwnerId((int) $_GET['ref_id']);
             $ilObjUserFolderGUI->setCreationMode(true);
             $this->ctrl->forwardCommand($ilObjUserFolderGUI);
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
             break;
         case "ilinfoscreengui":
             $this->tabs_gui->setTabActive("info_short");
             if (!$this->ilAccess->checkAccess("visible", "", $this->ref_id)) {
                 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
             }
             $info = new ilInfoScreenGUI($this);
             $this->ctrl->forwardCommand($info);
             break;
         case 'ilpermissiongui':
             $this->tabs_gui->setTabActive('perm_settings');
             $ilPermissionGUI = new ilPermissionGUI($this);
             $this->ctrl->forwardCommand($ilPermissionGUI);
             break;
         case "ilcommonactiondispatchergui":
             include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
             $gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();
             $this->ctrl->forwardCommand($gui);
             break;
         case 'illearningprogressgui':
         case 'illplistofprogressgui':
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt('backto_staff'), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", 'showStaff'));
             if (!ilObjOrgUnitAccess::_checkAccessToUserLearningProgress($this->object->getRefid(), $_GET['obj_id'])) {
                 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
                 $this->ctrl->redirectByClass("ilOrgUnitStaffGUI", "showStaff");
             }
             $this->ctrl->saveParameterByClass("illearningprogressgui", "obj_id");
             $this->ctrl->saveParameterByClass("illearningprogressgui", "recursive");
             include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
             $new_gui =& new ilLearningProgressGUI(ilLearningProgressGUI::LP_CONTEXT_USER_FOLDER, USER_FOLDER_ID, $_GET["obj_id"]);
             $this->ctrl->forwardCommand($new_gui);
             break;
         case 'ilorgunitexportgui':
             $this->tabs_gui->setTabActive('export');
             $ilOrgUnitExportGUI = new ilOrgUnitExportGUI($this);
             $ilOrgUnitExportGUI->addFormat('xml');
             $this->ctrl->forwardCommand($ilOrgUnitExportGUI);
             break;
         case 'iltranslationgui':
             $this->tabs_gui->setTabActive("settings");
             $this->setSubTabsSettings();
             $ilTranslationGui = new ilTranslationGUI($this);
             $this->ctrl->forwardCommand($ilTranslationGui);
             break;
         default:
             switch ($cmd) {
                 case '':
                 case 'view':
                 case 'render':
                 case 'cancel':
                     $this->view();
                     break;
                 case 'create':
                     parent::createObject();
                     break;
                 case 'save':
                     parent::saveObject();
                     break;
                 case 'delete':
                     parent::deleteObject();
                     break;
                 case 'confirmedDelete':
                     parent::confirmedDeleteObject();
                     break;
                 case 'cut':
                     parent::cutObject();
                     break;
                 case 'clear':
                     parent::clearObject();
                     break;
                 case 'enableAdministrationPanel':
                     parent::enableAdministrationPanelObject();
                     break;
                 case 'disableAdministrationPanel':
                     parent::disableAdministrationPanelObject();
                     break;
             }
             break;
     }
 }
 public function executeCommand()
 {
     $cmd = $this->ctrl->getCmd();
     $next_class = $this->ctrl->getNextClass($this);
     parent::prepareOutput();
     //Otherwise move-Objects would not work
     if ($cmd != "cut") {
         $this->showTree();
     }
     switch ($next_class) {
         case "illocalusergui":
             if (!ilObjOrgUnitAccess::_checkAccessAdministrateUsers((int) $_GET['ref_id'])) {
                 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
                 $this->ctrl->redirect($this);
             }
             $this->tabs_gui->setTabActive('administrate_users');
             $ilLocalUserGUI = new ilLocalUserGUI($this);
             $this->ctrl->forwardCommand($ilLocalUserGUI);
             break;
         case "ilorgunitsimpleimportgui":
             $this->tabs_gui->setTabActive("view_content");
             $ilOrgUnitSimpleImportGUI = new ilOrgUnitSimpleImportGUI($this);
             $this->ctrl->forwardCommand($ilOrgUnitSimpleImportGUI);
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
             break;
         case "ilorgunitsimpleuserimportgui":
             $this->tabs_gui->setTabActive("view_content");
             $ilOrgUnitSimpleUserImportGUI = new ilOrgUnitSimpleUserImportGUI($this);
             $this->ctrl->forwardCommand($ilOrgUnitSimpleUserImportGUI);
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
             break;
         case "ilorgunitstaffgui":
         case "ilrepositorysearchgui":
             $this->tabs_gui->setTabActive('orgu_staff');
             $ilOrgUnitStaffGUI = new ilOrgUnitStaffGUI($this);
             $this->ctrl->forwardCommand($ilOrgUnitStaffGUI);
             break;
         case "ilobjusergui":
             switch ($cmd) {
                 case "create":
                     $ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['ref_id'], true, false);
                     $ilObjUserGUI->setCreationMode(true);
                     $this->ctrl->forwardCommand($ilObjUserGUI);
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
                     break;
                 case "save":
                     $ilObjUserGUI = new ilObjUserGUI("", $_GET['ref_id'], true, false);
                     $ilObjUserGUI->setCreationMode(true);
                     $this->ctrl->forwardCommand($ilObjUserGUI);
                     $this->tabs_gui->clearTargets();
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
                     break;
                 case "view":
                 case "update":
                     $ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['obj_id'], false, false);
                     $ilObjUserGUI->setCreationMode(false);
                     $this->ctrl->forwardCommand($ilObjUserGUI);
                     $this->tabs_gui->clearTargets();
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
                     break;
                 case "cancel":
                     $this->ctrl->redirectByClass("illocalusergui", "index");
                     break;
             }
             break;
         case "ilobjuserfoldergui":
             switch ($cmd) {
                 case "view":
                     $this->ctrl->redirectByClass("illocalusergui", "index");
                     break;
                 default:
                     $ilObjUserFolderGUI = new ilObjUserFolderGUI("", (int) $_GET['ref_id'], true, false);
                     $ilObjUserFolderGUI->setUserOwnerId((int) $_GET['ref_id']);
                     $ilObjUserFolderGUI->setCreationMode(true);
                     $this->ctrl->forwardCommand($ilObjUserFolderGUI);
                     $this->tabs_gui->clearTargets();
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
                     break;
             }
             break;
         case "ilinfoscreengui":
             $this->tabs_gui->setTabActive("info_short");
             if (!$this->ilAccess->checkAccess("read", "", $this->ref_id) and !$this->ilAccess->checkAccess("visible", "", $this->ref_id)) {
                 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
             }
             $info = new ilInfoScreenGUI($this);
             $this->parseInfoScreen($info);
             $this->ctrl->forwardCommand($info);
             // 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!
             // So we reimplemented the stuff in the method parseInfoScreen()
             //                $info = new ilInfoScreenGUI($this);
             //                $amd_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
             //                $amd_gui->setInfoObject($info);
             //                $amd_gui->setSelectedOnly(true);
             //                $amd_gui->parse();
             //                $this->ctrl->forwardCommand($info);
             break;
         case 'ilpermissiongui':
             $this->tabs_gui->setTabActive('perm_settings');
             $ilPermissionGUI = new ilPermissionGUI($this);
             $this->ctrl->forwardCommand($ilPermissionGUI);
             break;
         case "ilcommonactiondispatchergui":
             include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
             $gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();
             $this->ctrl->forwardCommand($gui);
             break;
         case 'illearningprogressgui':
         case 'illplistofprogressgui':
             $this->tabs_gui->clearTargets();
             $this->tabs_gui->setBackTarget($this->lng->txt('backto_staff'), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", 'showStaff'));
             if (!ilObjOrgUnitAccess::_checkAccessToUserLearningProgress($this->object->getRefid(), $_GET['obj_id'])) {
                 ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
                 $this->ctrl->redirectByClass("ilOrgUnitStaffGUI", "showStaff");
             }
             $this->ctrl->saveParameterByClass("illearningprogressgui", "obj_id");
             $this->ctrl->saveParameterByClass("illearningprogressgui", "recursive");
             include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
             $new_gui =& new ilLearningProgressGUI(ilLearningProgressGUI::LP_CONTEXT_ORG_UNIT, $_GET["ref_id"], $_GET['obj_id']);
             $this->ctrl->forwardCommand($new_gui);
             break;
         case 'ilorgunitexportgui':
             $this->tabs_gui->setTabActive('export');
             $ilOrgUnitExportGUI = new ilOrgUnitExportGUI($this);
             $ilOrgUnitExportGUI->addFormat('xml');
             $this->ctrl->forwardCommand($ilOrgUnitExportGUI);
             break;
         case 'iltranslationgui':
             $this->tabs_gui->setTabActive("settings");
             $this->setSubTabsSettings('edit_translations');
             $ilTranslationGui = new ilTranslationGUI($this);
             $this->ctrl->forwardCommand($ilTranslationGui);
             break;
         case 'ilorgunittypegui':
             $this->tabs_gui->setTabActive('orgu_types');
             $types_gui = new ilOrgUnitTypeGUI($this);
             $this->ctrl->forwardCommand($types_gui);
             break;
         default:
             switch ($cmd) {
                 case '':
                 case 'view':
                 case 'render':
                 case 'cancel':
                 case 'cancelDelete':
                     $this->view();
                     break;
                 case 'performPaste':
                     $this->performPaste();
                     break;
                 case 'paste':
                     $this->performPaste();
                     break;
                 case 'performPasteIntoMultipleObjects':
                     $this->performPasteIntoMultipleObjectsObject();
                     break;
                 case 'create':
                     parent::createObject();
                     break;
                 case 'save':
                     parent::saveObject();
                     break;
                 case 'delete':
                     $this->tabs_gui->clearTargets();
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
                     parent::deleteObject();
                     break;
                 case 'confirmedDelete':
                     parent::confirmedDeleteObject();
                     break;
                 case 'cut':
                     $this->tabs_gui->clearTargets();
                     $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
                     parent::cutObject();
                     break;
                 case 'clear':
                     parent::clearObject();
                     break;
                 case 'enableAdministrationPanel':
                     parent::enableAdministrationPanelObject();
                     break;
                 case 'disableAdministrationPanel':
                     parent::disableAdministrationPanelObject();
                     break;
                 case 'getAsynchItemList':
                     parent::getAsynchItemListObject();
                     break;
                 case 'editSettings':
                     $this->tabs_gui->setTabActive("settings");
                     $this->setSubTabsSettings('edit_settings');
                     $this->editSettings();
                     break;
                 case 'updateSettings':
                     $this->tabs_gui->setTabActive("settings");
                     $this->setSubTabsSettings('edit_settings');
                     $this->updateSettings();
                     break;
                 case 'editAdvancedSettings':
                     $this->tabs_gui->setTabActive("settings");
                     $this->setSubTabsSettings('edit_advanced_settings');
                     $this->editAdvancedSettings();
                     break;
                 case 'updateAdvancedSettings':
                     $this->tabs_gui->setTabActive("settings");
                     $this->setSubTabsSettings('edit_advanced_settings');
                     $this->updateAdvancedSettings();
                     break;
             }
             break;
     }
 }