ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
21 $a_value = null;
22 }
23 $this->max_length = $a_value;
24 }
25
26 public function getMaxSize()
27 {
28 return $this->max_size;
29 }
30
31 public function setMaxSize($a_value)
32 {
33 $a_value = (int)$a_value;
34 if($a_value < 1)
35 {
36 $a_value = null;
37 }
38 $this->max_size = $a_value;
39 }
40
41
42
43 // comparison
44
45 public function isComparableTo(ilADT $a_adt)
46 {
47 // has to be text-based
48 return ($a_adt instanceof ilADTMultiText);
49 }
50}
51
52?>
ADT definition base class.
isComparableTo(ilADT $a_adt)
Check if given ADT is comparable to self.
ADT base class.
Definition: class.ilADT.php:12