CanRetrieveFromInput
Table of Contents
- getCookie() : mixed
- Gets a cookie
- getCookies() : array<string|int, mixed>
- Alias for getCookie() to get all cookies
- getFile() : mixed
- Gets a posted file
- getFiles() : array<string|int, mixed>
- Alias for getFile() to get all posted files
- getGet() : string|mixed
- Gets a GET parameter
- getPost() : string|mixed
- Gets a POST parameter
Methods
getCookie()
Gets a cookie
public
getCookie([string $key = null ][, mixed $default = null ]) : mixed
Parameters
- $key : string = null
-
The key of the parameter
- $default : mixed = null
-
Default value
Return values
mixed —Content of the cookie
getCookies()
Alias for getCookie() to get all cookies
public
getCookies() : array<string|int, mixed>
Return values
array<string|int, mixed> —The cookies
getFile()
Gets a posted file
public
getFile([string|null $key = null ][, mixed $default = null ]) : mixed
Parameters
- $key : string|null = null
-
The name of the file
- $default : mixed = null
-
Default value if the file is not posted
Return values
mixed —The posted file
getFiles()
Alias for getFile() to get all posted files
public
getFiles() : array<string|int, mixed>
Return values
array<string|int, mixed> —The posted files
getGet()
Gets a GET parameter
public
getGet([string $key = null ][, mixed $default = null ]) : string|mixed
Parameters
- $key : string = null
-
The key of the parameter
- $default : mixed = null
-
Default value
Return values
string|mixed —The content of the GET value
getPost()
Gets a POST parameter
public
getPost([string|null $key = null ][, mixed $default = null ]) : string|mixed
Parameters
- $key : string|null = null
-
The key of the parameter
- $default : mixed = null
-
Default value
Return values
string|mixed —The content of the POST value