class Header (View source)

Class used to output the HTTP and HTML headers

Methods

__construct(Template $template, Console $console, Config $config)

No description

array
getJsParams()

Returns, as an array, a list of parameters used on the client side

string
getJsParamsCode()

Returns, as a string, a list of parameters used on the client side

getScripts()

Returns the Scripts object

getMenu()

Returns the Menu object

void
setBodyId(string $id)

Setter for the ID attribute in the BODY tag

void
setTitle(string $title)

Setter for the title of the page

void
disableMenuAndConsole()

Disables the display of the top menu

void
disableWarnings()

Disables the display of the top menu

array
getDisplay()

No description

string
getMessage()

Returns the message to be displayed at the top of the page, including the executed SQL query, if any.

array
getHttpHeaders()

No description

string
getPageTitle()

If the page is missing the title, this function will set it to something reasonable

void
setIsTransformationWrapper(bool $isTransformationWrapper)

No description

getConsole()

No description

Details

__construct(Template $template, Console $console, Config $config)

No description

Parameters

Template $template
Console $console
Config $config

array getJsParams()

Returns, as an array, a list of parameters used on the client side

Return Value

array

string getJsParamsCode()

Returns, as a string, a list of parameters used on the client side

Return Value

string

Scripts getScripts()

Returns the Scripts object

Return Value

Scripts object

Menu getMenu()

Returns the Menu object

Return Value

Menu object

void setBodyId(string $id)

Setter for the ID attribute in the BODY tag

Parameters

string $id

Value for the ID attribute

Return Value

void

void setTitle(string $title)

Setter for the title of the page

Parameters

string $title

New title

Return Value

void

void disableMenuAndConsole()

Disables the display of the top menu

Return Value

void

void disableWarnings()

Disables the display of the top menu

Return Value

void

array getDisplay()

No description

Return Value

array

string getMessage()

Returns the message to be displayed at the top of the page, including the executed SQL query, if any.

Return Value

string

array getHttpHeaders()

No description

Return Value

array

string getPageTitle()

If the page is missing the title, this function will set it to something reasonable

Return Value

string

void setIsTransformationWrapper(bool $isTransformationWrapper)

No description

Parameters

bool $isTransformationWrapper

Return Value

void

Console getConsole()

No description

Return Value

Console