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;
87 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->
ilias->error_obj->MESSAGE);
90 $nextClass = $this->ctrl->getNextClass();
96 case 'ilassquestionskillassignmentsgui':
100 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
101 $questionList =
new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin);
102 $questionList->setParentObjId($questionContainerId);
104 $questionList->load();
108 $gui->setQuestionContainerId($questionContainerId);
109 $gui->setQuestionList($questionList);
111 if( $this->testOBJ->isFixedTest() )
113 $gui->setQuestionOrderSequence($this->testOBJ->getQuestions());
120 $this->ctrl->forwardCommand($gui);
124 case 'iltestskilllevelthresholdsgui':
129 $this->ctrl->forwardCommand($gui);
136 if( !$this->testOBJ->isFixedTest() )
141 if( $this->testOBJ->participantDataExist() )
151 $link = $this->ctrl->getLinkTargetByClass(
154 $this->tabs->addSubTab(
155 'ilassquestionskillassignmentsgui', $this->lng->txt(
'qpl_skl_sub_tab_quest_assign'), $link
159 $link = $this->ctrl->getLinkTargetByClass(
162 $this->tabs->addSubTab(
163 'iltestskilllevelthresholdsgui', $this->lng->txt(
'tst_skl_sub_tab_thresholds'), $link
166 $this->tabs->activateTab(
'tst_tab_competences');
167 $this->tabs->activateSubTab($activeSubTabId);
172 if( !$this->testOBJ->isSkillServiceEnabled() )
182 if( ! $this->access->checkAccess(
'write',
'', $this->refId) )
192 if( $this->testOBJ->isDynamicTest() )
195 $this->tree, $this->db, $this->pluginAdmin, $this->testOBJ
198 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
200 return $questionSetConfig->getSourceQuestionPoolId();
203 return $this->testOBJ->getId();
208 if( $this->testOBJ->isDynamicTest() )
213 if( $this->testOBJ->isRandomTest() )
224 $this->tree, $this->db, $this->pluginAdmin, $this->testOBJ
227 $questionSetConfig = $questionSetConfigFactory->getQuestionSetConfig();
229 if( $this->testOBJ->isRandomTest() )
231 $testMode = $this->lng->txt(
'tst_question_set_type_random');
232 $poolLinks = $questionSetConfig->getCommaSeparatedSourceQuestionPoolLinks();
234 return sprintf($this->lng->txt(
'tst_qst_skl_cfg_in_pool_hint_rndquestset'), $testMode, $poolLinks);
236 elseif( $this->testOBJ->isDynamicTest() )
238 $testMode = $this->lng->txt(
'tst_question_set_type_dynamic');
239 $poolLink = $questionSetConfig->getSourceQuestionPoolLink($questionSetConfig->getSourceQuestionPoolId());
241 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
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