__construct()
authenticate()
getAmbiguityIdentity()
getCredential()
getDbSelect()
getIdentity()
getResultRowObject()
setAmbiguityIdentity()
setCredential()
setCredentialColumn()
setCredentialTreatment()
setIdentity()
setIdentityColumn()
setTableName()
_authenticateCreateAuthResult()
_authenticateCreateSelect()
_authenticateQuerySelect()
_authenticateSetup()
_authenticateValidateResult()
_authenticateValidateResultSet()
$ambiguityIdentity
$authenticateResultInfo
$credential
$credentialColumn
$credentialTreatment
$dbSelect
$identity
$identityColumn
$resultRow
$tableName
$zendDb
__construct(\Zend\Db\Adapter\Adapter $zendDb, string $tableName, string $identityColumn, string $credentialColumn, string $credentialTreatment) : \Zend\Authentication\Adapter\DbTable
\Zend\Db\Adapter\Adapter
string
Optional
string
Optional
string
Optional
string
Optional
authenticate() : \Zend\Authentication\Result
Previous to this call, this adapter would have already been configured with all necessary information to successfully connect to a database table and attempt to find a record matching the provided identity.
\Zend\Authentication\Adapter\Exception\RuntimeException |
if answering the authentication query is impossible |
---|
getAmbiguityIdentity() : bool
bool
getCredential() : mixed
inherited_from | \Zend\Authentication\Adapter\AbstractAdapter::getCredential() |
---|
mixed
getDbSelect() : \Zend\Db\Sql\Select
getIdentity() : mixed
inherited_from | \Zend\Authentication\Adapter\AbstractAdapter::getIdentity() |
---|
mixed
getResultRowObject(string | array $returnColumns, string | array $omitColumns) : \stdClass | bool
setAmbiguityIdentity(int | bool $flag) : \Zend\Authentication\Adapter\DbTable
It accepts integers (0, 1) or boolean (true, false) parameters. Default is false.
intbool
\Zend\Authentication\Adapter\DbTable
Provides a fluent interfacesetCredential(mixed $credential) : \Zend\Authentication\Adapter\AbstractAdapter
inherited_from | \Zend\Authentication\Adapter\AbstractAdapter::setCredential() |
---|
mixed
setCredentialColumn(string $credentialColumn) : \Zend\Authentication\Adapter\DbTable
string
\Zend\Authentication\Adapter\DbTable
Provides a fluent interfacesetCredentialTreatment(string $treatment) : \Zend\Authentication\Adapter\DbTable
In many cases, passwords and other sensitive data are encrypted, hashed, encoded, obscured, or otherwise treated through some function or algorithm. By specifying a parametrized treatment string with this method, a developer may apply arbitrary SQL upon input credential data.
Examples:
'PASSWORD(?)' 'MD5(?)'
string
\Zend\Authentication\Adapter\DbTable
Provides a fluent interfacesetIdentity(mixed $identity) : \Zend\Authentication\Adapter\AbstractAdapter
inherited_from | \Zend\Authentication\Adapter\AbstractAdapter::setIdentity() |
---|
mixed
setIdentityColumn(string $identityColumn) : \Zend\Authentication\Adapter\DbTable
string
\Zend\Authentication\Adapter\DbTable
Provides a fluent interfacesetTableName(string $tableName) : \Zend\Authentication\Adapter\DbTable
string
\Zend\Authentication\Adapter\DbTable
Provides a fluent interface_authenticateCreateAuthResult() : \Zend\Authentication\Result
_authenticateCreateSelect() : \Zend\Db\Sql\Select
_authenticateQuerySelect(\Zend\Db\Sql\Select $dbSelect) : array
\Zend\Db\Sql\Select
\Zend\Authentication\Adapter\Exception\RuntimeException |
when an invalid select object is encountered |
---|
array
_authenticateSetup() : bool
\Zend\Authentication\Adapter\Exception\RuntimeException |
in the event that setup was not done properly |
---|
bool
_authenticateValidateResult(array $resultIdentity) : \Zend\Authentication\Result
_authenticateValidateResultSet(array $resultIdentities) : bool | \Zend\Authentication\Result
$ambiguityIdentity : bool
Default is FALSE and need to be set to true to allow ambiguity usage.
$authenticateResultInfo : array
$credential : mixed
inherited_from | \Zend\Authentication\Adapter\AbstractAdapter::$$credential |
---|
$credentialColumn : string
$credentialTreatment : string
$identity : mixed
inherited_from | \Zend\Authentication\Adapter\AbstractAdapter::$$identity |
---|
$identityColumn : string
$resultRow : array
$tableName : string