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');
106 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool'),
'quest_points_equal_per_pool' 109 $requirePoolsQuestionsHomoScored->
setInfo(
110 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool_desc')
113 $requirePoolsQuestionsHomoScored->setChecked(
114 $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired()
117 $this->
addItem($requirePoolsQuestionsHomoScored);
122 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode'),
'quest_amount_cfg_mode' 126 $this->questionSetConfig
130 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_test'),
134 $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
137 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_pool'),
141 $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
143 $questionAmountConfigMode->setRequired(
true);
145 $this->
addItem($questionAmountConfigMode);
150 $this->lng->txt(
'tst_inp_quest_amount_per_test'),
'quest_amount_per_test' 154 $questionAmountPerTest->setMinValue(1);
155 $questionAmountPerTest->allowDecimals(
false);
156 $questionAmountPerTest->setMinvalueShouldBeGreater(
false);
157 $questionAmountPerTest->setSize(4);
159 $questionAmountPerTest->setValue(
160 $this->questionSetConfig->getQuestionAmountPerTest()
163 $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
167 $requirePoolsQuestionsHomoScored->setDisabled(
true);
168 $questionAmountConfigMode->setDisabled(
true);
169 $questionAmountPerTest->setDisabled(
true);
189 $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