Total Complexity | 2 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class User extends ActiveRecordModel |
||
11 | { |
||
12 | /** |
||
13 | * @var string $tableName name of the database table. |
||
14 | */ |
||
15 | protected $tableName = "User"; |
||
16 | |||
17 | /** |
||
18 | * Columns in the table. |
||
19 | * |
||
20 | * @var integer $id primary key auto incremented. |
||
21 | */ |
||
22 | public $id; |
||
23 | public $acronym; |
||
24 | public $password; |
||
25 | public $info; |
||
26 | /** |
||
27 | * Set the password. |
||
28 | * |
||
29 | * @param string $password the password to use. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function setPassword($password) |
||
36 | } |
||
37 | |||
38 | |||
39 | /** |
||
40 | * Verify the acronym and the password, if successful the object contains |
||
41 | * all details from the database row. |
||
42 | * |
||
43 | * @param string $acronym acronym to check. |
||
44 | * @param string $password the password to use. |
||
45 | * |
||
46 | * @return boolean true if acronym and password matches, else false. |
||
47 | */ |
||
48 | public function verifyPassword($acronym, $password) |
||
54 |