19 declare(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'),
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'),
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);
This class represents an option in a radio group.
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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const PROP_LINK_DETAIL_PAGE_TEXT
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type.
getPropertyInputFieldId(string $property)
Return post-var for property-fields.
const PROP_LENGTH
General properties.
setupFilterInputField(?ilTableFilterItem $input)
Set basic settings for filter-input-gui.
getInputField(ilPropertyFormGUI $form, ?int $record_id=null)
getField()
Return BaseFieldModel.
buildFieldCreationInput(ilObjDataCollection $dcl, string $mode='create')
addFilterInputFieldToTable(ilTable2GUI $table)
This class represents a text area property in a property form.