Request
in package
Table of Contents
Properties
- $cookie : array<string|int, mixed>
- $files : array<string|int, mixed>
- $inputStream : string
- $post : array<string|int, mixed>
- $queryParam : array<string|int, mixed>
- $server : array<string|int, mixed>
Methods
- __construct() : mixed
- getCookie() : mixed
- Returns cookie If no $key is passed returns entire $_COOKIE array
- getFiles() : array<string|int, mixed>|null
- Returns posted files If no $key is passed returns entire $_FILES array
- getInputStream() : string
- Returns stream that allows to read raw POST data
- getPostParams() : array<string|int, mixed>|null
- * Returns POST parameters If no $key is passed returns entire $_POST array
- getQueryParams() : string|array<string|int, mixed>
- Returns GET parameters If no $key is passed returns entire $_GET array
- getServerVar() : array<string|int, mixed>|string|int|null
- Returns server variable
Properties
$cookie
private
array<string|int, mixed>
$cookie
$files
private
array<string|int, mixed>
$files
$inputStream
private
string
$inputStream
$post
private
array<string|int, mixed>
$post
$queryParam
private
array<string|int, mixed>
$queryParam
$server
private
array<string|int, mixed>
$server
Methods
__construct()
public
__construct() : mixed
getCookie()
Returns cookie If no $key is passed returns entire $_COOKIE array
public
getCookie([string $key = null ]) : mixed
Parameters
- $key : string = null
getFiles()
Returns posted files If no $key is passed returns entire $_FILES array
public
getFiles([string|null $key = null ]) : array<string|int, mixed>|null
Parameters
- $key : string|null = null
Return values
array<string|int, mixed>|nullgetInputStream()
Returns stream that allows to read raw POST data
public
getInputStream() : string
Return values
stringgetPostParams()
* Returns POST parameters If no $key is passed returns entire $_POST array
public
getPostParams([string|null $key = null ]) : array<string|int, mixed>|null
Parameters
- $key : string|null = null
Return values
array<string|int, mixed>|nullgetQueryParams()
Returns GET parameters If no $key is passed returns entire $_GET array
public
getQueryParams([string $key = null ]) : string|array<string|int, mixed>
Parameters
- $key : string = null
Return values
string|array<string|int, mixed>getServerVar()
Returns server variable
public
getServerVar(string $key) : array<string|int, mixed>|string|int|null
Parameters
- $key : string