4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
58 $this->lng->loadLanguageModule(
'form');
66 $this->
setFormAction( $this->ctrl->getFormAction($this->questionSetConfigGUI) );
68 $this->
setTitle( $this->lng->txt(
'tst_rnd_quest_set_cfg_general_form') );
69 $this->
setId(
'tstRndQuestSetCfgGeneralForm');
78 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool'),
'quest_points_equal_per_pool' 81 $requirePoolsQuestionsHomoScored->
setInfo(
82 $this->lng->txt(
'tst_inp_all_quest_points_equal_per_pool_desc')
85 $requirePoolsQuestionsHomoScored->setChecked(
86 $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired()
89 $this->
addItem($requirePoolsQuestionsHomoScored);
94 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode'),
'quest_amount_cfg_mode' 98 $this->questionSetConfig
102 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_test'),
106 $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
109 $this->lng->txt(
'tst_inp_quest_amount_cfg_mode_pool'),
113 $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
115 $questionAmountConfigMode->setRequired(
true);
117 $this->
addItem($questionAmountConfigMode);
122 $this->lng->txt(
'tst_inp_quest_amount_per_test'),
'quest_amount_per_test' 126 $questionAmountPerTest->setMinValue(1);
127 $questionAmountPerTest->allowDecimals(
false);
128 $questionAmountPerTest->setMinvalueShouldBeGreater(
false);
129 $questionAmountPerTest->setSize(4);
131 $questionAmountPerTest->setValue(
132 $this->questionSetConfig->getQuestionAmountPerTest()
135 $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
137 if( $this->testOBJ->participantDataExist() )
139 $requirePoolsQuestionsHomoScored->setDisabled(
true);
140 $questionAmountConfigMode->setDisabled(
true);
141 $questionAmountPerTest->setDisabled(
true);
161 $this->questionSetConfig->setPoolsWithHomogeneousScoredQuestionsRequired(
169 $this->questionSetConfig->setQuestionAmountConfigurationMode(
173 $this->questionSetConfig->setQuestionAmountPerTest(
181 $this->questionSetConfig->setQuestionAmountConfigurationMode(
185 $this->questionSetConfig->setQuestionAmountPerTest(null);
190 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