Pluf Framework

Sign in or create your account | Project List | Help

Pluf Framework Commit Details

Date:2009-06-25 22:26:49 (1 year 2 months ago)
Author:Loïc d'Anterroches
Commit:b497e5b1a81f7602ff15aba86134afd29c20c7ad
Message:Added hook on user deletion.

Files: src/Pluf/User.php (2 diffs)

Change Details

src/Pluf/User.php
181181     */
182182    function preDelete()
183183    {
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
184207        if (Pluf::f('pluf_use_rowpermission', false)) {
185208            $_rpt = Pluf::factory('Pluf_RowPermission')->getSqlTable();
186209            $sql = new Pluf_SQL('owner_class=%s AND owner_id=%s',
...... 
192215    /**
193216     * Set the password of a user.
194217     *
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.
197221     *
198222     * @param string New password
199223     * @return bool Success

Archive Download the corresponding diff file

Branches:
develop
master