Last change
on this file since 157 was
157,
checked in by jkraaijeveld, 13 years ago
|
Edited the pipelineeditor slightly so it does not error when adding a Survey.
|
File size:
683 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Description of Answer |
---|
5 | * |
---|
6 | * @author jkraaijeveld |
---|
7 | */ |
---|
8 | class Answer extends ResearchToolObject { |
---|
9 | public $question; |
---|
10 | public $values; |
---|
11 | |
---|
12 | /** |
---|
13 | * Constructor for an Answer object |
---|
14 | * @param type $uid : The uid of the Answer object. |
---|
15 | * @param type $question : The Question object this Answer answers. |
---|
16 | * @param type $values : An array of strings, containing the answers. |
---|
17 | */ |
---|
18 | public function __construct($uid = null, $question = null, $values = null) { |
---|
19 | if(!isset($uid)) |
---|
20 | { |
---|
21 | $uid = md5(uniqid(rand(), true)); |
---|
22 | } |
---|
23 | $this->uid = $uid; |
---|
24 | $this->question = $question; |
---|
25 | $this->values = $values; |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.