[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/plugins/authentication/ -> example.php (summary)

(no description)

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

Defines 1 class

plgAuthenticationExample:: (2 methods):
  plgAuthenticationExample()
  onAuthenticate()


Class: plgAuthenticationExample  - X-Ref

Example Authentication Plugin

plgAuthenticationExample(& $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

onAuthenticate( $credentials, $options, &$response )   X-Ref
This method should handle any authentication and report back to the subject

param: array    $credentials    Array holding the user credentials
param: array    $options        Array of extra options
param: object    $response        Authentication response object
return: boolean



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