Interface HttpContextInterface

Interface HttpContextInterface

Direct known implementers

HttpContext

Methods summary

public getServerItem( string $keyName ) : array|string|integer|float

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

public getGetItem( string $keyName ) : array|string|integer|float

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

public getPostItem( string $keyName ) : array|string|integer|float

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

public getCookieItem( string $keyName ) : array|string|integer|float

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

public getSessionItem( string $keyName ) : array|string|integer|float

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

public getGetArray( void ) : array

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

public getPostArray( void ) : array

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

public getServerArray( void ) : array

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