ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilADTMultiTextDefinition.php
Go to the documentation of this file.
1<?php
2
4{
5 protected $max_length; // [int]
6 protected $max_size; // [int]
7
8
9 // properties
10
11 public function getMaxLength()
12 {
13 return $this->max_length;
14 }
15
16 public function setMaxLength($a_value)
17 {
18 $a_value = (int) $a_value;
19 if ($a_value < 1) {
20 $a_value = null;
21 }
22 $this->max_length = $a_value;
23 }
24
25 public function getMaxSize()
26 {
27 return $this->max_size;
28 }
29
30 public function setMaxSize($a_value)
31 {
32 $a_value = (int) $a_value;
33 if ($a_value < 1) {
34 $a_value = null;
35 }
36 $this->max_size = $a_value;
37 }
38
39
40
41 // comparison
42
43 public function isComparableTo(ilADT $a_adt)
44 {
45 // has to be text-based
46 return ($a_adt instanceof ilADTMultiText);
47 }
48}
An exception for terminatinating execution or to throw for unit testing.
ADT definition base class.
isComparableTo(ilADT $a_adt)
Check if given ADT is comparable to self.
ADT base class.
Definition: class.ilADT.php:12