| 1 | <?php |
||
| 8 | class User |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Columns in the table. |
||
| 13 | * |
||
| 14 | * @var integer $id primary key auto incremented. |
||
| 15 | */ |
||
| 16 | |||
| 17 | public $id; |
||
| 18 | public $username; |
||
| 19 | public $password; |
||
| 20 | public $email; |
||
| 21 | public $firstname; |
||
| 22 | public $lastname; |
||
| 23 | public $administrator; |
||
| 24 | public $enabled; |
||
| 25 | public $deleted; |
||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * Set the password. |
||
| 31 | * |
||
| 32 | * @param string $password the password to use. |
||
| 33 | * |
||
| 34 | * @return string return hashed password. |
||
| 35 | */ |
||
| 36 | 2 | public function hashPassword($password) |
|
| 40 | } |
||
| 41 |