ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
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.

References reset().

21  {
22  $this->reset();
23  }
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 30 of file class.ilADTDefinition.php.

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

31  {
32  return substr(substr(get_class($this), 5), 0, -10);
33  }
+ 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 ( )

Is null currently allowed.

Returns
bool

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

References $allow_null, and isComparableTo().

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

◆ reset()

ilADTDefinition::reset ( )
protected

Init property defaults.

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

References setAllowNull().

Referenced by __construct().

39  {
40  $this->setAllowNull(true);
41  }
setAllowNull($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 (   $a_value)

Toggle null allowed status.

Parameters
bool$a_value

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

Referenced by reset().

54  {
55  $this->allow_null = (bool)$a_value;
56  }
+ 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: