source: Dev/branches/jos-branch/classes/Respondent.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: 563 bytes
Line 
1<?php
2
3/**
4 * Description of Respondent
5 *
6 * @author jkraaijeveld
7 */
8class Respondent extends ResearchToolObject {
9   public $name;
10   public $password;
11   
12   /**
13    * Constructor for a Respondent object
14    * @param type $uid
15    * @param type $name
16    * @param type $password
17    */
18   public function __construct($uid = null, $name = null, $password = null) {
19      if(!isset($uid))
20      {
21            $uid = md5(uniqid(rand(), true));
22      }
23     
24      $this->uid = $uid;
25      $this->name = $name;
26      $this->password = $password;
27   }
28   
29}
30
31?>
Note: See TracBrowser for help on using the repository browser.