original_string: public function post($name = null, $default = null, $filter = true, $type = null)
      {
          $post = $this->request['post'];
  
          if ($filter !== 'raw') {
              gplcart_array_trim($post, (bool) $filter);
          }
  
          if (isset($name)) {
              $result = gplcart_array_get($post, $name);
              $return = isset($result) ? $result : $default;
          } else {
              $return = $post;
          }
  
          gplcart_settype($return, $type, $default);
          return $return;
      }
code: public function post($name = null, $default = null, $filter = true, $type = null)
      {
          $post = $this->request['post'];
  
          if ($filter !== 'raw') {
              gplcart_array_trim($post, (bool) $filter);
          }
  
          if (isset($name)) {
              $result = gplcart_array_get($post, $name);
              $return = isset($result) ? $result : $default;
          } else {
              $return = $post;
          }
  
          gplcart_settype($return, $type, $default);
          return $return;
      }
code_tokens: public function post ( $ name = null , $ default = null , $ filter = true , $ type = null ) { $ post = $ this -> request [ 'post' ] ; if ( $ filter !== 'raw' ) { gplcart_array_trim ( $ post , ( bool ) $ filter ) ; } if ( isset ( $ name ) ) { $ result = gplcart_array_get ( $ post , $ name ) ; $ return = isset ( $ result ) ? $ result : $ default ; } else { $ return = $ post ; } gplcart_settype ( $ return , $ type , $ default ) ; return $ return ; }
docstring: Returns a data from POST request
  @param string|array $name
  @param mixed $default
  @param bool|string $filter
  @param null|string $type
  @return mixed
docstring_tokens: Returns a data from POST request