protected function getParam($str_key, $str_default = null, $check_json_body = false)
    {
        $str_query = $this->getQuery($str_key);
        if (null !== $str_query) {
            return $str_query;
        }
        $str_post = $this->getPost($str_key);
        if (NULL !== $str_post) {
            return $str_post;
        }
        // Optionally check Json in Body
        if ($check_json_body && isset($this->getJson()->$str_key)) {
            if (null !== $this->getJson()->$str_key) {
                return $this->getJson()->$str_key;
            }
        }
        return $str_default;
    }
protected function getParam($str_key, $str_default = null, $check_json_body = false)
    {
        $str_query = $this->getQuery($str_key);
        if (null !== $str_query) {
            return $str_query;
        }
        $str_post = $this->getPost($str_key);
        if (NULL !== $str_post) {
            return $str_post;
        }
        // Optionally check Json in Body
        if ($check_json_body && isset($this->getJson()->$str_key)) {
            if (null !== $this->getJson()->$str_key) {
                return $this->getJson()->$str_key;
            }
        }
        return $str_default;
    }
protected function getParam ( $ str_key , $ str_default = null , $ check_json_body = false ) { $ str_query = $ this -> getQuery ( $ str_key ) ; if ( null !== $ str_query ) { return $ str_query ; } $ str_post = $ this -> getPost ( $ str_key ) ; if ( NULL !== $ str_post ) { return $ str_post ; } // Optionally check Json in Body if ( $ check_json_body && isset ( $ this -> getJson ( ) -> $ str_key ) ) { if ( null !== $ this -> getJson ( ) -> $ str_key ) { return $ this -> getJson ( ) -> $ str_key ; } } return $ str_default ; }
Get a request parameter. Check GET then POST data, then optionally any json body data.

@param string $str_key
@param mixed $str_default
@param bool $check_json_body
@return mixed
Get a request parameter . Check GET then POST data then optionally any json body data .