ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilADTDefinition Class Reference

ADT definition base class. More...

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

Public Member Functions

 __construct ()
 Constructor.
 getType ()
 Get type (from class/instance)
 setAllowNull ($a_value)
 Toggle null allowed status.
 isNullAllowed ()
 Is null currently allowed.
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self.

Protected Member Functions

 reset ()
 Init property defaults.

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

ilADTDefinition::__construct ( )

Constructor.

Returns
self

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

References reset().

{
$this->reset();
}

+ Here is the call graph for this function:

Member Function Documentation

ilADTDefinition::getType ( )

Get type (from class/instance)

Returns
string

Reimplemented in ilADTEnumDefinition.

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

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

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

+ Here is the caller graph for this function:

ilADTDefinition::isComparableTo ( ilADT  $a_adt)
abstract
ilADTDefinition::isNullAllowed ( )

Is null currently allowed.

Returns
bool

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

References $allow_null.

{
}
ilADTDefinition::reset ( )
protected

Init property defaults.

Reimplemented in ilADTGroupDefinition, ilADTEnumDefinition, ilADTFloatDefinition, and ilADTMultiEnumDefinition.

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

References setAllowNull().

Referenced by __construct().

{
$this->setAllowNull(true);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilADTDefinition::setAllowNull (   $a_value)

Toggle null allowed status.

Parameters
bool$a_value

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

Referenced by reset().

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

+ Here is the caller graph for this function:

Field Documentation

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: