HttpContextInterface

Extends

Interface HttpContextInterface

category

System

package

Http

subpackage

Interfaces

Methods

Returns an item of the $_COOKIE array by the given key name.

getCookieItem(string $keyName) : array|string|integer|double

Arguments

$keyName

string

Key to determine which value of the $_COOKIE array should be returned.

Response

array|string|integer|double

Expected item of $_COOKIE array.

Returns an array which is equal to the global $_GET variable in an object oriented layer.

getGetArray() : array

Response

array

Array which is equal to $_GET.

Returns an item of the $_GET array by the given key name.

getGetItem(string $keyName) : array|string|integer|double

Arguments

$keyName

string

Key to determine which value of the $_GET array should be returned.

Response

array|string|integer|double

Expected item of $_GET array.

Returns an array which is equal to the global $_POST variable in an object oriented layer.

getPostArray() : array

Response

array

Array which is equal to $_POST.

Returns an item of the $_POST array by the given key name.

getPostItem(string $keyName) : array|string|integer|double

Arguments

$keyName

string

Key to determine which value of the $_POST array should be returned.

Response

array|string|integer|double

Expected item of $_POST array.

Returns an array which is equal to the global $_SERVER variable in an object oriented layer.

getServerArray() : array

Response

array

Array which is equal to $_SERVER.

Returns an item of the $_SERVER array by the given key name.

getServerItem(string $keyName) : array|string|integer|double

Arguments

$keyName

string

Key to determine which value of the $_SERVER array should be returned.

Response

array|string|integer|double

Expected item of $_SERVER array.

Returns an item of the $_SESSION array by the given key name.

getSessionItem(string $keyName) : array|string|integer|double

Arguments

$keyName

string

Key to determine which value of the $_SESSION array should be returned.

Response

array|string|integer|double

Expected item of $_SESSION array.