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

Return Value

void

array getQueryParams()

No description

Return Value

array

array getPostParams()

No description

Return Value

array

getQueryParam(string $key, $default = null)

No description

Parameters

string $key
$default

getPostParam(string $key, $default = null)

No description

Parameters

string $key
$default

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.

Parameters

string $key
$default

getServerParam(string $key, $default = null)

No description

Parameters

string $key
$default

string getMethod()

No description

Return Value

string

string getUri()

No description

Return Value

string