ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilADTPresentationBridge Class Reference

ADT presentation bridge base class. More...

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

Public Member Functions

 __construct (ilADT $a_adt)
 
 getADT ()
 
 getList ()
 
 getHTML ()
 
 getSortable ()
 Get sortable value presentation. More...
 
 setDecoratorCallBack (?array $a_callback)
 Takes as input an array consisting of the object that the method that should be called back to belongs to, and a string with the name of the method. More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 
 setADT (ilADT $a_adt)
 
 decorate ($a_value)
 Decorate value. More...
 

Protected Attributes

ilADT $adt
 
 $decorator
 
ilLanguage $lng
 

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

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

Constructor & Destructor Documentation

◆ __construct()

ilADTPresentationBridge::__construct ( ilADT  $a_adt)

Reimplemented in ilADTInternalLinkPresentationBridge, and ilADTLocalizedTextPresentationBridge.

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

36 {
37 global $DIC;
38
39 $this->lng = $DIC->language();
40
41 $this->setADT($a_adt);
42 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Repository\lng(), and setADT().

+ Here is the call graph for this function:

Member Function Documentation

◆ decorate()

◆ getADT()

ilADTPresentationBridge::getADT ( )

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

54 : ?ilADT
55 {
56 return $this->adt;
57 }
ADT base class.
Definition: class.ilADT.php:26

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(), ilADTLocalizedTextPresentationBridge\getTextForCurrentLanguageIfAvailable(), and ilADTGroupPresentationBridge\prepareElements().

+ Here is the caller graph for this function:

◆ getHTML()

◆ getList()

ilADTPresentationBridge::getList ( )

Reimplemented in ilADTLocationPresentationBridge.

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

59 : string
60 {
61 return $this->getHTML();
62 }

References getHTML().

Referenced by ILIAS\AdvancedMetaData\Services\SubObjectModes\DataTable\Supplier\initData().

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

◆ getSortable()

◆ isValidADT()

◆ setADT()

ilADTPresentationBridge::setADT ( ilADT  $a_adt)
protected

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

46 : void
47 {
48 if (!$this->isValidADT($a_adt)) {
49 throw new InvalidArgumentException('ADTPresentationBridge Type mismatch.');
50 }
51 $this->adt = $a_adt;
52 }
isValidADT(ilADT $a_adt)

References isValidADT().

Referenced by __construct().

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

◆ setDecoratorCallBack()

ilADTPresentationBridge::setDecoratorCallBack ( ?array  $a_callback)

Takes as input an array consisting of the object that the method that should be called back to belongs to, and a string with the name of the method.

Parameters
null|array{0ilObject, 1: string} $a_callback

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

78 : void
79 {
80 $this->decorator = $a_callback;
81 }

Field Documentation

◆ $adt

ilADT ilADTPresentationBridge::$adt
protected

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

Referenced by getADT().

◆ $decorator

ilADTPresentationBridge::$decorator
protected

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

◆ $lng

ilLanguage ilADTPresentationBridge::$lng
protected

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


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