19 declare(strict_types=1);
59 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"no_permission"),
true);
60 $this->
ctrl->setParameterByClass(ilObjTestGUI::class,
'ref_id', $this->ref_id);
61 $this->
ctrl->redirectByClass(ilObjTestGUI::class);
64 $nextClass = $this->
ctrl->getNextClass();
67 case 'ilassquestionskillassignmentsgui':
68 $this->tabs_manager->getQuestionsSubTabs();
69 $this->tabs_manager->activateTab(TabsManager::TAB_ID_QUESTIONS);
70 $this->tabs_manager->activateSubTab(TabsManager::SETTINGS_SUBTAB_ID_ASSIGN_SKILLS_TO_QUESTIONS);
72 $questionContainerId = $this->test_obj->getId();
75 $questionList->setParentObjId($questionContainerId);
77 $questionList->load();
81 $gui->setQuestionContainerId($questionContainerId);
82 $gui->setQuestionList($questionList);
84 if ($this->test_obj->isFixedTest()) {
85 $gui->setQuestionOrderSequence($this->test_obj->getQuestions());
90 $this->
ctrl->forwardCommand($gui);
94 case 'iltestskilllevelthresholdsgui':
95 $this->tabs_manager->getSettingsSubTabs();
96 $this->tabs_manager->activateTab(TabsManager::TAB_ID_SETTINGS);
97 $this->tabs_manager->activateSubTab(TabsManager::SETTINGS_SUBTAB_ID_ASSIGN_SKILL_TRESHOLDS);
104 $this->request_data_collector,
105 $this->test_obj->getTestId()
108 $gui->setQuestionContainerId($this->test_obj->getId());
109 $this->
ctrl->forwardCommand($gui);
116 if (!$this->test_obj->isFixedTest()) {
120 if ($this->test_obj->participantDataExist()) {
129 if (!$this->test_obj->isSkillServiceEnabled()) {
137 if (!$this->
access->checkAccess(
'write',
'', $this->ref_id)) {
146 if ($this->test_obj->isRandomTest()) {
160 $this->component_repository,
162 $this->questionrepository
165 $question_set_config = $question_set_config_factory->getQuestionSetConfig();
167 if ($this->test_obj->isRandomTest()) {
168 $testMode = $this->
lng->txt(
'tst_question_set_type_random');
169 $poolLinks = $question_set_config->getCommaSeparatedSourceQuestionPoolLinks();
171 return sprintf($this->
lng->txt(
'tst_qst_skl_cfg_in_pool_hint_rndquestset'), $testMode, $poolLinks);
Readable part of repository interface to ilComponentDataDB.
__construct(private ilCtrlInterface $ctrl, private ilAccessHandler $access, private TabsManager $tabs_manager, private ilGlobalTemplateInterface $tpl, private ilLanguage $lng, private Refinery $refinery, private ilDBInterface $db, private TestLogger $logger, private ilTree $tree, private ilComponentRepository $component_repository, private ilObjTest $test_obj, private GeneralQuestionPropertiesRepository $questionrepository, private RequestDataCollector $request_data_collector, private int $ref_id)
getRequiredQuestionInstanceTypeFilter()
const QUESTION_INSTANCE_TYPE_DUPLICATES
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setQuestionAssignmentColumnsEnabled(bool $question_assignment_columns_enabled)
buildAssignmentConfigurationInPoolHintMessage()
isAssignmentEditingRequired()
static isSkillManagementGloballyActivated()