1 | <?php |
||
3 | class InviteForm extends CFormModel |
||
|
|||
4 | { |
||
5 | /** |
||
6 | * @var $id int The User's ID that we are working with |
||
7 | */ |
||
8 | public $id = NULL; |
||
9 | |||
10 | /** |
||
11 | * @var $displayName string The user's requested display name |
||
12 | */ |
||
13 | public $username = NULL; |
||
14 | |||
15 | /** |
||
16 | * @var $email string |
||
17 | */ |
||
18 | public $email = NULL; |
||
19 | |||
20 | /** |
||
21 | * @var $password string The user's selected password |
||
22 | */ |
||
23 | public $password = NULL; |
||
24 | |||
25 | /** |
||
26 | * Validation Rules |
||
27 | * @return array |
||
28 | */ |
||
29 | public function rules() |
||
36 | |||
37 | /** |
||
38 | * Attribute labels |
||
39 | * @return array |
||
40 | */ |
||
41 | public function attributeLabels() |
||
42 | { |
||
43 | return array( |
||
44 | 'id' => Yii::t('ciims.models.InviteForm', 'ID'), |
||
45 | 'username' => Yii::t('ciims.models.InviteForm', 'Username'), |
||
46 | 'password' => Yii::t('ciims.models.InviteForm', 'Password'), |
||
47 | ); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Actually creates the users |
||
52 | * @return bool If the user was created |
||
53 | */ |
||
54 | public function acceptInvite() |
||
76 | } |
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.