ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilADTPresentationBridge Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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)

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

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

36  {
37  global $DIC;
38 
39  $this->lng = $DIC->language();
40 
41  $this->setADT($a_adt);
42  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ decorate()

◆ getADT()

ilADTPresentationBridge::getADT ( )

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

References $adt.

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

54  : ?ilADT
55  {
56  return $this->adt;
57  }
ADT base class.
Definition: class.ilADT.php:11
+ Here is the caller graph for this function:

◆ getHTML()

ilADTPresentationBridge::getHTML ( )
abstract

Referenced by getList().

+ Here is the caller graph for this function:

◆ getList()

ilADTPresentationBridge::getList ( )

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

References getHTML(), and getSortable().

59  : string
60  {
61  return $this->getHTML();
62  }
+ Here is the call graph for this function:

◆ getSortable()

ilADTPresentationBridge::getSortable ( )
abstract

Get sortable value presentation.

Returns

Referenced by getList().

+ Here is the caller graph for this function:

◆ isValidADT()

ilADTPresentationBridge::isValidADT ( ilADT  $a_adt)
abstractprotected

Referenced by __construct(), and setADT().

+ Here is the caller graph for this function:

◆ setADT()

ilADTPresentationBridge::setADT ( ilADT  $a_adt)
protected

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

References isValidADT().

Referenced by __construct().

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)
+ 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: