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

Public Member Functions

 getHTML ($delimiter="<br />")
 getSortable ($delimiter=";")
- Public Member Functions inherited from ilADTPresentationBridge
 __construct (ilADT $a_adt)
 Constructor.
 getADT ()
 Get ADT.
 getList ()
 Get list presentation.
 getHTML ()
 Get HTML presentation.
 getSortable ()
 Get sortable value presentation.

Protected Member Functions

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

Protected Attributes

 $elements
- Protected Attributes inherited from ilADTPresentationBridge
 $adt

Detailed Description

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

Member Function Documentation

ilADTGroupPresentationBridge::getHTML (   $delimiter = "<br />")

Definition at line 32 of file class.ilADTGroupPresentationBridge.php.

References $res, and prepareElements().

{
$res = array();
$this->prepareElements();
foreach($this->elements as $element)
{
$res[] = $element->getHTML();
}
if(sizeof($res))
{
return implode($delimiter, $res);
}
}

+ Here is the call graph for this function:

ilADTGroupPresentationBridge::getSortable (   $delimiter = ";")

Definition at line 48 of file class.ilADTGroupPresentationBridge.php.

References $res, and prepareElements().

{
$res = array();
$this->prepareElements();
foreach($this->elements as $element)
{
$res[] = $element->getSortable();
}
if(sizeof($res))
{
return implode($delimiter, $res);
}
}

+ Here is the call graph for this function:

ilADTGroupPresentationBridge::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 9 of file class.ilADTGroupPresentationBridge.php.

{
return ($a_adt instanceof ilADTGroup);
}
ilADTGroupPresentationBridge::prepareElements ( )
protected

Definition at line 14 of file class.ilADTGroupPresentationBridge.php.

References ilADTPresentationBridge\getADT(), and ilADTFactory\getInstance().

Referenced by getHTML(), and getSortable().

{
if(sizeof($this->elements))
{
return;
}
$this->elements = array();
// convert ADTs to presentation bridges
foreach($this->getADT()->getElements() as $name => $element)
{
$this->elements[$name] = $factory->getPresentationBridgeForInstance($element);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilADTGroupPresentationBridge::$elements
protected

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


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