36 $input->setWidth(100);
37 $input->setWidthUnit(
'%');
46 $options[
''] = $this->
lng->txt(
'dcl_please_select');
52 if ($copy_field->getTableId() !== 0) {
54 foreach ($copy_table->getRecords() as $record) {
55 $option = $record->getRecordField($copy_field->getId())->getPlainText();
56 if (!in_array($option, $options)) {
57 $options[$option] = $option;
61 $input->setAlert($this->
lng->txt(
'dcl_origin_not_found'));
64 if ($record_id !==
null) {
66 if ($value !==
'' && !array_key_exists($value, $options)) {
67 $options = [$value => $value .
' ' . $this->
lng->txt(
'dcl_deprecated_copy')] + $options;
71 $input->setOptions($options);
73 $input->setHeight(32 * min(5, max(1, count($options))));
87 $input->setSubmitFormOnEnter(
true);
96 $pass = parent::passThroughFilter($record, $filter);
99 if (!$filter || strpos(strtolower($value), strtolower($filter)) !==
false) {
108 $datetype_title = $this->
getField()->getPresentationTitle();
110 $opt->setInfo($this->
getField()->getPresentationDescription());
114 foreach ($tables as $table) {
115 foreach ($table->getRecordFields() as
$field) {
123 $this->
lng->txt(
'dcl_copy_title'),
126 $prop_table_selection->setOptions($options);
127 $opt->addSubItem($prop_table_selection);
130 $this->
lng->txt(
'dcl_multiple_selection'),
133 $opt->addSubItem($prop_multi_select);
getDatatypeId()
Get datatype_id.
ilDclBaseFieldModel $field
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
setupFilterInputField(?ilTableFilterItem $input)
Set basic settings for filter-input-gui.
getFilterInputFieldValue(ilTableFilterItem $input)
getField()
Return BaseFieldModel.
getRecordFieldValue(?string $field_id)
Get Field Value.
static getRecordCache(?int $record_id)
static getTableCache(?int $table_id=null)
static getFieldCache(int $field_id=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInputField(ilPropertyFormGUI $form, ?int $record_id=null)
addFilterInputFieldToTable(ilTable2GUI $table)
Add filter input to TableGUI.
buildFieldCreationInput(ilObjDataCollection $dcl, string $mode='create')
Build the creation-input-field.
passThroughFilter(ilDclBaseRecordModel $record, $filter)
Checks if a filter affects a record.
const INPUTFORMAT_BOOLEAN
const INPUTFORMAT_DATETIME
This class represents an option in a radio group.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type.