ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilADTDefinition Class Reference

ADT definition base class. More...

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

Public Member Functions

 __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

bool $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

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

Constructor & Destructor Documentation

◆ __construct()

ilADTDefinition::__construct ( )

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

30 {
31 $this->reset();
32 }
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 38 of file class.ilADTDefinition.php.

38 : string
39 {
40 return substr(substr(get_class($this), 5), 0, -10);
41 }

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

+ Here is the caller graph for this function:

◆ isComparableTo()

◆ isNullAllowed()

ilADTDefinition::isNullAllowed ( )

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

65 : bool
66 {
67 return $this->allow_null;
68 }

References $allow_null.

◆ reset()

ilADTDefinition::reset ( )

Init property defaults.

Reimplemented in ilADTEnumDefinition, ilADTFloatDefinition, ilADTGroupDefinition, and ilADTMultiEnumDefinition.

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

46 : void
47 {
48 $this->setAllowNull(true);
49 }
setAllowNull(bool $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 ( bool  $a_value)

Toggle null allowed status.

Parameters
bool$a_value

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

60 : void
61 {
62 $this->allow_null = $a_value;
63 }

Referenced by reset().

+ Here is the caller graph for this function:

Field Documentation

◆ $allow_null

bool ilADTDefinition::$allow_null
protected

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

Referenced by isNullAllowed().


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