ILIAS  release_8 Revision v8.24
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 11 of file class.ilADTDefinition.php.

Constructor & Destructor Documentation

◆ __construct()

ilADTDefinition::__construct ( )

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

16 {
17 $this->reset();
18 }
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 24 of file class.ilADTDefinition.php.

24 : string
25 {
26 return substr(substr(get_class($this), 5), 0, -10);
27 }

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

+ Here is the caller graph for this function:

◆ isComparableTo()

◆ isNullAllowed()

ilADTDefinition::isNullAllowed ( )

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

51 : bool
52 {
53 return $this->allow_null;
54 }

References $allow_null.

◆ reset()

ilADTDefinition::reset ( )

Init property defaults.

Reimplemented in ilADTEnumDefinition, ilADTFloatDefinition, ilADTGroupDefinition, and ilADTMultiEnumDefinition.

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

32 : void
33 {
34 $this->setAllowNull(true);
35 }
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 46 of file class.ilADTDefinition.php.

46 : void
47 {
48 $this->allow_null = $a_value;
49 }

Referenced by reset().

+ Here is the caller graph for this function:

Field Documentation

◆ $allow_null

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