$this->_zendDb->
quoteInto( $this->_zendDb->
quoteIdentifier($this->_credentialColumn, true
) . ' = ' .
$this->_credentialTreatment,
$this->_credential
) . ' THEN 1 ELSE 0 END) AS '
.
$this->_zendDb->
quoteIdentifier( $this->_zendDb->
foldCase('zend_auth_credential_match'
) ) );
// get select
$dbSelect =
clone $this->
getDbSelect();
$dbSelect->
from($this->_tableName,
['*',
$credentialExpression]) ->
where($this->_zendDb->
quoteIdentifier($this->_identityColumn, true
) . ' = ?',
$this->_identity
);
return $dbSelect;
} /**
* _authenticateQuerySelect() - This method accepts a Zend_Db_Select object and
* performs a query against the database with that object.
*
* @param Zend_Db_Select $dbSelect
*
* @throws Zend_Auth_Adapter_Exception - when an invalid select
* object is encountered
*
* @return array
*/