3 require_once
"Services/ADT/classes/Bridges/class.ilADTFormBridge.php";
22 public function setMulti($a_value, $a_cols = null, $a_rows = null)
24 $this->multi = (bool) $a_value;
25 $this->multi_rows = ($a_rows === null) ? null : (
int) $a_rows;
26 $this->multi_cols = ($a_cols === null) ? null : (
int) $a_cols;
56 if (
$def->getMaxLength()) {
57 $max =
$def->getMaxLength();
60 $text->setMaxLength($max);
68 if ($this->multi_rows) {
69 $text->setRows($this->multi_rows);
71 if ($this->multi_cols) {
72 $text->setCols($this->multi_cols);
75 if (
$def->getMaxLength()) {
76 $max =
$def->getMaxLength();
77 $text->setMaxNumOfChars($max);
94 $field->setValue($this->
getADT()->getText());
setMulti($a_value, $a_cols=null, $a_rows=null)
Set multi-line.
This class represents a text property in a property form.
This class represents a text area property in a property form.