Class ilDclSelectionFieldRepresentation.
More...
◆ addFilterInputFieldToTable()
ilDclSelectionFieldRepresentation::addFilterInputFieldToTable |
( |
ilTable2GUI |
$table | ) |
|
- Parameters
-
- Returns
- null
Definition at line 111 of file class.ilDclSelectionFieldRepresentation.php.
References $input, PHPMailer\PHPMailer\$options, ilTable2GUI\addFilterItemByMetaType(), buildOptionsInput(), ilTable2GUI\FILTER_SELECT, ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ilDclBaseFieldRepresentation\getFilterInputFieldValue(), and ilDclBaseFieldRepresentation\setupFilterInputField().
116 $array = array(
'' => $this->lng->txt(
'dcl_any'));
118 $array[$opt->getOptId()] = $opt->getValue();
121 $input->setOptions($array);
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
static getAllForField($field_id)
setupFilterInputField(ilFormPropertyGUI $input)
Set basic settings for filter-input-gui.
getField()
Return BaseFieldModel.
getFilterInputFieldValue( $input)
◆ buildFieldCreationInput()
ilDclSelectionFieldRepresentation::buildFieldCreationInput |
( |
ilObjDataCollection |
$dcl, |
|
|
|
$mode = 'create' |
|
) |
| |
|
protected |
- Parameters
-
- Returns
- ilPropertyFormGUI
Definition at line 23 of file class.ilDclSelectionFieldRepresentation.php.
References $form, $input, PHPMailer\PHPMailer\$options, ilRadioOption\addSubItem(), buildOptionsInput(), ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ilDclBaseFieldRepresentation\getInputField(), ilDclSelectionFieldModel\SELECTION_TYPE_COMBOBOX, ilDclSelectionFieldModel\SELECTION_TYPE_MULTI, ilDclSelectionFieldModel\SELECTION_TYPE_SINGLE, ilFormPropertyGUI\setRequired(), and ilDclBaseFieldRepresentation\setupInputField().
25 $opt = parent::buildFieldCreationInput($dcl, $mode);
28 $opt->addSubItem($selection_options);
30 $selection_type =
new ilRadioGroupInputGUI($this->lng->txt(
'dcl_selection_type'),
'prop_' . static::PROP_SELECTION_TYPE);
37 $selection_type->addOption($option_1);
43 $selection_type->addOption($option_2);
49 $selection_type->addOption($option_3);
This class represents an option in a radio group.
const SELECTION_TYPE_SINGLE
const SELECTION_TYPE_MULTI
addSubItem($a_item)
Add Subitem.
const SELECTION_TYPE_COMBOBOX
◆ buildOptionsInput()
ilDclSelectionFieldRepresentation::buildOptionsInput |
( |
| ) |
|
|
abstractprotected |
◆ PROP_SELECTION_OPTIONS
const ilDclSelectionFieldRepresentation::PROP_SELECTION_OPTIONS = '' |
◆ PROP_SELECTION_TYPE
const ilDclSelectionFieldRepresentation::PROP_SELECTION_TYPE = '' |
The documentation for this class was generated from the following file: