plugins:user_eventsTable of Contents
5.3 User Events for Plugin System5.3.1 OverviewIn a standard installation of Joomla! 1.5 we have several predefined events which, when triggered, call functions in the associated plugins. For more information on plugins, look here. The user events are divided into two parts. First we have the events used while authentication of a user takes place:
Second we have the events triggered during user management:
5.3.2 onLoginUser5.3.2.1 DescriptionThis event is triggered after the user is authenticated against the Joomla! user-base. If one plugin returns false, the entire authentication process fails. 5.3.2.2 Parameters
Two parameters: credentials, and remember. 5.3.2.3 Return ValueBoolean 5.3.2.4 Used in files
5.3.2.5 Examples
5.3.3 onLogoutUser5.3.3.1 DescriptionThis event is triggered before the user is logged out of the system. If one plugin returns false, the global logout fails. 5.3.3.2 Parameters
Array of credentials. Structure: 5.3.3.3 Return ValueBoolean 5.3.3.4 Used in files
5.3.3.5 Examples
5.3.4 onAuthenticate5.3.4.1 DescriptionThis event is triggered to verify that a set of login credentials is valid. 5.3.4.2 Parameters
Array of credentials. Structure: 5.3.4.3 Return ValueAn array of JAuthenticateResponse objects detailing the results of each called plugin, including success or failure. 5.3.4.4 Used in files
5.3.4.5 Examples
5.3.5 onAuthenticateFailure5.3.5.1 DescriptionThis event is triggered whenever a user authentication request is failed by any plugin. 5.3.5.2 ParametersTwo parameters. The credentials array for the user (see onAuthenticate), and the JAuthenticateResponse that caused the failure. 5.3.5.3 Return ValueUnknown. The return value appears to be ignored in any case. 5.3.5.4 Used in files
5.3.6 onBeforeStoreUser5.3.6.1 DescriptionThis event is triggered before a new user is stored in the database. 5.3.6.2 ParametersTwo parameters:
5.3.6.3 Return ValueNone 5.3.6.4 Used in files
5.3.6.5 Examples
5.3.7 onAfterStoreUser5.3.7.1 DescriptionThis event is triggered after a new user has been stored in the database. 5.3.7.2 ParametersTwo parameters:
5.3.7.3 Return ValueNone 5.3.7.4 Used in files
5.3.7.5 Examples
5.3.8 onBeforeDeleteUser5.3.8.1 DescriptionThe event is triggered when a user is about to be deleted from the system. 5.3.8.2 Parameters
An associative array containing user information. Structure: 5.3.8.3 Return ValueNone. 5.3.8.4 Used in files
5.3.8.5 Examples
5.3.9 onAfterDeleteUser5.3.9.1 DescriptionThe event is triggered after a user has been deleted from the system. 5.3.9.2 Parameters
Three parameters: user information, delete result, and error result. User information is an associative array. Structure: 5.3.9.3 Return ValueNone. 5.3.9.4 Used in files
5.3.9.5 Examples
|


