Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AdminPageHttpControllerResponse
  • Asset
  • HttpContext
  • HttpControllerResponse
  • JsonHttpControllerResponse
  • RedirectHttpControllerResponse

Class HttpContext

Class HttpContext

HttpContext implements HttpContextInterface
Package: Http\ValueObjects
Category: System
Extends: HttpContextInterface
Located at SystemServices/Http/ValueObjects/HttpContext.inc.php

Methods summary

public
# __construct( array $serverArray, array $getArray, array $postArray, array $cookieArray, array $sessionArray )

Initializes the http context.

Initializes the http context.

Parameters

$serverArray
Usually, the $_SERVER array is passed here.
$getArray
Usually, the $_GET array is passed here.
$postArray
Usually, the $_POST array is passed here.
$cookieArray
Usually, the $_COOKIE array is passed here.
$sessionArray
Usually, the $_SESSION array is passed here.
public array|string|integer|float
# getServerItem( string $keyName )

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

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

Parameters

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

Returns

array|string|integer|float
Expected item of $_SERVER array.

Implementation of

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

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

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

Parameters

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

Returns

array|string|integer|float
Expected item of $_GET array.

Implementation of

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

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

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

Parameters

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

Returns

array|string|integer|float
Expected item of $_POST array.

Implementation of

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

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

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

Parameters

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

Returns

array|string|integer|float
Expected item of $_COOKIE array.

Implementation of

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

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

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

Parameters

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

Returns

array|string|integer|float
Expected item of $_SESSION array.

Implementation of

HttpContextInterface::getSessionItem()
public array
# getGetArray( )

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

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

Returns

array
Array which is equal to $_GET.

Implementation of

HttpContextInterface::getGetArray()
public array
# getPostArray( )

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

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

Returns

array
Array which is equal to $_POST.

Implementation of

HttpContextInterface::getPostArray()

Properties summary

protected array $serverArray
#
protected array $getArray
#
protected array $postArray
#
protected array $cookieArray
#
protected array $sessionArray
#
API documentation generated by ApiGen