Last change
on this file since 122 was
122,
checked in by jkraaijeveld, 14 years ago
|
Started on a slight revamp of the database connection. Branch is not usable yet.
|
File size:
699 bytes
|
Rev | Line | |
---|
[122] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Description of Application |
---|
| 5 | * |
---|
| 6 | * @author fpvanagthoven |
---|
| 7 | */ |
---|
| 8 | class Application extends ResearchToolObject{ |
---|
| 9 | |
---|
| 10 | public $title; |
---|
| 11 | public $description; |
---|
| 12 | public $style; |
---|
| 13 | |
---|
| 14 | public function __construct($id = null, $title = null, $description = null, $style = null) |
---|
| 15 | { |
---|
| 16 | $this->id = $id; |
---|
| 17 | $this->title = $title; |
---|
| 18 | $this->description = $description; |
---|
| 19 | $this->style = $style; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | public static function getApplication($info) |
---|
| 23 | { |
---|
| 24 | return new Application( |
---|
| 25 | $info['applicationID'], |
---|
| 26 | $info['applicationTitle'], |
---|
| 27 | $info['applicationDescription'], |
---|
| 28 | $info['applicationStyle']); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | } |
---|
| 32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.