ILIAS  release_8 Revision v8.24
ilADTLocalizedTextPresentationBridge Class Reference

Class ilADTLocalizedTextPresentationBridge. More...

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

Public Member Functions

 __construct (ilADT $a_adt)
 
 getHTML ()
 
 getSortable ()
 Get sortable value presentation. More...
 
 getHTML ()
 
 getSortable ()
 Get sortable value presentation. More...
 
- 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)
 
 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)

Reimplemented from ilADTPresentationBridge.

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

13 {
14 parent::__construct($a_adt);
15 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilADTLocalizedTextPresentationBridge::getHTML ( )

Reimplemented from ilADTTextPresentationBridge.

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

22 : string
23 {
24 if (!$this->getADT()->isNull()) {
25 return $this->decorate(nl2br($this->getADT()->getTextForLanguage($this->lng->getLangKey())));
26 }
27 return '';
28 }

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

+ Here is the call graph for this function:

◆ getSortable()

ilADTLocalizedTextPresentationBridge::getSortable ( )

Get sortable value presentation.

Returns

Reimplemented from ilADTTextPresentationBridge.

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

31 {
32 if (!$this->getADT()->isNull()) {
33 return strtolower($this->getADT()->getTextForLanguage($this->lng->getLangKey()));
34 }
35 return '';
36 }

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

+ Here is the call graph for this function:

◆ isValidADT()

ilADTLocalizedTextPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

Reimplemented from ilADTTextPresentationBridge.

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: