Class JAuthentication
Authentication class, provides an interface for the Joomla authentication system
- JObject
- JAuthentication
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 11.1
Located at joomla/authentication/authentication.php
Methods summary
public
|
|
public static
|
#
getInstance( )
Returns the global authentication object, only creating it if it doesn't already exist. |
public
mixed
|
|
public
|
|
public
boolean
|
|
public
|
#
authenticate( array $credentials, array $options = array() )
Finds out if a set of login credentials are valid by asking all observing objects to run their respective authentication routines. |
public static
|
#
authorise(
Authorises that a particular user should be able to login |
Methods inherited from JObject
__toString()
,
def()
,
get()
,
getError()
,
getErrors()
,
getProperties()
,
set()
,
setError()
,
setProperties()
Magic methods summary
Constants summary
integer |
STATUS_SUCCESS
|
1 |
#
This is the status code returned when the authentication is success (permit login) |
integer |
STATUS_CANCEL
|
2 |
#
Status to indicate cancellation of authentication (unused) |
integer |
STATUS_FAILURE
|
4 |
#
This is the status code returned when the authentication failed (prevent login if no success) |
integer |
STATUS_EXPIRED
|
8 |
#
This is the status code returned when the account has expired (prevent login) |
integer |
STATUS_DENIED
|
16 |
#
This is the status code returned when the account has been denied (prevent login) |
integer |
STATUS_UNKNOWN
|
32 |
#
This is the status code returned when the account doesn't exist (not an error) |
Properties summary
protected
array
|
$observers |
#
An array of Observer objects to notify |
protected
mixed
|
$state |
#
The state of the observable object |
protected
array
|
$methods |
#
A multi dimensional array of [function][] = key for observers |
protected static
|
$instance |
#
JAuthentication instances container. |