Example #1
0
 /**
  * Sets the request object
  *
  * Method primarily exists for a clean interface, as the complement of getRequest().
  *
  * @param Zend_Controller_Request_Abstract $request
  * @return void
  */
 public static function setRequest(Zend_Controller_Request_Abstract $request)
 {
     self::$_request = $request;
 }
Example #2
0
 /**
  * Clear the cookie information
  *
  * @return Glitch_Form_Element_Hash_Cookie
  */
 public function clear()
 {
     $timeout = Glitch_Request::getRequest()->getServer('REQUEST_TIME') - $this->_parent->getTimeout();
     setcookie($this->_key, '', $timeout, $this->_url);
     return $this;
     //$this->_parent->getValidator('Identical')->clearErrorMessages();
     //$this->_parent->_isError = false;
 }