Last change
on this file since 297 was
187,
checked in by jkraaijeveld, 13 years ago
|
Cleaned up some mess regarding lazy evaluation: classes without references no longer require a method evaluate(). Rather, ResearchToolObject? has a plain evaluate returning true in this case. Classes with references should override this method.
|
File size:
907 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Description of Application |
---|
5 | * |
---|
6 | * @author jkraaijeveld |
---|
7 | */ |
---|
8 | class Application extends ResearchToolObject{ |
---|
9 | |
---|
10 | public $title; |
---|
11 | public $description; |
---|
12 | public $style; |
---|
13 | |
---|
14 | /** |
---|
15 | * Constructor for an Application object |
---|
16 | * @param type $uid : The uid of the Application object. |
---|
17 | * @param type $title: The title of the Application. |
---|
18 | * @param type $description: The description of the Application. |
---|
19 | * @param type $style: The style of the Application. |
---|
20 | */ |
---|
21 | public function __construct($uid = null, $title = null, $description = null, $style = null) |
---|
22 | { |
---|
23 | if(!isset ($uid)) |
---|
24 | { |
---|
25 | $uid = md5(uniqid(rand(), true)); |
---|
26 | } |
---|
27 | $this->uid = $uid; |
---|
28 | $this->title = $title; |
---|
29 | $this->description = $description; |
---|
30 | $this->style = $style; |
---|
31 | } |
---|
32 | |
---|
33 | public function evaluate() |
---|
34 | { |
---|
35 | //Do nothing, there are no references in application. |
---|
36 | return true; |
---|
37 | } |
---|
38 | } |
---|
39 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.