ILIAS  release_8 Revision v8.24
ilADTMultiTextPresentationBridge Class Reference
+ Inheritance diagram for ilADTMultiTextPresentationBridge:
+ Collaboration diagram for ilADTMultiTextPresentationBridge:

Public Member Functions

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

Definition at line 5 of file class.ilADTMultiTextPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTMultiTextPresentationBridge::getHTML ( )

Reimplemented from ilADTPresentationBridge.

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

12 : string
13 {
14 if (!$this->getADT()->isNull()) {
15 $res = array();
16 foreach ($this->getADT()->getTextElements() as $item) {
17 if (trim($item)) {
18 $res[] = $this->decorate($item);
19 }
20 }
21 return implode(", ", $res);
22 }
23 return '';
24 }
$res
Definition: ltiservices.php:69

References $res, ilADTPresentationBridge\decorate(), and ilADTPresentationBridge\getADT().

+ Here is the call graph for this function:

◆ getSortable()

ilADTMultiTextPresentationBridge::getSortable ( )

Get sortable value presentation.

Returns

Reimplemented from ilADTPresentationBridge.

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

27 {
28 if (!$this->getADT()->isNull()) {
29 return implode(";", $this->getADT()->getTextElements());
30 }
31 return '';
32 }

References ilADTPresentationBridge\getADT().

+ Here is the call graph for this function:

◆ isValidADT()

ilADTMultiTextPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

Reimplemented from ilADTPresentationBridge.

Definition at line 7 of file class.ilADTMultiTextPresentationBridge.php.

7 : bool
8 {
9 return ($a_adt instanceof ilADTMultiText);
10 }

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