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,
ilTemplate $tpl,
ilLanguage $lng,
ilDBInterface $db,
ilTree $tree,
ilPluginAdmin $pluginAdmin,
ilObjTest $testOBJ, $refId)
80 $this->refId = $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'),
154 $link = $this->ctrl->getLinkTargetByClass(
155 'ilTestSkillLevelThresholdsGUI',
158 $this->tabs->addSubTab(
159 'iltestskilllevelthresholdsgui',
160 $this->lng->txt(
'tst_skl_sub_tab_thresholds'),
164 $this->tabs->activateTab(
'tst_tab_competences');
165 $this->tabs->activateSubTab($activeSubTabId);
170 if (!$this->testOBJ->isSkillServiceEnabled()) {
178 if (!$this->access->checkAccess(
'write',
'', $this->refId)) {
187 if ($this->testOBJ->isDynamicTest()) {
195 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
197 return $questionSetConfig->getSourceQuestionPoolId();
200 return $this->testOBJ->getId();
205 if ($this->testOBJ->isDynamicTest()) {
209 if ($this->testOBJ->isRandomTest()) {
225 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
227 if ($this->testOBJ->isRandomTest()) {
228 $testMode = $this->lng->txt(
'tst_question_set_type_random');
229 $poolLinks = $questionSetConfig->getCommaSeparatedSourceQuestionPoolLinks();
231 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_rndquestset'), $testMode, $poolLinks);
232 } elseif ($this->testOBJ->isDynamicTest()) {
233 $testMode = $this->lng->txt(
'tst_question_set_type_dynamic');
234 $poolLink = $questionSetConfig->getSourceQuestionPoolLink($questionSetConfig->getSourceQuestionPoolId());
236 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_dynquestset'), $testMode, $poolLink);
This class provides processing control methods.
manageTabs($activeSubTabId)
getRequiredQuestionInstanceTypeFilter()
const QUESTION_INSTANCE_TYPE_DUPLICATES
Interface ilAccessHandler.
Administration class for plugins.
buildAssignmentConfigurationInPoolHintMessage()
isAssignmentEditingRequired()
special template class to simplify handling of ITX/PEAR
setQuestionAssignmentColumnsEnabled($questionAssignmentColumnsEnabled)
redirection script todo: (a better solution should control the processing via a xml file) ...
static isSkillManagementGloballyActivated()
const CMD_SHOW_SKILL_THRESHOLDS
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
__construct(ILIAS $ilias, ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilTemplate $tpl, ilLanguage $lng, ilDBInterface $db, ilTree $tree, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ, $refId)
const CMD_SHOW_SKILL_QUEST_ASSIGNS
const QUESTION_INSTANCE_TYPE_ORIGINALS