ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilADTPresentationBridge.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
12{
13 protected $adt; // [ilADT]
14
21 public function __construct(ilADT $a_adt)
22 {
23 $this->setADT($a_adt);
24 }
25
26
27 //
28 // properties
29 //
30
39 abstract protected function isValidADT(ilADT $a_adt);
40
47 protected function setADT(ilADT $a_adt)
48 {
49 if(!$this->isValidADT($a_adt))
50 {
51 throw new Exception('ADTPresentationBridge Type mismatch.');
52 }
53
54 $this->adt = $a_adt;
55 }
56
62 public function getADT()
63 {
64 return $this->adt;
65 }
66
72 public function getList()
73 {
74 return $this->getHTML();
75 }
76
82 abstract public function getHTML();
83
89 abstract public function getSortable();
90}
91
92?>
ADT presentation bridge base class.
__construct(ilADT $a_adt)
Constructor.
getSortable()
Get sortable value presentation.
isValidADT(ilADT $a_adt)
Check if given ADT is valid.
getHTML()
Get HTML presentation.
ADT base class.
Definition: class.ilADT.php:12