API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
& plgUserJoomla::_getUser | ( | $ | user, |
$ | options = array() |
||
) |
This method will return a user object
If options['autoregister'] is true, if the user doesn't exist yet he will be created
public
array | holds the user data |
array | array holding options (remember, autoregister, group) |
Références $acl, $config, $id, $user, JFactory::getACL(), JComponentHelper::getParams(), JUserHelper::getUserId(), jimport(), params, et JError::raiseWarning().
plgUserJoomla::onAfterDeleteUser | ( | $ | user, |
$ | succes, | ||
$ | msg | ||
) |
Remove all sessions for the user name
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 $db, $user, et JFactory::getDBO().
plgUserJoomla::onLoginUser | ( | $ | user, |
$ | options = array() |
||
) |
This method should handle any login logic and report back to the subject
public
array | holds the user data |
array | array holding options (remember, autoregister, group) |
Références $acl, $session, $user, JText::_(), JFactory::getACL(), JTable::getInstance(), JFactory::getSession(), JError::isError(), jimport(), JError::raiseWarning(), et JObject::set().
plgUserJoomla::onLogoutUser | ( | $ | user, |
$ | options = array() |
||
) |
This method should handle any logout logic and report back to the subject
public
array | holds the user data |
array | array holding options (client, ...) |
Références $session, $user, JTable::getInstance(), JFactory::getSession(), et JFactory::getUser().
plgUserJoomla::plgUserJoomla | ( | &$ | 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.