Example #1
0
 /**
  * Replace all _POST values with provided values
  *
  * @param array $values
  */
 public function setAll($values)
 {
     $this->request->setPost($values);
 }
Example #2
0
 /**
  * Set POST values method
  *
  * @param  string|array $spec
  * @param  null|mixed   $value
  * @return Zend_Controller_Request_Http
  */
 public function setPost($spec, $value = null)
 {
     if (!is_array($spec) && $value === null) {
         unset($_POST[$spec]);
         return $this;
     } elseif (is_array($spec) && empty($spec)) {
         $_POST = array();
         return $this;
     }
     return parent::setPost($spec, $value);
 }