ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
 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 21 of file class.ilADTMultiTextPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTMultiTextPresentationBridge::getHTML ( )

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

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

28  : string
29  {
30  if (!$this->getADT()->isNull()) {
31  $res = array();
32  foreach ($this->getADT()->getTextElements() as $item) {
33  if (trim($item)) {
34  $res[] = $this->decorate($item);
35  }
36  }
37  return implode(", ", $res);
38  }
39  return '';
40  }
$res
Definition: ltiservices.php:66
decorate($a_value)
Decorate value.
+ Here is the call graph for this function:

◆ getSortable()

ilADTMultiTextPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT().

43  {
44  if (!$this->getADT()->isNull()) {
45  return implode(";", $this->getADT()->getTextElements());
46  }
47  return '';
48  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTMultiTextPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

23  : bool
24  {
25  return ($a_adt instanceof ilADTMultiText);
26  }

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