4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
70 $this->lng->loadLanguageModule(
'form');
94 $this->
setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
96 $this->
setTitle($this->lng->txt(
'tst_rnd_quest_set_cfg_general_form'));
97 $this->
setId(
'tstRndQuestSetCfgGeneralForm');
101 $this->lng->txt(
'save')
107 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool'),
108 'quest_points_equal_per_pool' 111 $requirePoolsQuestionsHomoScored->
setInfo(
112 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool_desc')
115 $requirePoolsQuestionsHomoScored->setChecked(
116 $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired()
119 $this->
addItem($requirePoolsQuestionsHomoScored);
124 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode'),
125 'quest_amount_cfg_mode' 129 $this->questionSetConfig
133 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_test'),
137 $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
140 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_pool'),
144 $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
146 $questionAmountConfigMode->setRequired(
true);
148 $this->
addItem($questionAmountConfigMode);
153 $this->lng->txt(
'tst_inp_quest_amount_per_test'),
154 'quest_amount_per_test' 158 $questionAmountPerTest->setMinValue(1);
159 $questionAmountPerTest->allowDecimals(
false);
160 $questionAmountPerTest->setMinvalueShouldBeGreater(
false);
161 $questionAmountPerTest->setSize(4);
163 $questionAmountPerTest->setValue(
164 $this->questionSetConfig->getQuestionAmountPerTest()
167 $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
170 $requirePoolsQuestionsHomoScored->setDisabled(
true);
171 $questionAmountConfigMode->setDisabled(
true);
172 $questionAmountPerTest->setDisabled(
true);
190 $this->questionSetConfig->setPoolsWithHomogeneousScoredQuestionsRequired(
197 $this->questionSetConfig->setQuestionAmountConfigurationMode(
201 $this->questionSetConfig->setQuestionAmountPerTest(
209 $this->questionSetConfig->setQuestionAmountConfigurationMode(
213 $this->questionSetConfig->setQuestionAmountPerTest(null);
218 return $this->questionSetConfig->saveToDb($this->testOBJ->getTestId());
This class represents an option in a radio group.
This class provides processing control methods.
const QUESTION_AMOUNT_CONFIG_MODE_PER_POOL
const CMD_SAVE_GENERAL_CONFIG_FORM
getQuestionAmountConfigurationMode()
const QUESTION_AMOUNT_CONFIG_MODE_PER_TEST