4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentsGUI.php';
5 require_once
'Modules/Test/classes/class.ilTestSkillLevelThresholdsGUI.php';
68 public function __construct(
ILIAS $ilias,
ilCtrl $ctrl,
ilAccessHandler $access,
ilTabsGUI $tabs,
ilGlobalTemplateInterface $tpl,
ilLanguage $lng,
ilDBInterface $db,
ilTree $tree,
ilPluginAdmin $pluginAdmin,
ilObjTest $testOBJ,
$refId)
86 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->
ilias->error_obj->MESSAGE);
89 $nextClass = $this->ctrl->getNextClass();
94 case 'ilassquestionskillassignmentsgui':
98 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
100 $questionList->setParentObjId($questionContainerId);
102 $questionList->load();
106 $gui->setQuestionContainerId($questionContainerId);
107 $gui->setQuestionList($questionList);
109 if ($this->testOBJ->isFixedTest()) {
110 $gui->setQuestionOrderSequence($this->testOBJ->getQuestions());
115 $this->ctrl->forwardCommand($gui);
119 case 'iltestskilllevelthresholdsgui':
124 $this->ctrl->forwardCommand($gui);
131 if (!$this->testOBJ->isFixedTest()) {
135 if ($this->testOBJ->participantDataExist()) {
144 $link = $this->ctrl->getLinkTargetByClass(
145 'ilAssQuestionSkillAssignmentsGUI',
148 $this->tabs->addSubTab(
149 'ilassquestionskillassignmentsgui',
150 $this->lng->txt(
'qpl_skl_sub_tab_quest_assign'),
155 $link = $this->ctrl->getLinkTargetByClass(
156 'ilTestSkillLevelThresholdsGUI',
159 $this->tabs->addSubTab(
160 'iltestskilllevelthresholdsgui',
161 $this->lng->txt(
'tst_skl_sub_tab_thresholds'),
165 $this->tabs->activateTab(
'tst_tab_competences');
166 $this->tabs->activateSubTab($activeSubTabId);
171 if (!$this->testOBJ->isSkillServiceEnabled()) {
179 if (!$this->access->checkAccess(
'write',
'', $this->refId)) {
188 if ($this->testOBJ->isDynamicTest()) {
196 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
198 return $questionSetConfig->getSourceQuestionPoolId();
201 return $this->testOBJ->getId();
206 if ($this->testOBJ->isDynamicTest()) {
210 if ($this->testOBJ->isRandomTest()) {
226 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
228 if ($this->testOBJ->isRandomTest()) {
229 $testMode = $this->lng->txt(
'tst_question_set_type_random');
230 $poolLinks = $questionSetConfig->getCommaSeparatedSourceQuestionPoolLinks();
232 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_rndquestset'), $testMode, $poolLinks);
233 } elseif ($this->testOBJ->isDynamicTest()) {
234 $testMode = $this->lng->txt(
'tst_question_set_type_dynamic');
235 $poolLink = $questionSetConfig->getSourceQuestionPoolLink($questionSetConfig->getSourceQuestionPoolId());
237 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_dynquestset'), $testMode, $poolLink);
This class provides processing control methods.
Class ChatMainBarProvider .
manageTabs($activeSubTabId)
getRequiredQuestionInstanceTypeFilter()
const QUESTION_INSTANCE_TYPE_DUPLICATES
__construct(ILIAS $ilias, ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilGlobalTemplateInterface $tpl, ilLanguage $lng, ilDBInterface $db, ilTree $tree, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ, $refId)
Interface ilAccessHandler.
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