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

Class ilADTLocalizedTextPresentationBridge. More...

+ Inheritance diagram for ilADTLocalizedTextPresentationBridge:
+ Collaboration diagram for ilADTLocalizedTextPresentationBridge:

Public Member Functions

 __construct (ilADT $a_adt)
 
 getHTML ()
 
 getSortable ()
 
- Public Member Functions inherited from ilADTTextPresentationBridge
 getHTML ()
 
 getSortable ()
 
- Public Member Functions inherited from ilADTPresentationBridge
 __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)
 
- Protected Member Functions inherited from ilADTTextPresentationBridge
 isValidADT (ilADT $a_adt)
 
- Protected Member Functions inherited from ilADTPresentationBridge
 isValidADT (ilADT $a_adt)
 
 setADT (ilADT $a_adt)
 
 decorate ($a_value)
 Decorate value. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilADTPresentationBridge
ilADT $adt
 
 $decorator
 
ilLanguage $lng
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilADTLocalizedTextPresentationBridge::__construct ( ilADT  $a_adt)

Definition at line 12 of file class.ilADTLocalizedTextPresentationBridge.php.

References ILIAS\GlobalScreen\Provider\__construct().

13  {
14  parent::__construct($a_adt);
15  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilADTLocalizedTextPresentationBridge::getHTML ( )

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

References ilADTPresentationBridge\decorate(), ilADTPresentationBridge\getADT(), and ILIAS\Repository\lng().

22  : string
23  {
24  if (!$this->getADT()->isNull()) {
25  return $this->decorate(nl2br($this->getADT()->getTextForLanguage($this->lng->getLangKey())));
26  }
27  return '';
28  }
decorate($a_value)
Decorate value.
+ Here is the call graph for this function:

◆ getSortable()

ilADTLocalizedTextPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT(), and ILIAS\Repository\lng().

31  {
32  if (!$this->getADT()->isNull()) {
33  return strtolower($this->getADT()->getTextForLanguage($this->lng->getLangKey()));
34  }
35  return '';
36  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTLocalizedTextPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

Definition at line 17 of file class.ilADTLocalizedTextPresentationBridge.php.

17  : bool
18  {
19  return $a_adt instanceof ilADTLocalizedText;
20  }
Class ilADTLocalizedText.

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