Class HttpContext
| category |
System |
|---|---|
| package |
Http |
| subpackage |
ValueObjects |
| extends |
HttpContextInterface |
__construct(array $serverArray, array $getArray, array $postArray, array $cookieArray, array $sessionArray)
arrayUsually, the $_SERVER array is passed here.
arrayUsually, the $_GET array is passed here.
arrayUsually, the $_POST array is passed here.
arrayUsually, the $_COOKIE array is passed here.
arrayUsually, the $_SESSION array is passed here.
getCookieItem(string $keyName) : array|string|integer|double
stringKey to determine which value of the $_COOKIE array should be returned.
array|string|integer|doubleExpected item of $_COOKIE array.
getGetArray() : array
arrayArray which is equal to $_GET.
getGetItem(string $keyName) : array|string|integer|double
stringKey to determine which value of the $_GET array should be returned.
array|string|integer|doubleExpected item of $_GET array.
getPostArray() : array
arrayArray which is equal to $_POST.
getPostItem(string $keyName) : array|string|integer|double
stringKey to determine which value of the $_POST array should be returned.
array|string|integer|doubleExpected item of $_POST array.
getServerArray() : array
arrayArray which is equal to $_SERVER.
getServerItem(string $keyName) : array|string|integer|double
stringKey to determine which value of the $_SERVER array should be returned.
array|string|integer|doubleExpected item of $_SERVER array.
getSessionItem(string $keyName) : array|string|integer|double
stringKey to determine which value of the $_SESSION array should be returned.
array|string|integer|doubleExpected item of $_SESSION array.
serverArray : array
| var |
|---|
array
getArray : array
| var |
|---|
array
postArray : array
| var |
|---|
array
sessionArray : array
| var |
|---|
array