Input
class Input
Input class handles requests to the server.
Methods
Checks csrf token to determine if it was tampered with. If the check fails the user is routed to a view stating access is restricted.
Supports operations related to handling POST and GET requests.
Returns the request element within the $_SERVER superglobal array.
Checks if the REQUEST_METHOD is GET.
Checks if the REQUEST_METHOD is POST.
Checks if the REQUEST_METHOD is PUT.
Details
at line 18
bool
csrfCheck()
Checks csrf token to determine if it was tampered with. If the check fails the user is routed to a view stating access is restricted.
at line 30
array|string
get(string|null $input = null)
Supports operations related to handling POST and GET requests.
at line 65
string
getRequestMethod()
Returns the request element within the $_SERVER superglobal array.
at line 74
bool
isGet()
Checks if the REQUEST_METHOD is GET.
at line 83
bool
isPost()
Checks if the REQUEST_METHOD is POST.
at line 92
bool
isPut()
Checks if the REQUEST_METHOD is PUT.