ILIAS  release_7 Revision v7.30-3-g800a261c036
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...
 
 setDecoratorCallBack ($a_callback)
 Set decorator callback. More...
 

Protected Member Functions

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

Protected Attributes

 $adt
 
 $decorator
 

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

Reimplemented in ilADTLocalizedTextPresentationBridge.

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

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

References setADT().

+ Here is the call graph for this function:

Member Function Documentation

◆ decorate()

◆ getADT()

ilADTPresentationBridge::getADT ( )

Get ADT.

Returns
ilADT

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

References $adt.

Referenced by ilADTBooleanPresentationBridge\getHTML(), ilADTDatePresentationBridge\getHTML(), ilADTDateTimePresentationBridge\getHTML(), ilADTEnumPresentationBridge\getHTML(), ilADTExternalLinkPresentationBridge\getHTML(), ilADTFloatPresentationBridge\getHTML(), ilADTIntegerPresentationBridge\getHTML(), ilADTInternalLinkPresentationBridge\getHTML(), ilADTLocalizedTextPresentationBridge\getHTML(), ilADTLocationPresentationBridge\getHTML(), ilADTMultiEnumPresentationBridge\getHTML(), ilADTMultiTextPresentationBridge\getHTML(), ilADTTextPresentationBridge\getHTML(), ilADTLocationPresentationBridge\getList(), ilADTBooleanPresentationBridge\getSortable(), ilADTDatePresentationBridge\getSortable(), ilADTDateTimePresentationBridge\getSortable(), ilADTEnumPresentationBridge\getSortable(), ilADTExternalLinkPresentationBridge\getSortable(), ilADTFloatPresentationBridge\getSortable(), ilADTIntegerPresentationBridge\getSortable(), ilADTInternalLinkPresentationBridge\getSortable(), ilADTLocalizedTextPresentationBridge\getSortable(), ilADTLocationPresentationBridge\getSortable(), ilADTMultiEnumPresentationBridge\getSortable(), ilADTMultiTextPresentationBridge\getSortable(), ilADTTextPresentationBridge\getSortable(), and ilADTGroupPresentationBridge\prepareElements().

+ Here is the caller graph for this function:

◆ 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

◆ setADT()

ilADTPresentationBridge::setADT ( ilADT  $a_adt)
protected

Set ADT.

Exceptions
Exception
Parameters
ilADT$a_adt

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

49 {
50 if (!$this->isValidADT($a_adt)) {
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:

◆ setDecoratorCallBack()

ilADTPresentationBridge::setDecoratorCallBack (   $a_callback)

Set decorator callback.

Parameters
string | array$a_callback

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

97 {
98 $this->decorator = $a_callback;
99 }

Field Documentation

◆ $adt

ilADTPresentationBridge::$adt
protected

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

Referenced by getADT().

◆ $decorator

ilADTPresentationBridge::$decorator
protected

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


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