PHP Класс PMA\libraries\Menu

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

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

Метод Описание
__construct ( integer $server, string $db, string $table ) Creates a new instance of Menu
display ( ) : void Prints the menu and the breadcrumbs
getDisplay ( ) : string Returns the menu and the breadcrumbs as a string
getHash ( ) : string Returns hash for the menu and the breadcrumbs
setTable ( string $table ) Set current table

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

Метод Описание
_getAllowedTabs ( string $level ) : array Returns a list of allowed tabs for the current user for the given level
_getBreadcrumbs ( ) : string Returns the breadcrumbs as HTML
_getDbTabs ( ) : array Returns the db tabs as an array
_getMenu ( ) : string Returns the menu as HTML
_getServerTabs ( ) : array Returns the server tabs as an array
_getTableTabs ( ) : array Returns the table tabs as an array

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

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

Creates a new instance of Menu
public __construct ( integer $server, string $db, string $table )
$server integer Server id
$db string Database name
$table string Table name

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

Prints the menu and the breadcrumbs
public display ( ) : void
Результат void

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

Returns the menu and the breadcrumbs as a string
public getDisplay ( ) : string
Результат string

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

Returns hash for the menu and the breadcrumbs
public getHash ( ) : string
Результат string

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

Set current table
public setTable ( string $table )
$table string Current table