/**
  * @param ilObjOrgUnitGUI $parent_gui
  */
 function __construct(ilObjOrgUnitGUI $parent_gui)
 {
     global $tpl, $ilCtrl, $ilTabs, $lng, $ilAccess, $ilToolbar, $rbacreview;
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->parent_gui = $parent_gui;
     $this->parent_object = $parent_gui->object;
     $this->tabs_gui = $this->parent_gui->tabs_gui;
     $this->toolbar = $ilToolbar;
     $this->lng = $lng;
     $this->ilAccess = $ilAccess;
     $this->toolbar = $ilToolbar;
     $this->rbacreview = $rbacreview;
     $this->tabs_gui->setTabActive("orgu_staff");
     $this->setTabs();
 }
 public function view()
 {
     $this->checkPermission("read");
     parent::renderObject();
     $this->tabs_gui->setTabActive("view_content");
     $this->tabs_gui->removeSubTab("page_editor");
     if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) and $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
         $this->toolbar->addButton($this->lng->txt("simple_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "importScreen"));
         $this->toolbar->addButton($this->lng->txt("simple_user_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleUserImportGUI", "userImportScreen"));
     }
 }
 /**
  *
  */
 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;
     }
 }
Пример #4
0
 protected function handleTabs($activeTabId)
 {
     if ($this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired()) {
         require_once 'Services/Link/classes/class.ilLink.php';
         $courseLink = ilLink::_getLink($this->getObjectiveOrientedContainer()->getRefId());
         $this->tabs->setBack2Target($this->lng->txt('back_to_objective_container'), $courseLink);
         $this->tabs->addTab('results_pass_oriented', $this->lng->txt('tst_tab_results_pass_oriented'), $this->ctrl->getLinkTargetByClass('ilTestEvaluationGUI', 'outUserResultsOverview'));
         $this->tabs->addTab('results_objective_oriented', $this->lng->txt('tst_tab_results_objective_oriented'), $this->ctrl->getLinkTargetByClass('ilTestEvalObjectiveOrientedGUI', 'showVirtualPass'));
         $this->tabs->setTabActive($activeTabId);
     }
 }
 /**
  * Add tabs to GUI
  *
  * @param string $active_tab_id ID of activated tab
  */
 protected function setTabs($active_tab_id = 'general')
 {
     $this->tabs->addTab('general', $this->pl->txt('general'), $this->ctrl->getLinkTarget($this, 'editType'));
     if ($this->type) {
         $this->tabs->addTab('template', $this->pl->txt('template'), $this->ctrl->getLinkTarget($this, 'editTemplate'));
         $this->tabs->addTab('settings', $this->lng->txt('settings'), $this->ctrl->getLinkTarget($this, 'showSettings'));
         $this->tabs->addTab('placeholders', $this->pl->txt('placeholders'), $this->ctrl->getLinkTarget($this, 'showPlaceholders'));
         $this->tabs->addTab('signatures', $this->pl->txt('signatures'), $this->ctrl->getLinkTarget($this, 'showSignatures'));
         $this->tpl->setTitle($this->type->getTitle());
         $this->tpl->setDescription($this->type->getDescription());
     }
     $this->tabs->setTabActive($active_tab_id);
     $this->tabs->setBackTarget($this->pl->txt('back_to_overview'), $this->ctrl->getLinkTarget($this));
 }
Пример #6
0
 public function view()
 {
     if (!$this->ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
         if ($this->ilAccess->checkAccess("visible", "", $_GET["ref_id"])) {
             ilUtil::sendFailure($this->lng->txt("msg_no_perm_read"));
             $this->ctrl->redirectByClass('ilinfoscreengui', '');
         }
         $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
     }
     parent::renderObject();
     $this->tabs_gui->setTabActive("view_content");
     $this->tabs_gui->removeSubTab("page_editor");
     $this->tabs_gui->removeSubTab("ordering");
     // Mantis 0014728
     if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) and $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
         $this->toolbar->addButton($this->lng->txt("simple_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "importScreen"));
         $this->toolbar->addButton($this->lng->txt("simple_user_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleUserImportGUI", "userImportScreen"));
     }
 }
 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}();
     }
 }