ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilADTTextDefinition.php
Go to the documentation of this file.
1
<?php
2
3
class
ilADTTextDefinition
extends
ilADTDefinition
4
{
5
protected
$max_length
;
// [int]
6
7
8
// properties
9
10
public
function
getMaxLength
()
11
{
12
return
$this->max_length
;
13
}
14
15
public
function
setMaxLength
($a_value)
16
{
17
$a_value = (int) $a_value;
18
if
($a_value < 1) {
19
$a_value = null;
20
}
21
$this->max_length = $a_value;
22
}
23
24
25
// comparison
26
27
public
function
isComparableTo
(
ilADT
$a_adt)
28
{
29
// has to be text-based
30
return
($a_adt instanceof
ilADTText
);
31
}
32
}
ilADTTextDefinition
Definition:
class.ilADTTextDefinition.php:3
ilADTTextDefinition\$max_length
$max_length
Definition:
class.ilADTTextDefinition.php:5
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTTextDefinition\getMaxLength
getMaxLength()
Definition:
class.ilADTTextDefinition.php:10
ilADTTextDefinition\setMaxLength
setMaxLength($a_value)
Definition:
class.ilADTTextDefinition.php:15
ilADTText
Definition:
class.ilADTText.php:3
ilADTDefinition
ADT definition base class.
Definition:
class.ilADTDefinition.php:11
ilADTTextDefinition\isComparableTo
isComparableTo(ilADT $a_adt)
Definition:
class.ilADTTextDefinition.php:27
Services
ADT
classes
Types
Text
class.ilADTTextDefinition.php
Generated on Sat Jan 18 2025 19:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)