\PlgUserJoomla
Joomla User plugin
Synopsis
class PlgUserJoomla
extends JPlugin
{
- // Inherited members from JPlugin
- public JRegistry $params;
- protected $_name;
- protected $_type;
- protected $autoloadLanguage;
- // Inherited members from JEvent
- protected $_subject;
- // Inherited members from JObject
- protected $_errors;
- // methods
- public boolean onUserAfterDelete()
- public void onUserAfterSave()
- public boolean onUserLogin()
- public onUserLogout()
- protected _getUser()
- public boolean onUserAfterLogin()
- public boolean onUserAfterLogout()
- // Inherited methods from JPlugin
- public void __construct()
- public boolean loadLanguage()
- // Inherited methods from JEvent
- public void __construct()
- public mixed update()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
86 | Suck in the frontend registration emails here as well. Job for a rainy day. |
271 | : move this out of the plugin |
Members
protected
- $_errors
—
array
An array of error messages or Exception objects. - $_name
—
string
The name of the plugin - $_subject
—
Event object to observe. - $_type
—
string
The plugin type - $app
—
JApplicationCms
Application object - $autoloadLanguage
—
boolean
Affects constructor behavior. If true, language files will be loaded automatically. - $db
—
JDatabaseDriver
Database object
public
- $params
—
JRegistry
A JRegistry object holding the parameters for the plugin
Methods
protected
- _getUser() — This method will return a user object
public
- onUserAfterDelete() — Remove all sessions for the user name
- onUserAfterLogin() — We set the authentication cookie only after login is successfullly finished.
- onUserAfterLogout() — This is where we delete any authentication cookie when a user logs out
- onUserAfterSave() — Utility method to act on a user after it has been saved.
- onUserLogin() — This method should handle any login logic and report back to the subject
- onUserLogout() — This method should handle any logout logic and report back to the subject
Inherited from JPlugin
public
- loadLanguage() — Loads the plugin language file
Inherited from JEvent
public
- update() — Method to trigger events.
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.