Request
class Request (View source)
Properties
| protected array | $queryParams | ||
| protected array | $postParams | ||
| protected array | $serverParams |
Methods
__construct()
No description
void
refresh()
Refreshes the request data from the global variables
array
getQueryParams()
No description
array
getPostParams()
No description
getQueryParam(string $key, $default = null)
No description
getPostParam(string $key, $default = null)
No description
getParam(string $key, $default = null)
Returns a parameter from the POST body on POST requests, from the query string otherwise. For endpoints that accept both methods.
getServerParam(string $key, $default = null)
No description
string
getMethod()
No description
string
getUri()
No description
Details
__construct()
No description
void
refresh()
Refreshes the request data from the global variables
array
getQueryParams()
No description
array
getPostParams()
No description
getQueryParam(string $key, $default = null)
No description
getPostParam(string $key, $default = null)
No description
getParam(string $key, $default = null)
Returns a parameter from the POST body on POST requests, from the query string otherwise. For endpoints that accept both methods.
getServerParam(string $key, $default = null)
No description
string
getMethod()
No description
string
getUri()
No description