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

Public Member Functions

 getMaxLength ()
 
 setMaxLength (int $a_value)
 
 getMaxSize ()
 
 setMaxSize (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
 
int $max_size = null
 
- Protected Attributes inherited from ilADTDefinition
bool $allow_null
 

Detailed Description

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

Member Function Documentation

◆ getMaxLength()

ilADTMultiTextDefinition::getMaxLength ( )

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

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

References $max_length.

◆ getMaxSize()

ilADTMultiTextDefinition::getMaxSize ( )

Definition at line 41 of file class.ilADTMultiTextDefinition.php.

41 : ?int
42 {
43 return $this->max_size;
44 }

References $max_size.

◆ isComparableTo()

ilADTMultiTextDefinition::isComparableTo ( ilADT  $a_adt)

Check if given ADT is comparable to self.

Parameters
ilADT$a_adt
Returns
bool

Reimplemented from ilADTDefinition.

Definition at line 56 of file class.ilADTMultiTextDefinition.php.

56 : bool
57 {
58 // has to be text-based
59 return ($a_adt instanceof ilADTMultiText);
60 }

◆ setMaxLength()

ilADTMultiTextDefinition::setMaxLength ( int  $a_value)

Definition at line 33 of file class.ilADTMultiTextDefinition.php.

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

◆ setMaxSize()

ilADTMultiTextDefinition::setMaxSize ( int  $a_value)

Definition at line 46 of file class.ilADTMultiTextDefinition.php.

46 : void
47 {
48 if ($a_value < 1) {
49 $a_value = null;
50 }
51 $this->max_size = $a_value;
52 }

Field Documentation

◆ $max_length

int ilADTMultiTextDefinition::$max_length = null
protected

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

Referenced by getMaxLength().

◆ $max_size

int ilADTMultiTextDefinition::$max_size = null
protected

Definition at line 24 of file class.ilADTMultiTextDefinition.php.

Referenced by getMaxSize().


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