PHP Class PMA\libraries\Menu

Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Public Methods

Method Description
__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

Private Methods

Method Description
_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

Method Details

__construct() public method

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() public method

Prints the menu and the breadcrumbs
public display ( ) : void
return void

getDisplay() public method

Returns the menu and the breadcrumbs as a string
public getDisplay ( ) : string
return string

getHash() public method

Returns hash for the menu and the breadcrumbs
public getHash ( ) : string
return string

setTable() public method

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