AdminPageHttpControllerResponse

Extends \HttpControllerResponse

Class AdminPageHttpControllerResponse

Important: This class will load the admin section of the shop, something that cannot be integrated into unit tests. That is why it is not unit tested.

category

System

package

Http

subpackage

ValueObjects

extends

HttpControllerResponse

Methods

Initializes the http controller response.

__construct(string $responseBody, array $responseHeadersArray = null) 
inherited

Arguments

$responseBody

string

Rendered html markup.

$responseHeadersArray

array

Array which contains information about the http response headers.

Returns a predefined markup for gambio admin pages.

_getAdminPageBody(array $contentArray, \AssetCollectionInterface $assets = null, array $jsLanguageSections = array()) : string

Arguments

$contentArray

array

Associative array with 'title' and 'main_content' keys.

$assets

\AssetCollectionInterface

(Optional) Collection with assets for the markup.

$jsLanguageSections

array

(Optional) Array with language sections to access them in modules of the gx javascript engine.

Response

string

Rendered markup for the admin page.

Returns the response body string.

getBody() : string
inherited

Response

string

Returns the response headers array.

getHeaders() : array
inherited

Response

array

Properties

httpHeadersArray

httpHeadersArray : array
inherited
var

Type(s)

array

httpBody

httpBody : string
inherited
var

Type(s)

string