ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilADTPresentationBridge Class Reference

ADT presentation bridge base class. More...

+ Inheritance diagram for ilADTPresentationBridge:
+ Collaboration diagram for ilADTPresentationBridge:

Public Member Functions

 __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)
 Check if given ADT is valid. More...
 
 setADT (ilADT $a_adt)
 Set ADT. More...
 

Protected Attributes

 $adt
 

Detailed Description

ADT presentation bridge base class.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 11 of file class.ilADTPresentationBridge.php.

Constructor & Destructor Documentation

◆ __construct()

ilADTPresentationBridge::__construct ( ilADT  $a_adt)

Constructor.

Parameters
ilADT$a_adt
Returns
self

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

References isValidADT(), and setADT().

22  {
23  $this->setADT($a_adt);
24  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getADT()

◆ getHTML()

ilADTPresentationBridge::getHTML ( )
abstract

Get HTML presentation.

Returns
string

Referenced by getList().

+ Here is the caller graph for this function:

◆ getList()

ilADTPresentationBridge::getList ( )

Get list presentation.

Returns
string

Definition at line 72 of file class.ilADTPresentationBridge.php.

References getHTML(), and getSortable().

73  {
74  return $this->getHTML();
75  }
getHTML()
Get HTML presentation.
+ Here is the call graph for this function:

◆ getSortable()

ilADTPresentationBridge::getSortable ( )
abstract

Get sortable value presentation.

Returns
mixed

Referenced by getList().

+ Here is the caller graph for this function:

◆ isValidADT()

ilADTPresentationBridge::isValidADT ( ilADT  $a_adt)
abstractprotected

Check if given ADT is valid.

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

Parameters
ilADT$a_adt

Referenced by __construct(), and setADT().

+ Here is the caller graph for this function:

◆ setADT()

ilADTPresentationBridge::setADT ( ilADT  $a_adt)
protected

Set ADT.

Exceptions
Exception
Parameters
ilADT$a_adt

Definition at line 47 of file class.ilADTPresentationBridge.php.

References isValidADT().

Referenced by __construct().

48  {
49  if(!$this->isValidADT($a_adt))
50  {
51  throw new Exception('ADTPresentationBridge Type mismatch.');
52  }
53 
54  $this->adt = $a_adt;
55  }
isValidADT(ilADT $a_adt)
Check if given ADT is valid.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $adt

ilADTPresentationBridge::$adt
protected

Definition at line 13 of file class.ilADTPresentationBridge.php.

Referenced by getADT().


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