ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilADTTextDefinition Class Reference
+ Inheritance diagram for ilADTTextDefinition:
+ Collaboration diagram for ilADTTextDefinition:

Public Member Functions

 getMaxLength ()
 
 setMaxLength ($a_value)
 
 isComparableTo (ilADT $a_adt)
 
- 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)

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

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

◆ 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  {
20  $a_value = null;
21  }
22  $this->max_length = $a_value;
23  }

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: