Last change
on this file since 117 was
89,
checked in by fpvanagthoven, 14 years ago
|
Applications can now be loaded, however, description seems not to load.
|
File size:
689 bytes
|
Rev | Line | |
---|
[56] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Description of Application |
---|
| 5 | * |
---|
| 6 | * @author fpvanagthoven |
---|
| 7 | */ |
---|
| 8 | class Application { |
---|
[78] | 9 | |
---|
| 10 | public $id; |
---|
[75] | 11 | public $title; |
---|
| 12 | public $description; |
---|
| 13 | public $style; |
---|
[56] | 14 | |
---|
[78] | 15 | public function __construct($id = null, $title = null, $description = null, $style = null) |
---|
| 16 | { |
---|
| 17 | $this->id = $id; |
---|
[75] | 18 | $this->title = $title; |
---|
[78] | 19 | $this->description = $description; |
---|
| 20 | $this->style = $style; |
---|
[56] | 21 | } |
---|
[89] | 22 | |
---|
| 23 | public static function getApplication($info) |
---|
| 24 | { |
---|
| 25 | return new Application( |
---|
| 26 | $info['applicationID'], |
---|
| 27 | $info['applicationTitle'], |
---|
| 28 | $info['applicationDescription'], |
---|
| 29 | $info['applicationStyle']); |
---|
| 30 | } |
---|
[56] | 31 | |
---|
| 32 | } |
---|
| 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.