Example #1
0
 /**
  * Returns true if and only if storage is empty
  *
  * @return boolean
  */
 public function isEmpty()
 {
     if (parent::isEmpty() || null === $this->read()) {
         return true;
     }
     return false;
 }
Example #2
0
 public function isEmpty()
 {
     if ($this->_session) {
         return parent::isEmpty();
     } else {
         return true;
     }
 }
Example #3
0
 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;
 }