◆ addFilterInputFieldToTable()
ilDclSelectionFieldRepresentation::addFilterInputFieldToTable |
( |
ilTable2GUI |
$table | ) |
|
- Parameters
-
- Returns
- string|array|null
Definition at line 106 of file class.ilDclSelectionFieldRepresentation.php.
References ilTable2GUI\addFilterItemByMetaType(), buildOptionsInput(), ilTable2GUI\FILTER_SELECT, ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ilDclBaseFieldRepresentation\getFilterInputFieldValue(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\lng(), and ilDclBaseFieldRepresentation\setupFilterInputField().
116 $array = [
'' => $this->
lng->txt(
'dcl_all_entries')];
117 foreach ($options as $opt) {
118 $array[$opt->getOptId()] = $opt->getValue();
121 $array[
'none'] = $this->
lng->txt(
'dcl_no_entry');
123 $input->setOptions($array);
getFilterInputFieldValue(ilTableFilterItem $input)
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type.
static getAllForField(int $field_id)
setupFilterInputField(?ilTableFilterItem $input)
Set basic settings for filter-input-gui.
getField()
Return BaseFieldModel.
◆ buildFieldCreationInput()
ilDclSelectionFieldRepresentation::buildFieldCreationInput |
( |
ilObjDataCollection |
$dcl, |
|
|
string |
$mode = 'create' |
|
) |
| |
|
protected |
Definition at line 27 of file class.ilDclSelectionFieldRepresentation.php.
References buildOptionsInput(), ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ILIAS\Survey\Mode\getId(), ilDclBaseFieldRepresentation\getInputField(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), ILIAS\Repository\lng(), null, ilDclSelectionFieldModel\SELECTION_TYPE_COMBOBOX, ilDclSelectionFieldModel\SELECTION_TYPE_MULTI, ilDclSelectionFieldModel\SELECTION_TYPE_SINGLE, ilFormPropertyGUI\setRequired(), and ilDclBaseFieldRepresentation\setupInputField().
29 $opt = parent::buildFieldCreationInput($dcl, $mode);
32 $opt->addSubItem($selection_options);
35 $this->
lng->txt(
'dcl_selection_type'),
36 'prop_' . static::PROP_SELECTION_TYPE
46 foreach ($options as $option) {
47 $selection_type->addOption(
new ilRadioOption($this->
lng->txt(
'dcl_' . $option), $option));
50 $opt->addSubItem($selection_type);
This class represents an option in a radio group.
const SELECTION_TYPE_SINGLE
const SELECTION_TYPE_MULTI
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: