ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilADTMultiEnumPresentationBridge Class Reference
+ Inheritance diagram for ilADTMultiEnumPresentationBridge:
+ Collaboration diagram for ilADTMultiEnumPresentationBridge:

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 5 of file class.ilADTMultiEnumPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTMultiEnumPresentationBridge::getHTML ( )

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

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

12  : string
13  {
14  if (!$this->getADT()->isNull()) {
15  $res = array();
16 
17  $options = $this->getADT()->getCopyOfDefinition()->getOptions();
18  foreach ((array) $this->getADT()->getSelections() as $value) {
19  if (array_key_exists($value, $options)) {
20  $res[] = $this->decorate($options[$value]);
21  }
22  }
23 
24  return implode(", ", $res);
25  }
26  return '';
27  }
$res
Definition: ltiservices.php:69
decorate($a_value)
Decorate value.
+ Here is the call graph for this function:

◆ getSortable()

ilADTMultiEnumPresentationBridge::getSortable ( )

Definition at line 29 of file class.ilADTMultiEnumPresentationBridge.php.

References ilADTPresentationBridge\getADT().

30  {
31  if (!$this->getADT()->isNull()) {
32  return implode(";", (array) $this->getADT()->getSelections());
33  }
34  return '';
35  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTMultiEnumPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

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

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