ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
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. More...
 
 getADT ()
 Get ADT. More...
 
 getList ()
 Get list presentation. More...
 
 getHTML ()
 Get HTML presentation. More...
 
 getSortable ()
 Get sortable value presentation. More...
 

Protected Member Functions

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

Protected Attributes

 $elements
 
- Protected Attributes inherited from ilADTPresentationBridge
 $adt
 

Detailed Description

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

Member Function Documentation

◆ getHTML()

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

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

References $res, and prepareElements().

33  {
34  $res = array();
35 
36  $this->prepareElements();
37  foreach($this->elements as $element)
38  {
39  $res[] = $element->getHTML();
40  }
41 
42  if(sizeof($res))
43  {
44  return implode($delimiter, $res);
45  }
46  }
+ Here is the call graph for this function:

◆ getSortable()

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

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

References $res, and prepareElements().

49  {
50  $res = array();
51 
52  $this->prepareElements();
53  foreach($this->elements as $element)
54  {
55  $res[] = $element->getSortable();
56  }
57 
58  if(sizeof($res))
59  {
60  return implode($delimiter, $res);
61  }
62  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTGroupPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

10  {
11  return ($a_adt instanceof ilADTGroup);
12  }

◆ prepareElements()

ilADTGroupPresentationBridge::prepareElements ( )
protected

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

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

Referenced by getHTML(), and getSortable().

15  {
16  if(sizeof($this->elements))
17  {
18  return;
19  }
20 
21  $this->elements = array();
22  $factory = ilADTFactory::getInstance();
23 
24  // convert ADTs to presentation bridges
25 
26  foreach($this->getADT()->getElements() as $name => $element)
27  {
28  $this->elements[$name] = $factory->getPresentationBridgeForInstance($element);
29  }
30  }
static getInstance()
Get singleton.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $elements

ilADTGroupPresentationBridge::$elements
protected

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


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