Class ilDclSelectionFieldRepresentation.
More...
◆ addFilterInputFieldToTable()
ilDclSelectionFieldRepresentation::addFilterInputFieldToTable |
( |
ilTable2GUI |
$table | ) |
|
- Parameters
-
- Returns
- null
Definition at line 110 of file class.ilDclSelectionFieldRepresentation.php.
References $options, ilTable2GUI\addFilterItemByMetaType(), array, buildOptionsInput(), ilTable2GUI\FILTER_SELECT, ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ilDclBaseFieldRepresentation\getFilterInputFieldValue(), and ilDclBaseFieldRepresentation\setupFilterInputField().
115 $array =
array(
'' => $this->lng->txt(
'dcl_any'));
117 $array[$opt->getOptId()] = $opt->getValue();
120 $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.
Create styles array
The data for the language used.
getField()
Return BaseFieldModel.
getFilterInputFieldValue( $input)
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
◆ buildFieldCreationInput()
ilDclSelectionFieldRepresentation::buildFieldCreationInput |
( |
ilObjDataCollection |
$dcl, |
|
|
|
$mode = 'create' |
|
) |
| |
|
protected |
- Parameters
-
- Returns
- ilPropertyFormGUI
Definition at line 22 of file class.ilDclSelectionFieldRepresentation.php.
References $form, $options, ilRadioOption\addSubItem(), array, buildOptionsInput(), ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ilDclBaseFieldRepresentation\getInputField(), ilDclSelectionFieldModel\SELECTION_TYPE_COMBOBOX, ilDclSelectionFieldModel\SELECTION_TYPE_MULTI, ilDclSelectionFieldModel\SELECTION_TYPE_SINGLE, ilFormPropertyGUI\setRequired(), and ilDclBaseFieldRepresentation\setupInputField().
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);
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: