ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilADTTextDefinition Class Reference
+ Inheritance diagram for ilADTTextDefinition:
+ Collaboration diagram for ilADTTextDefinition:

Public Member Functions

 getMaxLength ()
 setMaxLength ($a_value)
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self.
- Public Member Functions inherited from ilADTDefinition
 __construct ()
 Constructor.
 getType ()
 Get type (from class/instance)
 setAllowNull ($a_value)
 Toggle null allowed status.
 isNullAllowed ()
 Is null currently allowed.

Protected Attributes

 $max_length
- Protected Attributes inherited from ilADTDefinition
 $allow_null

Additional Inherited Members

- Protected Member Functions inherited from ilADTDefinition
 reset ()
 Init property defaults.

Detailed Description

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

Member Function Documentation

ilADTTextDefinition::getMaxLength ( )

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

References $max_length.

{
}
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 28 of file class.ilADTTextDefinition.php.

{
// has to be text-based
return ($a_adt instanceof ilADTText);
}
ilADTTextDefinition::setMaxLength (   $a_value)

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

{
$a_value = (int)$a_value;
if($a_value < 1)
{
$a_value = null;
}
$this->max_length = $a_value;
}

Field Documentation

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: