\Hazaar\Auth
Adapter
Abstract
Abstract authentication adapter
Summary
Methods Properties Constants
get
has
set
No constants
Properties
Static
$autologin_cookie
$autologin_cookie
Static
$autologin_period
$autologin_period
$credential
$credential
Static
$credential_encryption
$credential_encryption
Static
$credential_encryption_count
$credential_encryption_count
$extra
$extra
$identity
$identity
$namespace
$namespace
$session
$session
Methods
__construct()
__construct($namespace = null, $cache_config = Array ( ) , $cache_backend = 'session')

Parameters

$namespace

No description

$cache_config

No description

$cache_backend

No description

__get()
__get($key)

Parameters

$key

No description

__isset()
__isset($key)

Parameters

$key

No description

__set()
__set($key, $value)

Parameters

$key

No description

$value

No description

authenticate()
authenticate($identity = null, $credential = null, $autologin = false)

Parameters

$identity

No description

$credential

No description

$autologin

No description

authenticated()
authenticated()
canAutoLogin()
canAutoLogin()
check()
check($credential) : boolean
Check that the supplied password is correct for the current identity.

This is useful for checking an account password before allowing something important to be updated. This does the same steps as authenticate() but doesn’t actually do the authentication.

Parameters

$credentialmixed

No description

Returns

boolean
deauth()
deauth()
get()
get($key)

Parameters

$key

No description

getAutologinCookieName()
getAutologinCookieName()
getCredential()
getCredential($credential = null)

Parameters

$credential

No description

getIdentity()
getIdentity()
getUserData()
getUserData()
has()
has($key)

Parameters

$key

No description

offsetExists()
offsetExists($key)
Array Access Methods

These methods allows accessing user data as array attributes of the auth object. These methods do not allow this data to be modified in any way.

Parameters

$key

No description

offsetGet()
offsetGet($key)

Parameters

$key

No description

offsetSet()
offsetSet($key, $value)

Parameters

$key

No description

$value

No description

offsetUnset()
offsetUnset($key)

Parameters

$key

No description

set()
set($key, $value)

Parameters

$key

No description

$value

No description

setCredential()
setCredential($credential)

Parameters

$credential

No description

Static
setCredentialEncryption()
setCredentialEncryption($method, $count = 1)

Parameters

$method

No description

$count

No description

setDataFields()
setDataFields($fields)

Parameters

$fieldsarray

No description

setIdentity()
setIdentity($identity)

Parameters

$identity

No description