4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
64 $this->
setFormAction( $this->ctrl->getFormAction($this->questionSetConfigGUI) );
66 $this->
setTitle( $this->lng->txt(
'tst_rnd_quest_set_cfg_general_form') );
67 $this->
setId(
'tstRndQuestSetCfgGeneralForm');
76 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool'),
'quest_points_equal_per_pool' 79 $requirePoolsQuestionsHomoScored->
setInfo(
80 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool_desc')
83 $requirePoolsQuestionsHomoScored->setChecked(
84 $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired()
87 $this->
addItem($requirePoolsQuestionsHomoScored);
92 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode'),
'quest_amount_cfg_mode' 96 $this->questionSetConfig
100 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_test'),
104 $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
107 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_pool'),
111 $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
113 $questionAmountConfigMode->setRequired(
true);
115 $this->
addItem($questionAmountConfigMode);
120 $this->lng->txt(
'tst_inp_quest_amount_per_test'),
'quest_amount_per_test' 124 $questionAmountPerTest->setMinValue(1);
125 $questionAmountPerTest->allowDecimals(
false);
126 $questionAmountPerTest->setMinvalueShouldBeGreater(
false);
127 $questionAmountPerTest->setSize(4);
129 $questionAmountPerTest->setValue(
130 $this->questionSetConfig->getQuestionAmountPerTest()
133 $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
135 if( $this->testOBJ->participantDataExist() )
137 $requirePoolsQuestionsHomoScored->setDisabled(
true);
138 $questionAmountConfigMode->setDisabled(
true);
139 $questionAmountPerTest->setDisabled(
true);
159 $this->questionSetConfig->setPoolsWithHomogeneousScoredQuestionsRequired(
167 $this->questionSetConfig->setQuestionAmountConfigurationMode(
171 $this->questionSetConfig->setQuestionAmountPerTest(
179 $this->questionSetConfig->setQuestionAmountConfigurationMode(
183 $this->questionSetConfig->setQuestionAmountPerTest(null);
188 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