24 $opt = parent::buildFieldCreationInput($dcl, $mode);
27 $opt->addSubItem($selection_options);
29 $selection_type =
new ilRadioGroupInputGUI($this->lng->txt(
'dcl_selection_type'),
'prop_' . static::PROP_SELECTION_TYPE);
30 $selection_type->setRequired(
true);
36 $selection_type->addOption($option_1);
42 $selection_type->addOption($option_2);
48 $selection_type->addOption($option_3);
50 $opt->addSubItem($selection_type);
66 switch ($this->
getField()->getProperty(static::PROP_SELECTION_TYPE)) {
70 $input->addOption(
new ilRadioOption($opt->getValue(), $opt->getOptId()));
72 $input->setValue(array_keys(
$options)[0]);
80 $input->setHeight(100);
81 $input->setHeightUnit(
'%; max-height: 150px');
82 $input->setWidth(100);
83 $input->setWidthUnit(
'%');
87 $array[$opt->getOptId()] = $opt->getValue();
89 $input->setOptions($array);
95 $array[$opt->getOptId()] = $opt->getValue();
97 $input->setOptions(array(
"" => $this->lng->txt(
'dcl_please_select')) + $array);
115 $array = array(
'' => $this->lng->txt(
'dcl_any'));
117 $array[$opt->getOptId()] = $opt->getValue();
120 $input->setOptions($array);
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
Class ilDclBaseFieldRepresentation.
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
getFilterInputFieldValue( $input)
setupFilterInputField(ilFormPropertyGUI $input)
Set basic settings for filter-input-gui.
getField()
Return BaseFieldModel.
getInputField(ilPropertyFormGUI $form, $record_id=0)
Returns field-input.
const SELECTION_TYPE_COMBOBOX
const SELECTION_TYPE_SINGLE
const SELECTION_TYPE_MULTI
Class ilDclSelectionFieldRepresentation.
addFilterInputFieldToTable(ilTable2GUI $table)
const PROP_SELECTION_OPTIONS
const PROP_SELECTION_TYPE
buildFieldCreationInput(ilObjDataCollection $dcl, $mode='create')
static getAllForField($field_id)
Class ilObjDataCollection.
This class represents an option in a radio group.
if(empty($password)) $table
if(isset($_POST['submit'])) $form