1 | <?php |
||
3 | class ForgotForm extends CFormModel |
||
|
|||
4 | { |
||
5 | /** |
||
6 | * @var string $email The user's email address |
||
7 | */ |
||
8 | public $email; |
||
9 | |||
10 | /** |
||
11 | * @var Users $_user The user's model |
||
12 | */ |
||
13 | private $_user = NULL; |
||
14 | |||
15 | /** |
||
16 | * Validation rules |
||
17 | * @return array |
||
18 | */ |
||
19 | public function rules() |
||
27 | |||
28 | public function attributeLabels() |
||
34 | |||
35 | /** |
||
36 | * Determines if we have a user in our database with that email address |
||
37 | * @param array $attributes |
||
38 | * @param array $params |
||
39 | * @return boolean |
||
40 | */ |
||
41 | public function exists($attributes, $params) |
||
53 | |||
54 | /** |
||
55 | * Initiates the password reset process on behalf of the user |
||
56 | * Generates a unique hash and an expiration time that the hash is valid up until (defaults to 15 minutes) |
||
57 | * This key will internally expire (but not be expunged) after that time |
||
58 | */ |
||
59 | public function initPasswordResetProcess() |
||
95 | } |
||
96 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.