ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 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.ilADTMultiEnumPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTMultiEnumPresentationBridge::getHTML ( )

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

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

13  {
14  if(!$this->getADT()->isNull())
15  {
16  $res = array();
17 
18  $options = $this->getADT()->getCopyOfDefinition()->getOptions();
19  foreach($this->getADT()->getSelections() as $value)
20  {
21  if(array_key_exists($value, $options))
22  {
23  $res[] = $this->decorate($options[$value]);
24  }
25  }
26 
27  return implode(", ", $res);
28  }
29  }
decorate($a_value)
Decorate value.
if(!is_array($argv)) $options
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getSortable()

ilADTMultiEnumPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT().

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

◆ isValidADT()

ilADTMultiEnumPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

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

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