\Hazaar\Auth\Adapter
DBITable
Summary
Methods Properties Constants
get
has
set
$db
No constants
Properties
$db
$db
$field_credential
$field_credential
$field_id
$field_id
$field_identity
$field_identity
$table
$table
Inherited
$namespace
$namespace
Inherited
$session
$session
Methods
__construct()
__construct($db_adapter, $table = null, $field_identity = null, $field_credential = null, $field_id = 'id', $namespace = null, $cache_config = Array ( ) , $cache_backend = 'session')

Parameters

$db_adapter\Hazaar\DBI\Adapter

No description

$table

No description

$field_identity

No description

$field_credential

No description

$field_id

No description

$namespace

No description

$cache_config

No description

$cache_backend

No description

addUser()
addUser($identity, $credential)

Parameters

$identity

No description

$credential

No description

delUser()
delUser($identity)

Parameters

$identity

No description

queryAuth()
queryAuth($identity, $extra = Array ( ) )

Parameters

$identity

No description

$extra

No description

setCredentialField()
setCredentialField($credential)

Parameters

$credential

No description

setIdentityField()
setIdentityField($identity)

Parameters

$identity

No description

setTableName()
setTableName($table)

Parameters

$table

No description

Inherited
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
Inherited
deauth()
deauth()
Inherited
get()
get($key)

Parameters

$key

No description

Inherited
getCredential()
getCredential($credential = null)

Parameters

$credential

No description

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

Parameters

$key

No description

Inherited
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

Inherited
offsetGet()
offsetGet($key)

Parameters

$key

No description

Inherited
offsetSet()
offsetSet($key, $value)

Parameters

$key

No description

$value

No description

Inherited
offsetUnset()
offsetUnset($key)

Parameters

$key

No description

Inherited
set()
set($key, $value)

Parameters

$key

No description

$value

No description

Inherited
setCredential()
setCredential($credential)

Parameters

$credential

No description

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

Parameters

$method

No description

$count

No description

Inherited
setDataFields()
setDataFields($fields)

Parameters

$fieldsarray

No description

Inherited
setIdentity()
setIdentity($identity)

Parameters

$identity

No description