ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilADTEnumPresentationBridge Class Reference
+ Inheritance diagram for ilADTEnumPresentationBridge:
+ Collaboration diagram for ilADTEnumPresentationBridge:

Public Member Functions

 getHTML ()
 Get HTML presentation.
 getSortable ()
 Get sortable value presentation.
- Public Member Functions inherited from ilADTPresentationBridge
 __construct (ilADT $a_adt)
 Constructor.
 getADT ()
 Get ADT.
 getList ()
 Get list presentation.

Protected Member Functions

 isValidADT (ilADT $a_adt)
 Check if given ADT is valid.
- Protected Member Functions inherited from ilADTPresentationBridge
 setADT (ilADT $a_adt)
 Set ADT.

Additional Inherited Members

- Protected Attributes inherited from ilADTPresentationBridge
 $adt

Detailed Description

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

Member Function Documentation

ilADTEnumPresentationBridge::getHTML ( )

Get HTML presentation.

Returns
string

Reimplemented from ilADTPresentationBridge.

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

References $options, and ilADTPresentationBridge\getADT().

{
if(!$this->getADT()->isNull())
{
$options = $this->getADT()->getCopyOfDefinition()->getOptions();
return $options[$this->getADT()->getSelection()];
}
}

+ Here is the call graph for this function:

ilADTEnumPresentationBridge::getSortable ( )

Get sortable value presentation.

Returns
mixed

Reimplemented from ilADTPresentationBridge.

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

References ilADTPresentationBridge\getADT().

{
if(!$this->getADT()->isNull())
{
return $this->getADT()->getSelection();
}
}

+ Here is the call graph for this function:

ilADTEnumPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

Check if given ADT is valid.

:TODO: This could be avoided with type-specifc constructors :TODO: bridge base class?

Parameters
ilADT$a_adt

Reimplemented from ilADTPresentationBridge.

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

{
return ($a_adt instanceof ilADTEnum);
}

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