source: Dev/branches/jos-branch/classes/Answer.php @ 141

Last change on this file since 141 was 141, checked in by jkraaijeveld, 14 years ago

Started work on Answer and AnswerConnector?.

note to self: (Session -> AnswerSet? (SurveyId?, Respondent, Answer*)

File size: 562 bytes
Line 
1<?php
2
3/**
4 * Description of Answer
5 *
6 * @author jkraaijeveld
7 */
8class Answer extends ResearchToolObject {
9    public $question;
10    public $values;
11   
12    /**
13     * Constructor for an Answer object
14     * @param type $uid
15     * @param type $question
16     * @param type $values
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.