Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Db_Adapter_Abstract $zendDb=null, $tableName=null, $identityColumn=null, $credentialColumn=null, $credentialTreatment=null) | |
__construct() - Sets configuration options | |
setTableName ($tableName) | |
setTableName() - set the table name to be used in the select query | |
setIdentityColumn ($identityColumn) | |
setIdentityColumn() - set the column name to be used as the identity column | |
setCredentialColumn ($credentialColumn) | |
setCredentialColumn() - set the column name to be used as the credential column | |
setCredentialTreatment ($treatment) | |
setCredentialTreatment() - allows the developer to pass a parameterized string that is used to transform or treat the input credential data. | |
setIdentity ($value) | |
setIdentity() - set the value to be used as the identity | |
setCredential ($credential) | |
setCredential() - 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(?)' | |
setAmbiguityIdentity ($flag) | |
setAmbiguityIdentity() - sets a flag for usage of identical identities with unique credentials. | |
getAmbiguityIdentity () | |
getAmbiguityIdentity() - returns TRUE for usage of multiple identical identies with different credentials, FALSE if not used. | |
getDbSelect () | |
getDbSelect() - Return the preauthentication Db Select object for userland select query modification | |
getResultRowObject ($returnColumns=null, $omitColumns=null) | |
getResultRowObject() - Returns the result row as a stdClass object | |
authenticate () | |
authenticate() - defined by Zend_Auth_Adapter_Interface. | |
Protected Member Functions | |
_setDbAdapter (Zend_Db_Adapter_Abstract $zendDb=null) | |
_setDbAdapter() - set the database adapter to be used for quering | |
_authenticateSetup () | |
_authenticateSetup() - This method abstracts the steps involved with making sure that this adapter was indeed setup properly with all required pieces of information. | |
_authenticateCreateSelect () | |
_authenticateCreateSelect() - This method creates a Zend_Db_Select object that is completely configured to be queried against the database. | |
_authenticateQuerySelect (Zend_Db_Select $dbSelect) | |
_authenticateQuerySelect() - This method accepts a Zend_Db_Select object and performs a query against the database with that object. | |
_authenticateValidateResultSet (array $resultIdentities) | |
_authenticateValidateResultSet() - This method attempts to make certain that only one record was returned in the resultset | |
_authenticateValidateResult ($resultIdentity) | |
_authenticateValidateResult() - This method attempts to validate that the record in the resultset is indeed a record that matched the identity provided to this adapter. | |
_authenticateCreateAuthResult () | |
_authenticateCreateAuthResult() - Creates a Zend_Auth_Result object from the information that has been collected during the authenticate() attempt. | |
Protected Attributes | |
$_zendDb = null | |
$_dbSelect = null | |
$_tableName = null | |
$_identityColumn = null | |
$_credentialColumn = null | |
$_identity = null | |
$_credential = null | |
$_credentialTreatment = null | |
$_authenticateResultInfo = null | |
$_resultRow = null | |
$_ambiguityIdentity = false | |
__construct | ( | Zend_Db_Adapter_Abstract | $zendDb = null , |
$tableName = null , |
|||
$identityColumn = null , |
|||
$credentialColumn = null , |
|||
$credentialTreatment = null |
|||
) |
__construct() - Sets configuration options
Zend_Db_Adapter_Abstract | $zendDb | If null, default database adapter assumed |
string | $tableName | |
string | $identityColumn | |
string | $credentialColumn | |
string | $credentialTreatment |
|
protected |
_authenticateCreateAuthResult() - Creates a Zend_Auth_Result object from the information that has been collected during the authenticate() attempt.
|
protected |
_authenticateCreateSelect() - This method creates a Zend_Db_Select object that is completely configured to be queried against the database.
|
protected |
_authenticateQuerySelect() - This method accepts a Zend_Db_Select object and performs a query against the database with that object.
Zend_Db_Select | $dbSelect |
Zend_Auth_Adapter_Exception | - when an invalid select object is encountered |
|
protected |
_authenticateSetup() - This method abstracts the steps involved with making sure that this adapter was indeed setup properly with all required pieces of information.
Zend_Auth_Adapter_Exception | - in the event that setup was not done properly |
|
protected |
_authenticateValidateResult() - This method attempts to validate that the record in the resultset is indeed a record that matched the identity provided to this adapter.
array | $resultIdentity |
|
protected |
_authenticateValidateResultSet() - This method attempts to make certain that only one record was returned in the resultset
array | $resultIdentities |
|
protected |
_setDbAdapter() - set the database adapter to be used for quering
Zend_Db_Adapter_Abstract |
Zend_Auth_Adapter_Exception |
If no adapter is specified, fetch default database adapter.
authenticate | ( | ) |
authenticate() - 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.
Zend_Auth_Adapter_Exception | if answering the authentication query is impossible |
Implements Zend_Auth_Adapter_Interface.
getAmbiguityIdentity | ( | ) |
getAmbiguityIdentity() - returns TRUE for usage of multiple identical identies with different credentials, FALSE if not used.
getDbSelect | ( | ) |
getDbSelect() - Return the preauthentication Db Select object for userland select query modification
getResultRowObject | ( | $returnColumns = null , |
|
$omitColumns = null |
|||
) |
getResultRowObject() - Returns the result row as a stdClass object
string | array | $returnColumns | |
string | array | $omitColumns |
setAmbiguityIdentity | ( | $flag | ) |
setAmbiguityIdentity() - sets a flag for usage of identical identities with unique credentials.
It accepts integers (0, 1) or boolean (true, false) parameters. Default is false.
int | bool | $flag |
setCredential | ( | $credential | ) |
setCredential() - 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(?)'
string | $credential |
setCredentialColumn | ( | $credentialColumn | ) |
setCredentialColumn() - set the column name to be used as the credential column
string | $credentialColumn |
setCredentialTreatment | ( | $treatment | ) |
setCredentialTreatment() - 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(?)'
string | $treatment |
setIdentity | ( | $value | ) |
setIdentity() - set the value to be used as the identity
string | $value |
setIdentityColumn | ( | $identityColumn | ) |
setIdentityColumn() - set the column name to be used as the identity column
string | $identityColumn |
setTableName | ( | $tableName | ) |
setTableName() - set the table name to be used in the select query
string | $tableName |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |