Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Description of Survey |
---|
5 | * |
---|
6 | * @author jkraaijeveld |
---|
7 | */ |
---|
8 | class Survey extends ResearchToolObject{ |
---|
9 | public $title; |
---|
10 | public $description; |
---|
11 | public $creator; |
---|
12 | public $questions; |
---|
13 | |
---|
14 | public function __construct($uid = null, $title = null, $description = null, $creator = null, $questions = null) { |
---|
15 | if(!isset($uid)) |
---|
16 | { |
---|
17 | $uid = md5(uniqid(rand(), true)); |
---|
18 | } |
---|
19 | $this->uid = $uid; |
---|
20 | $this->title = $title; |
---|
21 | $this->description = $description; |
---|
22 | $this->creator = $creator; |
---|
23 | $this->questions = $questions; |
---|
24 | } |
---|
25 | } |
---|
26 | |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.