ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References reset().

30  {
31  $this->reset();
32  }
reset()
Init property defaults.
+ Here is the call graph for this function:

Member Function Documentation

◆ getType()

ilADTDefinition::getType ( )

Get type (from class/instance)

Returns
string

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

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

38  : string
39  {
40  return substr(substr(get_class($this), 5), 0, -10);
41  }
+ Here is the caller graph for this function:

◆ isComparableTo()

ilADTDefinition::isComparableTo ( ilADT  $a_adt)
abstract

Check if given ADT is comparable to self.

Parameters
ilADT$a_adt
Returns
bool

Referenced by isNullAllowed().

+ Here is the caller graph for this function:

◆ isNullAllowed()

ilADTDefinition::isNullAllowed ( )

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

References $allow_null, and isComparableTo().

65  : bool
66  {
67  return $this->allow_null;
68  }
+ Here is the call graph for this function:

◆ reset()

ilADTDefinition::reset ( )

Init property defaults.

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

References setAllowNull().

Referenced by __construct().

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

Referenced by reset().

60  : void
61  {
62  $this->allow_null = $a_value;
63  }
+ 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: