HttpContextInterface
in
Interface HttpContextInterface
Tags
Table of Contents
- getCookieItem() : array<string|int, mixed>|string|int|float
- Returns an item of the $_COOKIE array by the given key name.
- getGetArray() : array<string|int, mixed>
- Returns an array which is equal to the global $_GET variable in an object oriented layer.
- getGetItem() : array<string|int, mixed>|string|int|float
- Returns an item of the $_GET array by the given key name.
- getPostArray() : array<string|int, mixed>
- Returns an array which is equal to the global $_POST variable in an object oriented layer.
- getPostItem() : array<string|int, mixed>|string|int|float
- Returns an item of the $_POST array by the given key name.
- getServerArray() : array<string|int, mixed>
- Returns an array which is equal to the global $_SERVER variable in an object oriented layer.
- getServerItem() : array<string|int, mixed>|string|int|float
- Returns an item of the $_SERVER array by the given key name.
- getSessionItem() : array<string|int, mixed>|string|int|float
- Returns an item of the $_SESSION array by the given key name.
Methods
getCookieItem()
Returns an item of the $_COOKIE array by the given key name.
public
getCookieItem(string $keyName) : array<string|int, mixed>|string|int|float
Parameters
- $keyName : string
-
Key to determine which value of the $_COOKIE array should be returned.
Return values
array<string|int, mixed>|string|int|float —Expected item of $_COOKIE array.
getGetArray()
Returns an array which is equal to the global $_GET variable in an object oriented layer.
public
getGetArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array which is equal to $_GET.
getGetItem()
Returns an item of the $_GET array by the given key name.
public
getGetItem(string $keyName) : array<string|int, mixed>|string|int|float
Parameters
- $keyName : string
-
Key to determine which value of the $_GET array should be returned.
Return values
array<string|int, mixed>|string|int|float —Expected item of $_GET array.
getPostArray()
Returns an array which is equal to the global $_POST variable in an object oriented layer.
public
getPostArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array which is equal to $_POST.
getPostItem()
Returns an item of the $_POST array by the given key name.
public
getPostItem(string $keyName) : array<string|int, mixed>|string|int|float
Parameters
- $keyName : string
-
Key to determine which value of the $_POST array should be returned.
Return values
array<string|int, mixed>|string|int|float —Expected item of $_POST array.
getServerArray()
Returns an array which is equal to the global $_SERVER variable in an object oriented layer.
public
getServerArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array which is equal to $_SERVER.
getServerItem()
Returns an item of the $_SERVER array by the given key name.
public
getServerItem(string $keyName) : array<string|int, mixed>|string|int|float
Parameters
- $keyName : string
-
Key to determine which value of the $_SERVER array should be returned.
Return values
array<string|int, mixed>|string|int|float —Expected item of $_SERVER array.
getSessionItem()
Returns an item of the $_SESSION array by the given key name.
public
getSessionItem(string $keyName) : array<string|int, mixed>|string|int|float
Parameters
- $keyName : string
-
Key to determine which value of the $_SESSION array should be returned.
Return values
array<string|int, mixed>|string|int|float —Expected item of $_SESSION array.