ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
ilADTPresentationBridge Class Reference

ADT presentation bridge base class. More...

+ Inheritance diagram for ilADTPresentationBridge:
+ Collaboration diagram for ilADTPresentationBridge:

Public Member Functions

 __construct (ilADT $a_adt)
 Constructor. More...
 
 getADT ()
 Get ADT. More...
 
 getList ()
 Get list presentation. More...
 
 getHTML ()
 Get HTML presentation. More...
 
 getSortable ()
 Get sortable value presentation. More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 Check if given ADT is valid. More...
 
 setADT (ilADT $a_adt)
 Set ADT. More...
 

Protected Attributes

 $adt
 

Detailed Description

ADT presentation bridge 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.ilADTPresentationBridge.php.

Constructor & Destructor Documentation

◆ __construct()

ilADTPresentationBridge::__construct ( ilADT  $a_adt)

Constructor.

Parameters
ilADT$a_adt
Returns
self

Definition at line 21 of file class.ilADTPresentationBridge.php.

22 {
23 $this->setADT($a_adt);
24 }

References setADT().

+ Here is the call graph for this function:

Member Function Documentation

◆ getADT()

◆ getHTML()

◆ getList()

ilADTPresentationBridge::getList ( )

Get list presentation.

Returns
string

Reimplemented in ilADTLocationPresentationBridge.

Definition at line 72 of file class.ilADTPresentationBridge.php.

73 {
74 return $this->getHTML();
75 }
getHTML()
Get HTML presentation.

References getHTML().

+ Here is the call graph for this function:

◆ getSortable()

◆ isValidADT()

ilADTPresentationBridge::isValidADT ( ilADT  $a_adt)
abstractprotected

Check if given ADT is valid.

:TODO: This could be avoided with type-specifc constructors :TODO: bridge base class?

Parameters
ilADT$a_adt

Reimplemented in ilADTBooleanPresentationBridge, ilADTDatePresentationBridge, ilADTDateTimePresentationBridge, ilADTEnumPresentationBridge, ilADTFloatPresentationBridge, ilADTGroupPresentationBridge, ilADTIntegerPresentationBridge, ilADTLocationPresentationBridge, ilADTMultiEnumPresentationBridge, ilADTMultiTextPresentationBridge, and ilADTTextPresentationBridge.

Referenced by setADT().

+ Here is the caller graph for this function:

◆ setADT()

ilADTPresentationBridge::setADT ( ilADT  $a_adt)
protected

Set ADT.

Exceptions
Exception
Parameters
ilADT$a_adt

Definition at line 47 of file class.ilADTPresentationBridge.php.

48 {
49 if(!$this->isValidADT($a_adt))
50 {
51 throw new Exception('ADTPresentationBridge Type mismatch.');
52 }
53
54 $this->adt = $a_adt;
55 }
isValidADT(ilADT $a_adt)
Check if given ADT is valid.

References isValidADT().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $adt

ilADTPresentationBridge::$adt
protected

Definition at line 13 of file class.ilADTPresentationBridge.php.

Referenced by getADT().


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