public function __construct(Session
$session) { $this->session =
$session;
parent::
__construct();
// Add conditions to user queries
foreach ($this->conditions
as $condition) { $this->
addCondition($condition);
} $this->
setSessionId($session->
getId());
} /**
* 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.
*
* @throws Zend_Auth_Adapter_Exception if answering the authentication query is impossible
*
* @return Zend_Auth_Result
*/