◆ addFilterInputFieldToTable()
| ilDclSelectionFieldRepresentation::addFilterInputFieldToTable |
( |
ilTable2GUI |
$table | ) |
|
Definition at line 87 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().
97 $array = [
'' => $this->
lng->txt(
'dcl_all_entries')];
98 foreach ($options as $opt) {
99 $array[$opt->getOptId()] = $opt->getValue();
102 $array[
'none'] = $this->
lng->txt(
'dcl_no_entry');
104 $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 |
◆ buildOptionsInput()
| ilDclSelectionFieldRepresentation::buildOptionsInput |
( |
| ) |
|
|
abstractprotected |
◆ getInputField()
| ilDclSelectionFieldRepresentation::getInputField |
( |
ilPropertyFormGUI |
$form, |
|
|
?int |
$record_id = null |
|
) |
| |
Definition at line 51 of file class.ilDclSelectionFieldRepresentation.php.
References ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ILIAS\Survey\Mode\getId(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), ILIAS\Repository\lng(), ilDclSelectionFieldModel\SELECTION_TYPE_COMBOBOX, ilDclSelectionFieldModel\SELECTION_TYPE_MULTI, ilDclSelectionFieldModel\SELECTION_TYPE_SINGLE, and ilDclBaseFieldRepresentation\setupInputField().
55 $options[$opt->getOptId()] = $opt->getValue();
57 switch ($this->
getField()->getProperty($this->field::PROP_SELECTION_TYPE)) {
63 $input->setWidth(100);
64 $input->setWidthUnit(
'%');
65 $input->setHeight(32 * min(5, max(1, count($options))));
67 $input->setOptions($options);
71 $input->setOptions([
"" => $this->
lng->txt(
'dcl_please_select')] + $options);
76 foreach ($options as $key => $opt) {
79 $input->setValue((
string) array_key_first($options));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SELECTION_TYPE_SINGLE
const SELECTION_TYPE_MULTI
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
const SELECTION_TYPE_COMBOBOX
static getAllForField(int $field_id)
getField()
Return BaseFieldModel.
The documentation for this class was generated from the following file: