19declare(strict_types=1);
31 $input->setSubmitFormOnEnter(
true);
43 $pass = parent::passThroughFilter($record, $filter);
46 if (!$filter || strpos(strtolower($value), strtolower($filter)) !==
false) {
58 $input->setMaxNumOfChars($length);
61 $input->setMaxLength($length);
67 $input->setInfo($this->
lng->txt(
'dcl_text_email_detail_desc'));
69 $this->
lng->txt(
'dcl_text_email_title'),
70 'field_' . $this->getField()->getId() .
'_title'
72 $title_field->setInfo($this->
lng->txt(
'dcl_text_email_title_info'));
73 $input->addSubItem($title_field);
75 $input->setInfo(sprintf($this->
lng->txt(
"dcl_max_text_length"), $length));
85 $opt = parent::buildFieldCreationInput($dcl, $mode);
88 $this->
lng->txt(
'dcl_length'),
91 $prop_length->setSize(5);
92 $prop_length->setMinValue(1);
93 $prop_length->setMaxValue(4000);
94 $prop_length->setRequired(
true);
95 $prop_length->setValue(
'200');
96 $prop_length->setInfo($this->
lng->txt(
'dcl_length_info'));
97 $opt->addSubItem($prop_length);
100 $this->
lng->txt(
'dcl_url'),
103 $opt->addSubItem($prop_url);
106 $this->
lng->txt(
'dcl_link_detail_page'),
109 $prop_page_details->setInfo($this->
lng->txt(
'dcl_link_detail_page_desc'));
110 $opt->addSubItem($prop_page_details);
113 $this->
lng->txt(
'dcl_unique'),
116 $prop_unique->setInfo($this->
lng->txt(
'dcl_unique_desc'));
117 $opt->addSubItem($prop_unique);
120 $this->
lng->txt(
'dcl_regex'),
123 $prop_regex->setInfo($this->
lng->txt(
'dcl_regex_info'));
124 $opt->addSubItem($prop_regex);
const PROP_LINK_DETAIL_PAGE_TEXT
const PROP_LENGTH
General properties.
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.
getInputField(ilPropertyFormGUI $form, ?int $record_id=null)
Returns field-input.
buildFieldCreationInput(ilObjDataCollection $dcl, string $mode='create')
Build the creation-input-field.
addFilterInputFieldToTable(ilTable2GUI $table)
Add filter input to TableGUI.
passThroughFilter(ilDclBaseRecordModel $record, $filter)
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.
This class represents a text area property in a property form.