public function manageTabs($activeSubTabId) { $link = $this->ctrl->getLinkTargetByClass('ilAssQuestionSkillAssignmentsGUI', ilAssQuestionSkillAssignmentsGUI::CMD_SHOW_SKILL_QUEST_ASSIGNS); $this->tabs->addSubTab('ilassquestionskillassignmentsgui', $this->lng->txt('qpl_skl_sub_tab_quest_assign'), $link); $link = $this->ctrl->getLinkTargetByClass('ilAssQuestionSkillUsagesTableGUI', ilAssQuestionSkillUsagesTableGUI::CMD_SHOW); $this->tabs->addSubTab('ilassquestionskillusagestablegui', $this->lng->txt('qpl_skl_sub_tab_usages'), $link); $this->tabs->activateTab('qpl_tab_competences'); $this->tabs->activateSubTab($activeSubTabId); }
public function manageTabs($activeSubTabId) { $link = $this->ctrl->getLinkTargetByClass('iltestskillquestionassignmentsgui', ilTestSkillQuestionAssignmentsGUI::CMD_SHOW_SKILL_QUEST_ASSIGNS); $this->tabs->addSubTab('iltestskillquestionassignmentsgui', $this->lng->txt('tst_skl_sub_tab_quest_assign'), $link); $link = $this->ctrl->getLinkTargetByClass('iltestskilllevelthresholdsgui', ilTestSkillLevelThresholdsGUI::CMD_SHOW_SKILL_THRESHOLDS); $this->tabs->addSubTab('iltestskilllevelthresholdsgui', $this->lng->txt('tst_skl_sub_tab_thresholds'), $link); $this->tabs->activateTab('tst_tab_competences'); $this->tabs->activateSubTab($activeSubTabId); }
/** * Command Execution */ public function executeCommand() { // allow only write access if (!$this->access->checkAccess('write', '', $this->poolGUI->ref_id)) { ilUtil::sendInfo($this->lng->txt('cannot_edit_question_pool'), true); $this->ctrl->redirectByClass('ilObjQuestionPoolGUI', 'infoScreen'); } // activate corresponding tab (auto activation does not work in ilObjTestGUI-Tabs-Salad) $this->tabs->activateTab('settings'); // process command $nextClass = $this->ctrl->getNextClass(); switch ($nextClass) { default: $cmd = $this->ctrl->getCmd(self::CMD_SHOW_FORM) . 'Cmd'; $this->{$cmd}(); } }
/** * @param $type */ protected function buildFrame($type) { if ($type == 'pad') { $this->tabs->activateTab('edit'); } elseif ($type == 'slider') { $this->tabs->activateTab('timeslider'); } $this->object->addUser($this->user); $iframe = $this->pl->getTemplate('default/tpl.iframe.html'); $iframe->setVariable('HOST', $this->object->getHttpProtocol() . $this->object->getTeamhost()); $iframe->setVariable('PAD_ID', $this->object->getPadId()); $iframe->setVariable('REF_ID', $this->object->getRefId()); $iframe->setVariable('TYPE', $type); $iframe->setVariable('SCROLLING', $this->object->getScrolling() ? 'auto' : 'no'); $iframe->setVariable('ACCOUNT', $this->object->getIliasUser($this->user) . '@' . $this->object->getTeamhost()); $this->tpl->setContent($iframe->get()); }
/** * Command Execution */ public function executeCommand() { // allow only write access if (!$this->access->checkAccess("write", "", $this->testOBJ->getRefId())) { ilUtil::sendInfo($this->lng->txt("cannot_edit_test"), true); $this->ctrl->redirectByClass('ilObjTestGUI', "infoScreen"); } // activate corresponding tab (auto activation does not work in ilObjTestGUI-Tabs-Salad) $this->tabs->activateTab('assQuestions'); // process command $nextClass = $this->ctrl->getNextClass(); switch ($nextClass) { default: $cmd = $this->ctrl->getCmd(self::CMD_SHOW_FORM) . 'Cmd'; $this->{$cmd}(); } }
private function handleTabs() { $this->tabs->activateTab('assQuestions'); $this->tabs->addSubTab('tstRandQuestSetGeneralConfig', $this->lng->txt('tst_rnd_quest_cfg_tab_general'), $this->ctrl->getLinkTarget($this, self::CMD_SHOW_GENERAL_CONFIG_FORM)); $this->tabs->addSubTab('tstRandQuestSetPoolConfig', $this->lng->txt('tst_rnd_quest_cfg_tab_pool'), $this->ctrl->getLinkTarget($this, self::CMD_SHOW_SRC_POOL_DEF_LIST)); switch ($this->ctrl->getCmd(self::CMD_SHOW_GENERAL_CONFIG_FORM)) { case self::CMD_SHOW_GENERAL_CONFIG_FORM: case self::CMD_SAVE_GENERAL_CONFIG_FORM: $this->tabs->activateSubTab('tstRandQuestSetGeneralConfig'); break; case self::CMD_SHOW_SRC_POOL_DEF_LIST: case self::CMD_SAVE_SRC_POOL_DEF_LIST: case self::CMD_DELETE_SINGLE_SRC_POOL_DEF: case self::CMD_DELETE_MULTI_SRC_POOL_DEFS: case self::CMD_SHOW_CREATE_SRC_POOL_DEF_FORM: case self::CMD_SAVE_CREATE_SRC_POOL_DEF_FORM: case self::CMD_SHOW_EDIT_SRC_POOL_DEF_FORM: case self::CMD_SAVE_EDIT_SRC_POOL_DEF_FORM: $this->tabs->activateSubTab('tstRandQuestSetPoolConfig'); break; } }