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

Public Member Functions

 getMaxLength ()
 
 setMaxLength ($a_value)
 
 getMaxSize ()
 
 setMaxSize ($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
 
 $max_size
 
- 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.ilADTMultiTextDefinition.php.

Member Function Documentation

◆ getMaxLength()

ilADTMultiTextDefinition::getMaxLength ( )

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

References $max_length.

◆ getMaxSize()

ilADTMultiTextDefinition::getMaxSize ( )

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

References $max_size.

◆ isComparableTo()

ilADTMultiTextDefinition::isComparableTo ( ilADT  $a_adt)

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

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

◆ setMaxLength()

ilADTMultiTextDefinition::setMaxLength (   $a_value)

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

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

◆ setMaxSize()

ilADTMultiTextDefinition::setMaxSize (   $a_value)

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

31  {
32  $a_value = (int) $a_value;
33  if ($a_value < 1) {
34  $a_value = null;
35  }
36  $this->max_size = $a_value;
37  }

Field Documentation

◆ $max_length

ilADTMultiTextDefinition::$max_length
protected

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

Referenced by getMaxLength().

◆ $max_size

ilADTMultiTextDefinition::$max_size
protected

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

Referenced by getMaxSize().


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