PHP 클래스 PMA\libraries\Menu

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
__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