Change Details
| src/Pluf/User.php |
| 181 | 181 | */ |
| 182 | 182 | function preDelete() |
| 183 | 183 | { |
| 184 | /** |
| 185 | * [signal] |
| 186 | * |
| 187 | * Pluf_User::preDelete |
| 188 | * |
| 189 | * [sender] |
| 190 | * |
| 191 | * Pluf_User |
| 192 | * |
| 193 | * [description] |
| 194 | * |
| 195 | * This signal allows an application to perform special |
| 196 | * operations at the deletion of a user. |
| 197 | * |
| 198 | * [parameters] |
| 199 | * |
| 200 | * array('user' => $user) |
| 201 | * |
| 202 | */ |
| 203 | $params = array('user' => $this); |
| 204 | Pluf_Signal::send('Pluf_User::preDelete', |
| 205 | 'Pluf_User', $params); |
| 206 | |
| 184 | 207 | if (Pluf::f('pluf_use_rowpermission', false)) { |
| 185 | 208 | $_rpt = Pluf::factory('Pluf_RowPermission')->getSqlTable(); |
| 186 | 209 | $sql = new Pluf_SQL('owner_class=%s AND owner_id=%s', |
| ... | ... | |
| 192 | 215 | /** |
| 193 | 216 | * Set the password of a user. |
| 194 | 217 | * |
| 195 | | * You need to manually save the user to store the password in the |
| 196 | | * database. The algorithm supported is md5 at the moment. |
| 218 | * You need to manually save the user to store the password in the |
| 219 | * database. The supported algorithms are md5, crc32 and sha1, |
| 220 | * sha1 being the default. |
| 197 | 221 | * |
| 198 | 222 | * @param string New password |
| 199 | 223 | * @return bool Success |
Download the corresponding diff file