ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilADTMultiTextPresentationBridge Class Reference
+ Inheritance diagram for ilADTMultiTextPresentationBridge:
+ Collaboration diagram for ilADTMultiTextPresentationBridge:

Public Member Functions

 getHTML ()
 
 getSortable ()
 
- Public Member Functions inherited from ilADTPresentationBridge
 __construct (ilADT $a_adt)
 Constructor. More...
 
 getADT ()
 Get ADT. More...
 
 getList ()
 Get list presentation. More...
 
 getHTML ()
 Get HTML presentation. More...
 
 getSortable ()
 Get sortable value presentation. More...
 
 setDecoratorCallBack ($a_callback)
 Set decorator callback. More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 
- Protected Member Functions inherited from ilADTPresentationBridge
 isValidADT (ilADT $a_adt)
 Check if given ADT is valid. More...
 
 setADT (ilADT $a_adt)
 Set ADT. More...
 
 decorate ($a_value)
 Decorate value. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilADTPresentationBridge
 $adt
 
 $decorator
 

Detailed Description

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

Member Function Documentation

◆ getHTML()

ilADTMultiTextPresentationBridge::getHTML ( )

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

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

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  }
decorate($a_value)
Decorate value.
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getSortable()

ilADTMultiTextPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT().

26  {
27  if (!$this->getADT()->isNull()) {
28  return implode(";", $this->getADT()->getTextElements());
29  }
30  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTMultiTextPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

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

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