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);
36 $selection_type->addOption($option_1);
42 $selection_type->addOption($option_2);
48 $selection_type->addOption($option_3);
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);
This class represents an option in a radio group.
const SELECTION_TYPE_SINGLE
const SELECTION_TYPE_MULTI
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
buildFieldCreationInput(ilObjDataCollection $dcl, $mode='create')
addFilterInputFieldToTable(ilTable2GUI $table)
Class ilDclSelectionFieldRepresentation.
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
static getAllForField($field_id)
if(isset($_POST['submit'])) $form
addSubItem($a_item)
Add Subitem.
const SELECTION_TYPE_COMBOBOX
setupFilterInputField(ilFormPropertyGUI $input)
Set basic settings for filter-input-gui.
Create styles array
The data for the language used.
getField()
Return BaseFieldModel.
getInputField(ilPropertyFormGUI $form, $record_id=0)
Returns field-input.
const PROP_SELECTION_OPTIONS
const PROP_SELECTION_TYPE
if(empty($password)) $table
Class ilDclBaseFieldRepresentation.
getFilterInputFieldValue( $input)
Class ilObjDataCollection.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options