PHP Класс PMA\libraries\Header

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Creates a new class instance
disable ( ) : void Disables the rendering of the header
disableMenuAndConsole ( ) : void Disables the display of the top menu
disableWarnings ( ) : void Disables the display of the top menu
enablePrintView ( ) : void Turns on 'print view' mode
getDisplay ( ) : string Generates the header
getJsParams ( ) : array Returns, as an array, a list of parameters used on the client side
getJsParamsCode ( ) : string Returns, as a string, a list of parameters used on the client side
getMenu ( ) : Menu Returns the Menu object
getMessage ( ) : string Returns the message to be displayed at the top of the page, including the executed SQL query, if any.
getScripts ( ) : Scripts Returns the Scripts object
getTitleTag ( ) : string Returns the TITLE tag
getVersionParameter ( ) : string Returns the phpMyAdmin version to be appended to the url to avoid caching between versions
sendHttpHeaders ( ) : void Sends out the HTTP headers
setAjax ( boolean $isAjax ) : void Set the ajax flag to indicate whether we are servicing an ajax request
setBodyId ( string $id ) : void Setter for the ID attribute in the BODY tag
setTitle ( string $title ) : void Setter for the title of the page

Приватные методы

Метод Описание
_addDefaultScripts ( ) : void Loads common scripts
_addRecentTable ( string $db, string $table ) : string Add recently used table and reload the navigation.
_getBodyStart ( ) : string Returns the close tag to the HEAD and the start tag for the BODY
_getHtmlStart ( ) : string Returns the DOCTYPE and the start HTML tag
_getLinkTags ( ) : string Returns the LINK tags for the favicon and the stylesheets
_getMetaTags ( ) : string Returns the META tags
_getPageTitle ( ) : string If the page is missing the title, this function will set it to something reasonable
_getWarnings ( ) : string Returns some warnings to be displayed at the top of the page

Описание методов

__construct() публичный Метод

Creates a new class instance
public __construct ( )

disable() публичный Метод

Disables the rendering of the header
public disable ( ) : void
Результат void

disableMenuAndConsole() публичный Метод

Disables the display of the top menu
public disableMenuAndConsole ( ) : void
Результат void

disableWarnings() публичный Метод

Disables the display of the top menu
public disableWarnings ( ) : void
Результат void

enablePrintView() публичный Метод

Turns on 'print view' mode
public enablePrintView ( ) : void
Результат void

getDisplay() публичный Метод

Generates the header
public getDisplay ( ) : string
Результат string The header

getJsParams() публичный Метод

Returns, as an array, a list of parameters used on the client side
public getJsParams ( ) : array
Результат array

getJsParamsCode() публичный Метод

Returns, as a string, a list of parameters used on the client side
public getJsParamsCode ( ) : string
Результат string

getMenu() публичный Метод

Returns the Menu object
public getMenu ( ) : Menu
Результат Menu object

getMessage() публичный Метод

Returns the message to be displayed at the top of the page, including the executed SQL query, if any.
public getMessage ( ) : string
Результат string

getScripts() публичный Метод

Returns the Scripts object
public getScripts ( ) : Scripts
Результат Scripts object

getTitleTag() публичный Метод

Returns the TITLE tag
public getTitleTag ( ) : string
Результат string the TITLE tag

getVersionParameter() публичный статический Метод

Returns the phpMyAdmin version to be appended to the url to avoid caching between versions
public static getVersionParameter ( ) : string
Результат string urlenocded pma version as a parameter

sendHttpHeaders() публичный Метод

Sends out the HTTP headers
public sendHttpHeaders ( ) : void
Результат void

setAjax() публичный Метод

Set the ajax flag to indicate whether we are servicing an ajax request
public setAjax ( boolean $isAjax ) : void
$isAjax boolean Whether we are servicing an ajax request
Результат void

setBodyId() публичный Метод

Setter for the ID attribute in the BODY tag
public setBodyId ( string $id ) : void
$id string Value for the ID attribute
Результат void

setTitle() публичный Метод

Setter for the title of the page
public setTitle ( string $title ) : void
$title string New title
Результат void