Last change
on this file since 161 was
149,
checked in by jkraaijeveld, 13 years ago
|
Added missing classes for the database connection
|
File size:
609 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * AnswerSet is a collection of answers corresponding to a Session
|
---|
5 | *
|
---|
6 | */
|
---|
7 | class AnswerSet extends ResearchToolObject{
|
---|
8 | public $survey;
|
---|
9 | public $respondent;
|
---|
10 | public $answers;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Constructor for an AnswerSet object
|
---|
14 | * @param type $uid
|
---|
15 | * @param type $question
|
---|
16 | * @param type $values
|
---|
17 | */
|
---|
18 | public function __construct($uid=null, $survey=null, $respondent=null, $answers=null)
|
---|
19 | {
|
---|
20 | if(!isset($uid))
|
---|
21 | {
|
---|
22 | $uid = md5(uniqid(rand(), true));
|
---|
23 | }
|
---|
24 | $this->uid = $uid;
|
---|
25 | $this->survey = $survey;
|
---|
26 | $this->respondent = $respondent;
|
---|
27 | $this->answers = $answers;
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.