4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
97 $this->
setFormAction( $this->ctrl->getFormAction($this->questionSetConfigGUI) );
99 $this->
setTitle( $this->lng->txt(
'tst_rnd_quest_set_cfg_pool_form') );
100 $this->
setId(
'tstRndQuestSetCfgPoolForm');
118 $hiddenDefId->setValue( $sourcePool->
getId() );
122 $hiddenPoolId->setValue( $sourcePool->
getPoolId() );
126 $this->lng->txt(
'tst_inp_source_pool_label'),
'quest_pool_label' 130 $this->
addItem($nonEditablePoolLabel);
133 if( count($availableTaxonomyIds) )
136 $this->lng->txt(
'tst_inp_source_pool_filter_tax'),
'filter_tax' 142 $this->lng->txt(
'tst_inp_source_pool_no_tax_filter'), 0
145 $taxRadio->setValue(0);
147 require_once
'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
149 foreach($availableTaxonomyIds as $taxId)
152 $label = sprintf($this->lng->txt(
'tst_inp_source_pool_filter_tax_x'), $taxonomy->getTitle());
156 $taxRadio->addOption($taxRadioOption);
158 $this->ctrl->setParameterByClass(
'iltaxselectinputgui',
'src_pool_def_id', $sourcePool->
getId());
159 $this->ctrl->setParameterByClass(
'iltaxselectinputgui',
'quest_pool_id', $sourcePool->
getPoolId());
161 $taxSelect->setRequired(
true);
162 $taxRadioOption->addSubItem($taxSelect);
176 $hiddenNoTax->setValue(0);
180 $this->lng->txt(
'tst_inp_source_pool_filter_tax'),
'no_tax_label' 182 $nonEditableNoTax->
setValue( $this->lng->txt(
'tst_inp_no_available_tax_hint') );
183 $this->
addItem($nonEditableNoTax);
187 if( $this->questionSetConfig->isQuestionAmountConfigurationModePerPool() )
190 $this->lng->txt(
'tst_inp_quest_amount_per_source_pool'),
'question_amount_per_pool' 194 $questionAmountPerSourcePool->allowDecimals(
false);
195 $questionAmountPerSourcePool->setMinValue(0);
196 $questionAmountPerSourcePool->setMinvalueShouldBeGreater(
true);
197 $questionAmountPerSourcePool->setSize(4);
204 $this->
addItem($questionAmountPerSourcePool);
214 case !in_array($this->
getItemByPostVar(
'filter_tax')->getValue(), $availableTaxonomyIds):
229 if( $this->questionSetConfig->isQuestionAmountConfigurationModePerPool() )
getOriginalFilterTaxNodeId()
This class represents an option in a radio group.
This class provides processing control methods.
setValue($a_value)
Set Value.
getPoolInfoLabel(ilLanguage $lng)
setOriginalFilterTaxNodeId($originalFilterNodeId)
setQuestionAmount($questionAmount)
const CMD_SHOW_SRC_POOL_DEF_LIST
setOriginalFilterTaxId($originalFilterTaxId)
This class represents a non editable value in a property form.