[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/plugins/user/ -> joomla.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: joomla.php 14401 2010-01-26 14:10:00Z louis $
File Size: 228 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

plgUserJoomla:: (5 methods):
  plgUserJoomla()
  onAfterDeleteUser()
  onLoginUser()
  onLogoutUser()
  _getUser()


Class: plgUserJoomla  - X-Ref

Joomla User plugin

plgUserJoomla(& $subject, $config)   X-Ref
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.

param: object $subject The object to observe
param: array  $config  An array that holds the plugin configuration

onAfterDeleteUser($user, $succes, $msg)   X-Ref
Remove all sessions for the user name

Method is called after user data is deleted from the database

param: array          holds the user data
param: boolean        true if user was succesfully stored in the database
param: string        message

onLoginUser($user, $options = array()   X-Ref
This method should handle any login logic and report back to the subject

param: array   holds the user data
param: array   array holding options (remember, autoregister, group)
return: boolean    True on success

onLogoutUser($user, $options = array()   X-Ref
This method should handle any logout logic and report back to the subject

param: array    holds the user data
param: array   array holding options (client, ...)
return: object   True on success

_getUser($user, $options = array()   X-Ref
This method will return a user object

If options['autoregister'] is true, if the user doesn't exist yet he will be created

param: array   holds the user data
param: array   array holding options (remember, autoregister, group)
return: object    A JUser object



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1