3 declare(strict_types=1);
30 $this->
lng->loadLanguageModule(
'meta');
33 public function setMulti(
bool $a_value, ?
int $a_cols = null, ?
int $a_rows = null): void
35 $this->multi = $a_value;
36 $this->multi_rows = ($a_rows === null) ? null : $a_rows;
37 $this->multi_cols = ($a_cols === null) ? null : $a_cols;
54 bool $is_translation =
false,
57 $def = $this->
getADT()->getCopyOfDefinition();
62 if ($def->getMaxLength()) {
63 $max = $def->getMaxLength();
64 $size = $text->getSize();
66 $text->setMaxLength($max);
68 if ($size && $max < $size) {
74 if ($this->multi_rows) {
75 $text->setRows($this->multi_rows);
77 if ($this->multi_cols) {
78 $text->setCols($this->multi_cols);
81 if ($def->getMaxLength()) {
82 $max = $def->getMaxLength();
83 $text->setMaxNumOfChars($max);
88 if ($is_translation) {
89 $text->setInfo($this->
lng->txt(
'md_adv_int_translation_info') .
' ' . $this->
lng->txt(
'meta_l_' . $language));
90 $text->setRequired(
false);
92 $text->setValue($value);
101 (
string) $this->
getADT()->getText()
110 $field->setValue($this->
getADT()->getText());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilADT $a_adt)
setMulti(bool $a_value, ?int $a_cols=null, ?int $a_rows=null)
__construct(Container $dic, ilPlugin $plugin)
This class represents a text area property in a property form.
addElementToForm(string $title, string $element_id, string $value, bool $is_translation=false, string $language='')