ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilADTTextDefinition Class Reference
+ Inheritance diagram for ilADTTextDefinition:
+ Collaboration diagram for ilADTTextDefinition:

Public Member Functions

 getMaxLength ()
 
 setMaxLength (?int $a_value)
 
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self. More...
 
- Public Member Functions inherited from ilADTDefinition
 __construct ()
 
 getType ()
 Get type (from class/instance) More...
 
 reset ()
 Init property defaults. More...
 
 setAllowNull (bool $a_value)
 Toggle null allowed status. More...
 
 isNullAllowed ()
 
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self. More...
 

Protected Attributes

int $max_length = null
 
- Protected Attributes inherited from ilADTDefinition
bool $allow_null
 

Detailed Description

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

Member Function Documentation

◆ getMaxLength()

ilADTTextDefinition::getMaxLength ( )

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

27 : ?int
28 {
29 return $this->max_length;
30 }

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 43 of file class.ilADTTextDefinition.php.

43 : bool
44 {
45 // has to be text-based
46 return ($a_adt instanceof ilADTText);
47 }

◆ setMaxLength()

ilADTTextDefinition::setMaxLength ( ?int  $a_value)

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

32 : void
33 {
34 $a_value = (int) $a_value;
35 if ($a_value < 1) {
36 $a_value = null;
37 }
38 $this->max_length = $a_value;
39 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

Field Documentation

◆ $max_length

int ilADTTextDefinition::$max_length = null
protected

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

Referenced by getMaxLength().


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