Last change
on this file since 105 was
89,
checked in by fpvanagthoven, 14 years ago
|
Applications can now be loaded, however, description seems not to load.
|
File size:
689 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Description of Application |
---|
5 | * |
---|
6 | * @author fpvanagthoven |
---|
7 | */ |
---|
8 | class Application { |
---|
9 | |
---|
10 | public $id; |
---|
11 | public $title; |
---|
12 | public $description; |
---|
13 | public $style; |
---|
14 | |
---|
15 | public function __construct($id = null, $title = null, $description = null, $style = null) |
---|
16 | { |
---|
17 | $this->id = $id; |
---|
18 | $this->title = $title; |
---|
19 | $this->description = $description; |
---|
20 | $this->style = $style; |
---|
21 | } |
---|
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 | } |
---|
31 | |
---|
32 | } |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.