19 declare(strict_types=1);
56 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"no_permission"),
true);
57 $this->
ctrl->setParameterByClass(ilObjTestGUI::class,
'ref_id', $this->ref_id);
58 $this->
ctrl->redirectByClass(ilObjTestGUI::class);
61 $nextClass = $this->
ctrl->getNextClass();
66 case 'ilassquestionskillassignmentsgui':
68 $questionContainerId = $this->test_obj->getId();
71 $questionList->setParentObjId($questionContainerId);
73 $questionList->load();
77 $gui->setQuestionContainerId($questionContainerId);
78 $gui->setQuestionList($questionList);
80 if ($this->test_obj->isFixedTest()) {
81 $gui->setQuestionOrderSequence($this->test_obj->getQuestions());
86 $this->
ctrl->forwardCommand($gui);
90 case 'iltestskilllevelthresholdsgui':
94 $gui->setQuestionContainerId($this->test_obj->getId());
95 $this->
ctrl->forwardCommand($gui);
102 if (!$this->test_obj->isFixedTest()) {
106 if ($this->test_obj->participantDataExist()) {
115 $link = $this->
ctrl->getLinkTargetByClass(
116 'ilAssQuestionSkillAssignmentsGUI',
119 $this->
tabs->addSubTab(
120 'ilassquestionskillassignmentsgui',
121 $this->
lng->txt(
'qpl_skl_sub_tab_quest_assign'),
125 $link = $this->
ctrl->getLinkTargetByClass(
126 'ilTestSkillLevelThresholdsGUI',
129 $this->
tabs->addSubTab(
130 'iltestskilllevelthresholdsgui',
131 $this->
lng->txt(
'tst_skl_sub_tab_thresholds'),
135 $this->
tabs->activateTab(
'tst_tab_competences');
136 $this->
tabs->activateSubTab($activeSubTabId);
141 if (!$this->test_obj->isSkillServiceEnabled()) {
149 if (!$this->
access->checkAccess(
'write',
'', $this->ref_id)) {
158 if ($this->test_obj->isRandomTest()) {
172 $this->component_repository,
177 $question_set_config = $question_set_config_factory->getQuestionSetConfig();
179 if ($this->test_obj->isRandomTest()) {
180 $testMode = $this->
lng->txt(
'tst_question_set_type_random');
181 $poolLinks = $question_set_config->getCommaSeparatedSourceQuestionPoolLinks();
183 return sprintf($this->
lng->txt(
'tst_qst_skl_cfg_in_pool_hint_rndquestset'), $testMode, $poolLinks);
Readable part of repository interface to ilComponentDataDB.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
manageTabs($activeSubTabId)
getRequiredQuestionInstanceTypeFilter()
const QUESTION_INSTANCE_TYPE_DUPLICATES
buildAssignmentConfigurationInPoolHintMessage()
isAssignmentEditingRequired()
setQuestionAssignmentColumnsEnabled($questionAssignmentColumnsEnabled)
static isSkillManagementGloballyActivated()
const CMD_SHOW_SKILL_THRESHOLDS
const CMD_SHOW_SKILL_QUEST_ASSIGNS
__construct(private ilCtrl $ctrl, private ilAccessHandler $access, private ilTabsGUI $tabs, private ilGlobalTemplateInterface $tpl, private ilLanguage $lng, private Refinery $refinery, private ilDBInterface $db, private ilLogger $log, private ilTree $tree, private ilComponentRepository $component_repository, private ilObjTest $test_obj, private QuestionInfoService $questioninfo, private int $ref_id)
Refinery Factory $refinery