ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilADTDefinition Class Reference

ADT definition base class. More...

+ Inheritance diagram for ilADTDefinition:
+ Collaboration diagram for ilADTDefinition:

Public Member Functions

 __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 Member Functions

 reset ()
 Init property defaults. More...
 

Protected Attributes

 $allow_null
 

Detailed Description

ADT definition base class.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilADTDefinition::__construct ( )

Constructor.

Returns
self

Definition at line 20 of file class.ilADTDefinition.php.

21 {
22 $this->reset();
23 }
reset()
Init property defaults.

References reset().

+ Here is the call graph for this function:

Member Function Documentation

◆ getType()

ilADTDefinition::getType ( )

Get type (from class/instance)

Returns
string

Reimplemented in ilADTEnumDefinition.

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

31 {
32 return substr(substr(get_class($this), 5), 0, -10);
33 }

Referenced by ilADTEnumSearchBridgeMulti\convertADTDefinitionToMulti(), ilADTFactory\getInstanceByDefinition(), and ilADTFactory\getSearchBridgeForDefinitionInstance().

+ Here is the caller graph for this function:

◆ isComparableTo()

ilADTDefinition::isComparableTo ( ilADT  $a_adt)
abstract

◆ isNullAllowed()

ilADTDefinition::isNullAllowed ( )

Is null currently allowed.

Returns
bool

Definition at line 63 of file class.ilADTDefinition.php.

References $allow_null.

◆ reset()

ilADTDefinition::reset ( )
protected

Init property defaults.

Reimplemented in ilADTEnumDefinition, ilADTFloatDefinition, ilADTGroupDefinition, and ilADTMultiEnumDefinition.

Definition at line 38 of file class.ilADTDefinition.php.

39 {
40 $this->setAllowNull(true);
41 }
setAllowNull($a_value)
Toggle null allowed status.

References setAllowNull().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAllowNull()

ilADTDefinition::setAllowNull (   $a_value)

Toggle null allowed status.

Parameters
bool$a_value

Definition at line 53 of file class.ilADTDefinition.php.

54 {
55 $this->allow_null = (bool)$a_value;
56 }

Referenced by reset().

+ Here is the caller graph for this function:

Field Documentation

◆ $allow_null

ilADTDefinition::$allow_null
protected

Definition at line 13 of file class.ilADTDefinition.php.

Referenced by isNullAllowed().


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