ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilADTTextDefinition Class Reference
+ Inheritance diagram for ilADTTextDefinition:
+ Collaboration diagram for ilADTTextDefinition:

Public Member Functions

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

References $max_length.

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

◆ isComparableTo()

ilADTTextDefinition::isComparableTo ( ilADT  $a_adt)

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.

References ILIAS\Repository\int(), and null.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ 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: