Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
onUserAfterDelete ($user, $succes, $msg) | |
onUserAfterSave ($user, $isnew, $success, $msg) | |
onUserLogin ($user, $options=array()) | |
onUserLogout ($user, $options=array()) | |
Fonctions membres publiques inherited from JPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension= '', $basePath=JPATH_ADMINISTRATOR) | |
Fonctions membres publiques inherited from JEvent | |
__construct (&$subject) | |
update (&$args) | |
Fonctions membres publiques inherited from JObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
toString () |
Fonctions membres protégées | |
_getUser ($user, $options=array()) |
Additional Inherited Members | |
Attributs publics inherited from JPlugin | |
$params = null | |
Attributs protégés inherited from JPlugin | |
$_name = null | |
$_type = null | |
Attributs protégés inherited from JEvent | |
$_subject = null | |
Attributs protégés inherited from JObject | |
$_errors = array() |
|
protected |
This method will return a user object
If options['autoregister'] is true, if the user doesn't exist yet he will be created
array | $user | Holds the user data. |
array | $options | Array holding options (remember, autoregister, group). |
Références $config, $id, $options, $user, JFactory\getACL(), JUser\getInstance(), JComponentHelper\getParams(), JUserHelper\getUserId(), jimport(), et JError\raiseWarning().
plgUserJoomla::onUserAfterDelete | ( | $user, | |
$succes, | |||
$msg | |||
) |
Remove all sessions for the user name
Method is called after user data is deleted from the database
array | $user | Holds the user data |
boolean | $succes | True if user was succesfully stored in the database |
string | $msg | Message |
Références $db, $user, et JFactory\getDbo().
plgUserJoomla::onUserAfterSave | ( | $user, | |
$isnew, | |||
$success, | |||
$msg | |||
) |
Utility method to act on a user after it has been saved.
This method sends a registration email to new users created in the backend.
array | $user | Holds the new user data. |
boolean | $isnew | True if a new user is stored. |
boolean | $success | True if user was succesfully stored in the database. |
string | $msg | Message. |
Look for user language. Priority:
Références $app, $config, $lang, $user, JText\_(), JFactory\getApplication(), JFactory\getConfig(), JFactory\getLanguage(), JFactory\getMailer(), JPATH_ADMINISTRATOR, JError\raiseWarning(), et JText\sprintf().
plgUserJoomla::onUserLogin | ( | $user, | |
$options = array() |
|||
) |
This method should handle any login logic and report back to the subject
array | $user | Holds the user data |
array | $options | Array holding options (remember, autoregister, group) |
Références $app, $db, $options, $user, JText\_(), JFactory\getApplication(), JFactory\getSession(), et JError\raiseWarning().
plgUserJoomla::onUserLogout | ( | $user, | |
$options = array() |
|||
) |
This method should handle any logout logic and report back to the subject
array | $user | Holds the user data. |
array | $options | Array holding options (client, ...). |
Références $app, $db, $options, $user, JFactory\getApplication(), JFactory\getSession(), et JFactory\getUser().