1 | <?php |
||
21 | class PendingUser extends User |
||
22 | { |
||
23 | protected $intData = array(); |
||
24 | |||
25 | public function getHash() |
||
29 | |||
30 | public function getRegistrationTime() |
||
34 | |||
35 | /** |
||
36 | * Is this user in the Group or a child of that group? |
||
37 | * |
||
38 | * @param string $name The name of the group to check if the user is in |
||
39 | * |
||
40 | * @return boolean True if the user is in the group, false otherwise |
||
41 | */ |
||
42 | public function isInGroupNamed($name) |
||
46 | |||
47 | /** |
||
48 | * The email address for the user |
||
49 | * |
||
50 | * @return string The user's email address |
||
51 | */ |
||
52 | public function getEmail() |
||
60 | |||
61 | public function __get($propName) |
||
69 | |||
70 | public function __set($propName, $value) |
||
74 | |||
75 | /** |
||
76 | * The last name for the user |
||
77 | * |
||
78 | * @return string The user's last name |
||
79 | */ |
||
80 | public function getLastName() |
||
88 | |||
89 | /** |
||
90 | * Get the user's password as specified during registration |
||
91 | * |
||
92 | * We need the ability to obtain the user's unhashed plain text password to allow for it to be sent |
||
93 | * to the correct backend which will hash it |
||
94 | * |
||
95 | * @return boolean|string The current password |
||
96 | */ |
||
97 | public function getPassword() |
||
101 | |||
102 | /** |
||
103 | * The supplemental login types that the user can use to login |
||
104 | * |
||
105 | * @return array The user's login providers |
||
106 | */ |
||
107 | public function getLoginProviders() |
||
115 | |||
116 | /** |
||
117 | * Add a supplemental login type that the user can use to login |
||
118 | * |
||
119 | * @param string $provider The hostname for the provider |
||
120 | * |
||
121 | * @return true|false true if the addition worked, false otherwise |
||
122 | */ |
||
123 | public function addLoginProvider($provider) |
||
134 | |||
135 | /** |
||
136 | * Set the user's email address |
||
137 | * |
||
138 | * @param string $email The user's new email address |
||
139 | * |
||
140 | * @return boolean true if the user's email address was changed, false otherwise |
||
141 | */ |
||
142 | public function setEmail($email) |
||
147 | |||
148 | /** |
||
149 | * Set the user's given (first) name |
||
150 | * |
||
151 | * @param string $givenName The user's new given name |
||
152 | * |
||
153 | * @return boolean true if the user's given name was changed, false otherwise |
||
154 | */ |
||
155 | public function setGivenName($givenName) |
||
160 | |||
161 | /** |
||
162 | * Set the user's last name |
||
163 | * |
||
164 | * @param string $sn The user's new last name |
||
165 | * |
||
166 | * @return boolean true if the user's last name was changed, false otherwise |
||
167 | */ |
||
168 | public function setLastName($sn) |
||
173 | |||
174 | /** |
||
175 | * Serialize the user data into a format usable by the json_encode method |
||
176 | * |
||
177 | * @return array A simple keyed array representing the user |
||
178 | */ |
||
179 | public function jsonSerialize() |
||
193 | |||
194 | public function sendEmail() |
||
214 | |||
215 | public function delete() |
||
218 | } |
||
219 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
220 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.