Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
boolean $_ambiguityIdentity = 'false'$_ambiguityIdentity - Flag to indicate same Identity can be used with different credentials. Default is FALSE and need to be set to true to allow ambiguity usage.
Detailsarray $_authenticateResultInfo = 'null'$_authenticateResultInfo
Detailsstring $_credential = 'null'$_credential - Credential values
Detailsstring $_credentialColumn = 'null'$_credentialColumns - columns to be used as the credentials
Detailsstring $_credentialTreatment = 'null'$_credentialTreatment - Treatment applied to the credential, such as MD5() or PASSWORD()
DetailsZend_Db_Select $_dbSelect = 'null'
Detailsstring $_identity = 'null'$_identity - Identity value
Detailsstring $_identityColumn = 'null'$_identityColumn - the column to use as the identity
Detailsarray $_resultRow = 'null'$_resultRow - Results of database authentication query
Detailsstring $_tableName = 'null'$_tableName - the table name to check
DetailsZend_Db_Adapter_Abstract $_zendDb = 'null'Database Connection
Details__construct(
Zend_Db_Adapter_Abstract $zendDb
=
null, string $tableName
=
null, string $identityColumn
=
null, string $credentialColumn
=
null, string $credentialTreatment
=
null
)
:
void__construct() - Sets configuration options
Details_authenticateCreateAuthResult(
)
:
Zend_Auth_Result_authenticateCreateAuthResult() - Creates a Zend_Auth_Result object from the information that has been collected during the authenticate() attempt.
Details_authenticateCreateSelect(
)
:
Zend_Db_Select_authenticateCreateSelect() - This method creates a Zend_Db_Select object that is completely configured to be queried against the database.
Details_authenticateQuerySelect(
Zend_Db_Select $dbSelect
)
:
array_authenticateQuerySelect() - This method accepts a Zend_Db_Select object and performs a query against the database with that object.
Details_authenticateSetup(
)
:
true_authenticateSetup() - This method abstracts the steps involved with making sure that this adapter was indeed setup properly with all required pieces of information.
Details_authenticateValidateResult(
array $resultIdentity
)
:
Zend_Auth_Result_authenticateValidateResult() - This method attempts to validate that the record in the resultset is indeed a record that matched the identity provided to this adapter.
Details_authenticateValidateResultSet(
array $resultIdentities
)
:
true|Zend_Auth_Result_authenticateValidateResultSet() - This method attempts to make certain that only one record was returned in the resultset
Details_setDbAdapter(
$zendDb
=
null
)
:
Zend_Auth_Adapter_DbTable_setDbAdapter() - set the database adapter to be used for quering
Detailsauthenticate(
)
:
Zend_Auth_Resultauthenticate() - defined by Zend_Auth_Adapter_Interface. This method is called to attempt an authentication. 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.
DetailsgetAmbiguityIdentity(
)
:
boolgetAmbiguityIdentity() - returns TRUE for usage of multiple identical identies with different credentials, FALSE if not used.
DetailsgetDbSelect(
)
:
Zend_Db_SelectgetDbSelect() - Return the preauthentication Db Select object for userland select query modification
DetailsgetResultRowObject(
string|array $returnColumns
=
null, string|array $omitColumns
=
null
)
:
stdClass|booleangetResultRowObject() - Returns the result row as a stdClass object
DetailssetAmbiguityIdentity(
int|bool $flag
)
:
Zend_Auth_Adapter_DbTablesetAmbiguityIdentity() - sets a flag for usage of identical identities with unique credentials. It accepts integers (0, 1) or boolean (true, false) parameters. Default is false.
DetailssetCredential(
string $credential
)
:
Zend_Auth_Adapter_DbTablesetCredential() - set the credential value to be used, optionally can specify a treatment to be used, should be supplied in parameterized form, such as 'MD5(?)' or 'PASSWORD(?)'
DetailssetCredentialColumn(
string $credentialColumn
)
:
Zend_Auth_Adapter_DbTablesetCredentialColumn() - set the column name to be used as the credential column
DetailssetCredentialTreatment(
string $treatment
)
:
Zend_Auth_Adapter_DbTablesetCredentialTreatment() - allows the developer to pass a parameterized string that is used to transform or treat the input credential data.
In many cases, passwords and other sensitive data are encrypted, hashed, encoded, obscured, or otherwise treated through some function or algorithm. By specifying a parameterized treatment string with this method, a developer may apply arbitrary SQL upon input credential data.
Examples:
'PASSWORD(?)' 'MD5(?)'
DetailssetIdentity(
string $value
)
:
Zend_Auth_Adapter_DbTablesetIdentity() - set the value to be used as the identity
DetailssetIdentityColumn(
string $identityColumn
)
:
Zend_Auth_Adapter_DbTablesetIdentityColumn() - set the column name to be used as the identity column
DetailssetTableName(
string $tableName
)
:
Zend_Auth_Adapter_DbTablesetTableName() - set the table name to be used in the select query
Details