Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

Found 1 of 138 records in table Wiki
Now Showing 1 of 1

Current Record: beforeRegister



beforeRegister() Trigger

A trigger that can be implemented in the Application Delegate Class or the Table Delegate Class?, to be executed before the registration form is saved. This can be used to perform some custom actions like emailing the administrator.


function beforeRegister( Dataface_Record &$record ) : mixed


Name Description
&$record A Dataface_Record object encapsulating the record that is being inserted in the users table for this registration.
returns Mixed. If this method returns a PEAR_Error object, then registration will fail with an error.


class conf_ApplicationDelegate {
    function beforeRegister(&$record){
        // mail the admin to let him know that the registration is occurring.
        mail('', 'New registration', 'A new user '.$record->val('username').' has registered);

See Also

blog comments powered by Disqus
Powered by Xataface
(c) 2005-2018 All rights reserved