36 $this->
language->loadLanguageModule(
'meta');
51 public function setMulti($a_value, $a_cols =
null, $a_rows =
null)
53 $this->multi = (bool) $a_value;
54 $this->multi_rows = ($a_rows ===
null) ?
null : (
int) $a_rows;
55 $this->multi_cols = ($a_cols ===
null) ?
null : (
int) $a_cols;
87 $def = $this->
getADT()->getCopyOfDefinition();
92 if ($def->getMaxLength()) {
93 $max = $def->getMaxLength();
94 $size = $text->getSize();
96 $text->setMaxLength($max);
104 if ($this->multi_rows) {
105 $text->setRows($this->multi_rows);
107 if ($this->multi_cols) {
108 $text->setCols($this->multi_cols);
111 if ($def->getMaxLength()) {
112 $max = $def->getMaxLength();
113 $text->setMaxNumOfChars($max);
118 if ($is_translation) {
119 $text->setInfo($this->
language->txt(
'md_adv_int_translation_info') .
' ' . $this->language->txt(
'meta_l_' .
$language));
120 $text->setRequired(
false);
122 $text->setValue($value);
131 (
string) $this->
getADT()->getText()
140 $field->setValue($this->
getADT()->getText());
An exception for terminatinating execution or to throw for unit testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilADT $a_adt)
Constructor.
addToForm()
Add ADT-specific fields to form.
setMulti($a_value, $a_cols=null, $a_rows=null)
Set multi-line.
addElementToForm(string $title, string $element_id, string $value, bool $is_translation=false, string $language='')
importFromPost()
Import values from form request POST data.
isValidADT(ilADT $a_adt)
Check if given ADT is valid.
This class represents a text area property in a property form.
This class represents a text property in a property form.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc