API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
plgUserExample::onAfterDeleteUser | ( | $ | user, |
$ | succes, | ||
$ | msg | ||
) |
Example store user method
Method is called after user data is deleted from the database
array | holds the user data |
boolean | true if user was succesfully stored in the database |
string | message |
Références $mainframe.
plgUserExample::onAfterStoreUser | ( | $ | user, |
$ | isnew, | ||
$ | success, | ||
$ | msg | ||
) |
Example store user method
Method is called after user data is stored in the database
array | holds the new user data |
boolean | true if a new user is stored |
boolean | true if user was succesfully stored in the database |
string | message |
Références $mainframe, et $user.
plgUserExample::onBeforeDeleteUser | ( | $ | user | ) |
Example store user method
Method is called before user data is deleted from the database
array | holds the user data |
Références $mainframe.
plgUserExample::onBeforeStoreUser | ( | $ | user, |
$ | isnew | ||
) |
Example store user method
Method is called before user data is stored in the database
array | holds the old user data |
boolean | true if a new user is stored |
Références $mainframe.
plgUserExample::onLoginUser | ( | $ | user, |
$ | options | ||
) |
This method should handle any login logic and report back to the subject
public
array | holds the user data |
array | extra options |
plgUserExample::onLogoutUser | ( | $ | user | ) |
This method should handle any logout logic and report back to the subject
public
array | holds the user data |
plgUserExample::plgUserExample | ( | &$ | subject, |
$ | config | ||
) |
Constructor
For php4 compatability we must not use the __constructor as a constructor for plugins because func_get_args ( void ) returns a copy of all passed arguments NOT references. This causes problems with cross-referencing necessary for the observer design pattern.
object | $subject | The object to observe |
array | $config | An array that holds the plugin configuration |
Références $config.