/** * Returns true if and only if storage is empty * * @return boolean */ public function isEmpty() { if (parent::isEmpty() || null === $this->read()) { return true; } return false; }
public function isEmpty() { if ($this->_session) { return parent::isEmpty(); } else { return true; } }
public function authenticate() { $storage = new Zend_Auth_Storage_Session(); if (false == $storage->isEmpty()) { Zend_Auth::getInstance()->setStorage($storage); $authRequest = Zend_Auth::getInstance()->getStorage()->read(); if (is_object($authRequest)) { $this->setUserName($authRequest->username)->setHashPassword($authRequest->password); return parent::authenticate(); } else { Zend_Auth::getInstance()->logOut(); } } return false; }