Example #1
0
 /**
  * Hydrates the input array
  *
  * @return  void
  */
 protected static function hydrate()
 {
     static::$input = array_merge($_GET, $_POST);
     if (\Input::method() == 'PUT' or \Input::method() == 'PATCH' or \Input::method() == 'DELETE') {
         static::$php_input === null and static::$php_input = file_get_contents('php://input');
         if (strpos(static::headers('Content-Type'), 'www-form-urlencoded') > 0 and \Config::get('security.form-double-urlencoded', false)) {
             static::$php_input = urldecode(static::$php_input);
         }
         parse_str(static::$php_input, static::$put_patch_delete);
         static::$input = array_merge(static::$input, static::$put_patch_delete);
     } else {
         static::$put_patch_delete = array();
     }
 }
Example #2
0
 /**
  * Constructeur
  */
 private function __construct()
 {
     static::$params = new \stdClass();
     static::$input = new Input();
     Session::add('bow.old', static::$input->all());
 }
Example #3
0
 /**
  * Gather the raw input sent from the requestor
  * 
  * @access public
  * @return void
  */
 public function gather()
 {
     static::$input = $_GET;
     $this->rawInput = file_get_contents("php://input");
 }
Example #4
0
 /**
  * Hydrates the input array
  *
  * @return  void
  */
 protected static function hydrate()
 {
     static::$input = array_merge($_GET, $_POST);
     if (\Input::method() == 'PUT' or \Input::method() == 'DELETE') {
         static::$php_input === null and static::$php_input = file_get_contents('php://input');
         parse_str(static::$php_input, static::$put_delete);
         static::$input = array_merge(static::$input, static::$put_delete);
     }
 }
Example #5
0
 /**
  * Hydrates the input array
  *
  * @return  void
  */
 protected static function hydrate()
 {
     static::$input = array_merge($_GET, $_POST);
     if (\Input::method() == 'PUT' or \Input::method() == 'DELETE') {
         static::$php_input === null and static::$php_input = file_get_contents('php://input');
         if (strpos(static::headers('Content-Type'), 'www-form-urlencoded') > 0) {
             static::$php_input = urldecode(static::$php_input);
         }
         parse_str(static::$php_input, static::$put_delete);
         static::$input = array_merge(static::$input, static::$put_delete);
     }
 }