ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilADTTextDefinition Class Reference
+ Inheritance diagram for ilADTTextDefinition:
+ Collaboration diagram for ilADTTextDefinition:

Public Member Functions

 getMaxLength ()
 
 setMaxLength ($a_value)
 
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self. More...
 
- Public Member Functions inherited from ilADTDefinition
 __construct ()
 Constructor. More...
 
 getType ()
 Get type (from class/instance) More...
 
 setAllowNull ($a_value)
 Toggle null allowed status. More...
 
 isNullAllowed ()
 Is null currently allowed. More...
 
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self. More...
 

Protected Attributes

 $max_length
 
- Protected Attributes inherited from ilADTDefinition
 $allow_null
 

Additional Inherited Members

- Protected Member Functions inherited from ilADTDefinition
 reset ()
 Init property defaults. More...
 

Detailed Description

Definition at line 3 of file class.ilADTTextDefinition.php.

Member Function Documentation

◆ getMaxLength()

ilADTTextDefinition::getMaxLength ( )

Definition at line 10 of file class.ilADTTextDefinition.php.

References $max_length.

◆ isComparableTo()

ilADTTextDefinition::isComparableTo ( ilADT  $a_adt)

Check if given ADT is comparable to self.

Parameters
ilADT$a_adt
Returns
bool

Reimplemented from ilADTDefinition.

Definition at line 27 of file class.ilADTTextDefinition.php.

28 {
29 // has to be text-based
30 return ($a_adt instanceof ilADTText);
31 }

◆ setMaxLength()

ilADTTextDefinition::setMaxLength (   $a_value)

Definition at line 15 of file class.ilADTTextDefinition.php.

16 {
17 $a_value = (int) $a_value;
18 if ($a_value < 1) {
19 $a_value = null;
20 }
21 $this->max_length = $a_value;
22 }

Field Documentation

◆ $max_length

ilADTTextDefinition::$max_length
protected

Definition at line 5 of file class.ilADTTextDefinition.php.

Referenced by getMaxLength().


The documentation for this class was generated from the following file: