Request
class Request (View source)
The Request class.
Methods
Return the URL of the currently requested page.
Return value by key in the $_POST array or any empty string, if that key doesn't exist.
Return a sanitized value of a query string parameter or any empty string, if that parameter doesn't exist.
Details
at line 54
static string
page()
Return the URL of the currently requested page.
at line 130
static string
post(string $key)
Return value by key in the $_POST array or any empty string, if that key doesn't exist.
Note: Since this method always returns a string, it should not be used to test whether a key exists in $_POST.
at line 146
static string
query(string $key)
Return a sanitized value of a query string parameter or any empty string, if that parameter doesn't exist.
Note: Since this method always returns a string, it should not be used to test whether a parameter exists in the query string, because a non-existing parameter and an empty string as a parameter's value will return the same.