ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilADTEnumPresentationBridge Class Reference
+ Inheritance diagram for ilADTEnumPresentationBridge:
+ Collaboration diagram for ilADTEnumPresentationBridge:

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.ilADTEnumPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTEnumPresentationBridge::getHTML ( )

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

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

13  {
14  if (!$this->getADT()->isNull()) {
15  $options = $this->getADT()->getCopyOfDefinition()->getOptions();
16  $value = $this->getADT()->getSelection();
17  if (array_key_exists($value, $options)) {
18  return $this->decorate($options[$value]);
19  }
20  }
21  }
decorate($a_value)
Decorate value.
+ Here is the call graph for this function:

◆ getSortable()

ilADTEnumPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT().

24  {
25  if (!$this->getADT()->isNull()) {
26  return $this->getADT()->getSelection();
27  }
28  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTEnumPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

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

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