ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADTMultiTextDefinition.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 protected ?int $max_length = null;
24 protected ?int $max_size = null;
25
26 // properties
27
28 public function getMaxLength(): ?int
29 {
30 return $this->max_length;
31 }
32
33 public function setMaxLength(int $a_value): void
34 {
35 if ($a_value < 1) {
36 $a_value = null;
37 }
38 $this->max_length = $a_value;
39 }
40
41 public function getMaxSize(): ?int
42 {
43 return $this->max_size;
44 }
45
46 public function setMaxSize(int $a_value): void
47 {
48 if ($a_value < 1) {
49 $a_value = null;
50 }
51 $this->max_size = $a_value;
52 }
53
54 // comparison
55
56 public function isComparableTo(ilADT $a_adt): bool
57 {
58 // has to be text-based
59 return ($a_adt instanceof ilADTMultiText);
60 }
61}
ADT definition base class.
isComparableTo(ilADT $a_adt)
Check if given ADT is comparable to self.
ADT base class.
Definition: class.ilADT.php:26