4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentsGUI.php';
5 require_once
'Modules/Test/classes/class.ilTestSkillLevelThresholdsGUI.php';
75 public function __construct(
ILIAS $ilias,
ilCtrl $ctrl,
ilAccessHandler $access,
ilTabsGUI $tabs,
ilGlobalTemplateInterface $tpl,
ilLanguage $lng, \
ILIAS\
Refinery\Factory
$refinery,
ilDBInterface $db,
ilTree $tree,
ilPluginAdmin $pluginAdmin,
ilObjTest $testOBJ,
$refId)
94 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->
ilias->error_obj->MESSAGE);
97 $nextClass = $this->ctrl->getNextClass();
101 switch ($nextClass) {
102 case 'ilassquestionskillassignmentsgui':
106 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
107 $questionList =
new ilAssQuestionList($this->db, $this->lng, $this->refinery, $this->pluginAdmin);
108 $questionList->setParentObjId($questionContainerId);
110 $questionList->load();
114 $gui->setQuestionContainerId($questionContainerId);
115 $gui->setQuestionList($questionList);
117 if ($this->testOBJ->isFixedTest()) {
118 $gui->setQuestionOrderSequence($this->testOBJ->getQuestions());
123 $this->ctrl->forwardCommand($gui);
127 case 'iltestskilllevelthresholdsgui':
132 $this->ctrl->forwardCommand($gui);
139 if (!$this->testOBJ->isFixedTest()) {
143 if ($this->testOBJ->participantDataExist()) {
152 $link = $this->ctrl->getLinkTargetByClass(
153 'ilAssQuestionSkillAssignmentsGUI',
156 $this->tabs->addSubTab(
157 'ilassquestionskillassignmentsgui',
158 $this->lng->txt(
'qpl_skl_sub_tab_quest_assign'),
162 $link = $this->ctrl->getLinkTargetByClass(
163 'ilTestSkillLevelThresholdsGUI',
166 $this->tabs->addSubTab(
167 'iltestskilllevelthresholdsgui',
168 $this->lng->txt(
'tst_skl_sub_tab_thresholds'),
172 $this->tabs->activateTab(
'tst_tab_competences');
173 $this->tabs->activateSubTab($activeSubTabId);
178 if (!$this->testOBJ->isSkillServiceEnabled()) {
186 if (!$this->access->checkAccess(
'write',
'', $this->refId)) {
195 if ($this->testOBJ->isDynamicTest()) {
203 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
205 return $questionSetConfig->getSourceQuestionPoolId();
208 return $this->testOBJ->getId();
213 if ($this->testOBJ->isDynamicTest()) {
217 if ($this->testOBJ->isRandomTest()) {
233 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
235 if ($this->testOBJ->isRandomTest()) {
236 $testMode = $this->lng->txt(
'tst_question_set_type_random');
237 $poolLinks = $questionSetConfig->getCommaSeparatedSourceQuestionPoolLinks();
239 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_rndquestset'), $testMode, $poolLinks);
240 } elseif ($this->testOBJ->isDynamicTest()) {
241 $testMode = $this->lng->txt(
'tst_question_set_type_dynamic');
242 $poolLink = $questionSetConfig->getSourceQuestionPoolLink($questionSetConfig->getSourceQuestionPoolId());
244 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_dynquestset'), $testMode, $poolLink);
__construct(ILIAS $ilias, ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilGlobalTemplateInterface $tpl, ilLanguage $lng, \ILIAS\Refinery\Factory $refinery, ilDBInterface $db, ilTree $tree, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ, $refId)
This class provides processing control methods.
Class ChatMainBarProvider .
manageTabs($activeSubTabId)
getRequiredQuestionInstanceTypeFilter()
const QUESTION_INSTANCE_TYPE_DUPLICATES
Administration class for plugins.
buildAssignmentConfigurationInPoolHintMessage()
isAssignmentEditingRequired()
setQuestionAssignmentColumnsEnabled($questionAssignmentColumnsEnabled)
redirection script todo: (a better solution should control the processing via a xml file) ...
static isSkillManagementGloballyActivated()
const CMD_SHOW_SKILL_THRESHOLDS
const CMD_SHOW_SKILL_QUEST_ASSIGNS
const QUESTION_INSTANCE_TYPE_ORIGINALS