51 $this->
lng->loadLanguageModule(
'form');
72 $this->
setTitle($this->
lng->txt(
'tst_rnd_quest_set_cfg_general_form'));
73 $this->
setId(
'tstRndQuestSetCfgGeneralForm');
77 $this->
lng->txt(
'save')
83 $this->
lng->txt(
'tst_inp_all_quest_points_equal_per_pool'),
84 'quest_points_equal_per_pool'
87 $requirePoolsQuestionsHomoScored->setInfo(
88 $this->
lng->txt(
'tst_inp_all_quest_points_equal_per_pool_desc')
91 $requirePoolsQuestionsHomoScored->setChecked(
93 $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired()
96 $this->
addItem($requirePoolsQuestionsHomoScored);
101 $this->
lng->txt(
'tst_inp_quest_amount_cfg_mode'),
102 'quest_amount_cfg_mode'
106 $this->questionSetConfig
110 $this->
lng->txt(
'tst_inp_quest_amount_cfg_mode_test'),
114 $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
117 $this->
lng->txt(
'tst_inp_quest_amount_cfg_mode_pool'),
121 $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
123 $questionAmountConfigMode->setRequired(
true);
125 $this->
addItem($questionAmountConfigMode);
130 $this->
lng->txt(
'tst_inp_quest_amount_per_test'),
131 'quest_amount_per_test'
134 $questionAmountPerTest->setRequired(
true);
135 $questionAmountPerTest->setMinValue(1);
136 $questionAmountPerTest->allowDecimals(
false);
137 $questionAmountPerTest->setMinvalueShouldBeGreater(
false);
138 $questionAmountPerTest->setSize(4);
140 $questionAmountPerTest->setValue(
141 $this->questionSetConfig->getQuestionAmountPerTest()
144 $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
147 $requirePoolsQuestionsHomoScored->setDisabled(
true);
148 $questionAmountConfigMode->setDisabled(
true);
149 $questionAmountPerTest->setDisabled(
true);
155 switch (
$config->getQuestionAmountConfigurationMode()) {
159 return $config->getQuestionAmountConfigurationMode();
167 $this->questionSetConfig->setPoolsWithHomogeneousScoredQuestionsRequired(
174 $this->questionSetConfig->setQuestionAmountConfigurationMode(
178 $this->questionSetConfig->setQuestionAmountPerTest(
186 $this->questionSetConfig->setQuestionAmountConfigurationMode(
190 $this->questionSetConfig->setQuestionAmountPerTest(
null);
195 $this->questionSetConfig->saveToDb();
Class ilCtrl provides processing control methods.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const CMD_SAVE_GENERAL_CONFIG_FORM
const QUESTION_AMOUNT_CONFIG_MODE_PER_POOL
const QUESTION_AMOUNT_CONFIG_MODE_PER_TEST
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc