44 $options[
''] = $this->
lng->txt(
'dcl_please_select');
50 if ($copy_field->getTableId() !== 0) {
52 foreach ($copy_table->getRecords() as $record) {
53 $option = $record->getRecordField($copy_field->getId())->getPlainText();
54 if (!in_array($option, $options)) {
55 $options[$option] = $option;
59 $input->setAlert($this->
lng->txt(
'dcl_origin_not_found'));
62 if ($record_id !==
null) {
64 if ($value !==
'' && !array_key_exists($value, $options)) {
65 $options[$value] = $value .
' ' . $this->
lng->txt(
'dcl_deprecated_copy');
69 $input->setOptions($options);
82 $input->setSubmitFormOnEnter(
true);
91 $pass = parent::passThroughFilter($record, $filter);
94 if (!$filter || strpos(strtolower($value), strtolower($filter)) !==
false) {
103 $datetype_title = $this->
getField()->getPresentationTitle();
105 $opt->setInfo($this->
getField()->getPresentationDescription());
109 foreach ($tables as $table) {
110 foreach ($table->getRecordFields() as
$field) {
118 $this->
lng->txt(
'dcl_copy_title'),
122 $opt->addSubItem($prop_table_selection);
125 $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.