source: Dev/trunk/classes/Answer.php @ 152

Last change on this file since 152 was 149, checked in by jkraaijeveld, 13 years ago

Added missing classes for the database connection

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.