ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilADTMultiEnumPresentationBridge Class Reference
+ Inheritance diagram for ilADTMultiEnumPresentationBridge:
+ Collaboration diagram for ilADTMultiEnumPresentationBridge:

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

Member Function Documentation

◆ getHTML()

ilADTMultiEnumPresentationBridge::getHTML ( )

Reimplemented from ilADTPresentationBridge.

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

28 : string
29 {
30 if (!$this->getADT()->isNull()) {
31 $res = array();
32
33 $options = $this->getADT()->getCopyOfDefinition()->getOptions();
34 foreach ((array) $this->getADT()->getSelections() as $value) {
35 if (array_key_exists($value, $options)) {
36 $res[] = $this->decorate($options[$value]);
37 }
38 }
39
40 return implode(", ", $res);
41 }
42 return '';
43 }
$res
Definition: ltiservices.php:69

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

+ Here is the call graph for this function:

◆ getSortable()

ilADTMultiEnumPresentationBridge::getSortable ( )

Get sortable value presentation.

Returns

Reimplemented from ilADTPresentationBridge.

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

46 {
47 if (!$this->getADT()->isNull()) {
48 return implode(";", (array) $this->getADT()->getSelections());
49 }
50 return '';
51 }

References ilADTPresentationBridge\getADT().

+ Here is the call graph for this function:

◆ isValidADT()

ilADTMultiEnumPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

Reimplemented from ilADTPresentationBridge.

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

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

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