class Header

Class used to output the HTTP and HTML headers

Methods

__construct()

Creates a new class instance

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

void
disable()

Disables the rendering of the header

void
setAjax(bool $isAjax)

Set the ajax flag to indicate whether we are servicing an ajax request

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

void
enablePrintView()

Turns on 'print view' mode

string
getDisplay()

Generates the header

string
getMessage()

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

void
sendHttpHeaders()

Sends out the HTTP headers

string
getPageTitle()

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

static string
getVersionParameter()

Returns the phpMyAdmin version to be appended to the url to avoid caching between versions

Details

at line 124
__construct()

Creates a new class instance

at line 225
array getJsParams()

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

Return Value

array

at line 281
string getJsParamsCode()

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

Return Value

string

at line 299
void disable()

Disables the rendering of the header

Return Value

void

at line 312
void setAjax(bool $isAjax)

Set the ajax flag to indicate whether we are servicing an ajax request

Parameters

bool $isAjax Whether we are servicing an ajax request

Return Value

void

at line 323
Scripts getScripts()

Returns the Scripts object

Return Value

Scripts object

at line 333
Menu getMenu()

Returns the Menu object

Return Value

Menu object

at line 345
void setBodyId(string $id)

Setter for the ID attribute in the BODY tag

Parameters

string $id Value for the ID attribute

Return Value

void

at line 357
void setTitle(string $title)

Setter for the title of the page

Parameters

string $title New title

Return Value

void

at line 367
void disableMenuAndConsole()

Disables the display of the top menu

Return Value

void

at line 378
void disableWarnings()

Disables the display of the top menu

Return Value

void

at line 388
void enablePrintView()

Turns on 'print view' mode

Return Value

void

at line 400
string getDisplay()

Generates the header

Return Value

string The header

at line 495
string getMessage()

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

Return Value

string

at line 522
void sendHttpHeaders()

Sends out the HTTP headers

Return Value

void

at line 640
string getPageTitle()

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

Return Value

string

at line 698
static string getVersionParameter()

Returns the phpMyAdmin version to be appended to the url to avoid caching between versions

Return Value

string urlenocded pma version as a parameter