43 $options[
''] = $this->
lng->txt(
'dcl_please_select');
49 if ($copy_field->getTableId() !== 0) {
51 foreach ($copy_table->getRecords() as $record) {
52 $option = $record->getRecordField($copy_field->getId())->getPlainText();
53 if (!in_array($option, $options)) {
54 $options[$option] = $option;
58 $input->setAlert($this->
lng->txt(
'dcl_origin_not_found'));
61 if ($record_id !==
null) {
63 if ($value !==
'' && !array_key_exists($value, $options)) {
64 $options[$value] = $value .
' ' . $this->
lng->txt(
'dcl_deprecated_copy');
68 $input->setOptions($options);
81 $input->setSubmitFormOnEnter(
true);
90 $pass = parent::passThroughFilter($record, $filter);
93 if (!$filter || strpos(strtolower($value), strtolower($filter)) !==
false) {
102 $datetype_title = $this->
getField()->getPresentationTitle();
104 $opt->setInfo($this->
getField()->getPresentationDescription());
108 foreach ($tables as $table) {
109 foreach ($table->getRecordFields() as
$field) {
117 $this->
lng->txt(
'dcl_copy_title'),
121 $opt->addSubItem($prop_table_selection);
124 $this->
lng->txt(
'dcl_multiple_selection'),
This class represents an option in a radio group.
ilDclBaseFieldModel $field
addFilterInputFieldToTable(ilTable2GUI $table)
const INPUTFORMAT_BOOLEAN
static getFieldCache(int $field_id=0)
getRecordFieldValue(?string $field_id)
Get Field Value.
getFilterInputFieldValue(ilTableFilterItem $input)
passThroughFilter(ilDclBaseRecordModel $record, $filter)
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type.
static getTableCache(?int $table_id=null)
const INPUTFORMAT_DATETIME
setupFilterInputField(?ilTableFilterItem $input)
Set basic settings for filter-input-gui.
buildFieldCreationInput(ilObjDataCollection $dcl, string $mode='create')
getField()
Return BaseFieldModel.
static getRecordCache(?int $record_id)
getInputField(ilPropertyFormGUI $form, ?int $record_id=null)
getDatatypeId()
Get datatype_id.