4require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentsGUI.php';
5require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillUsagesTableGUI.php';
71 public function __construct(
ILIAS $ilias,
ilCtrl $ctrl,
ILIAS\Refinery\Factory
$refinery,
ilAccessHandler $access,
ilTabsGUI $tabs,
ilGlobalTemplateInterface $tpl,
ilLanguage $lng,
ilDBInterface $db,
ilPluginAdmin $pluginAdmin,
ilObjQuestionPool $poolOBJ,
$refId)
88 if (!$this->poolOBJ->isSkillServiceEnabled()) {
96 if (!$this->access->checkAccess(
'write',
'', $this->refId)) {
105 $link = $this->ctrl->getLinkTargetByClass(
106 'ilAssQuestionSkillAssignmentsGUI',
109 $this->tabs->addSubTab(
110 'ilassquestionskillassignmentsgui',
111 $this->lng->txt(
'qpl_skl_sub_tab_quest_assign'),
115 $link = $this->ctrl->getLinkTargetByClass(
116 'ilAssQuestionSkillUsagesTableGUI',
119 $this->tabs->addSubTab(
120 'ilassquestionskillusagestablegui',
121 $this->lng->txt(
'qpl_skl_sub_tab_usages'),
125 $this->tabs->activateTab(
'qpl_tab_competences');
126 $this->tabs->activateSubTab($activeSubTabId);
132 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->ilias->error_obj->MESSAGE);
135 $nextClass = $this->ctrl->getNextClass();
139 switch ($nextClass) {
140 case 'ilassquestionskillassignmentsgui':
141 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
142 $questionList =
new ilAssQuestionList($this->db, $this->lng, $this->refinery, $this->pluginAdmin);
143 $questionList->setParentObjId($this->poolOBJ->getId());
145 $questionList->load();
148 $gui->setAssignmentEditingEnabled(
true);
149 $gui->setQuestionContainerId($this->poolOBJ->getId());
150 $gui->setQuestionList($questionList);
152 $this->ctrl->forwardCommand($gui);
156 case 'ilassquestionskillusagestablegui':
163 $this->poolOBJ->getId()
166 $this->ctrl->forwardCommand($gui);
An exception for terminatinating execution or to throw for unit testing.
const QUESTION_INSTANCE_TYPE_ORIGINALS
const CMD_SHOW_SKILL_QUEST_ASSIGNS
This class provides processing control methods.
static isSkillManagementGloballyActivated()
Administration class for plugins.
manageTabs($activeSubTabId)
__construct(ILIAS $ilias, ilCtrl $ctrl, ILIAS\Refinery\Factory $refinery, ilAccessHandler $access, ilTabsGUI $tabs, ilGlobalTemplateInterface $tpl, ilLanguage $lng, ilDBInterface $db, ilPluginAdmin $pluginAdmin, ilObjQuestionPool $poolOBJ, $refId)
Interface ilAccessHandler.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
redirection script todo: (a better solution should control the processing via a xml file)