Last change
on this file since 161 was
161,
checked in by jkraaijeveld, 13 years ago
|
Fixed typo in Respondent.php
|
File size:
537 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Description of Respondent |
---|
5 | * |
---|
6 | * @author jkraaijeveld |
---|
7 | */ |
---|
8 | class Respondent { |
---|
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.