Pluf Framework

Pluf Framework Commit Details


Date:2009-06-25 15:26:49 (15 years 5 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:b497e5b1a81f7602ff15aba86134afd29c20c7ad
Parents: 45186bf595f3786a8668e904dc00d6d46f77fa33
Message:Added hook on user deletion.

Changes:

File differences

src/Pluf/User.php
181181
182182
183183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
184207
185208
186209
......
192215
193216
194217
195
196
218
219
220
197221
198222
199223
*/
function preDelete()
{
/**
* [signal]
*
* Pluf_User::preDelete
*
* [sender]
*
* Pluf_User
*
* [description]
*
* This signal allows an application to perform special
* operations at the deletion of a user.
*
* [parameters]
*
* array('user' => $user)
*
*/
$params = array('user' => $this);
Pluf_Signal::send('Pluf_User::preDelete',
'Pluf_User', $params);
if (Pluf::f('pluf_use_rowpermission', false)) {
$_rpt = Pluf::factory('Pluf_RowPermission')->getSqlTable();
$sql = new Pluf_SQL('owner_class=%s AND owner_id=%s',
/**
* Set the password of a user.
*
* You need to manually save the user to store the password in the
* database. The algorithm supported is md5 at the moment.
* You need to manually save the user to store the password in the
* database. The supported algorithms are md5, crc32 and sha1,
* sha1 being the default.
*
* @param string New password
* @return bool Success

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.06285s using 13 queries.