PHP 클래스 PMA\libraries\RecentFavoriteTable

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

공개 메소드들

메소드 설명
add ( string $db, string $table ) : true | Message Add recently used or favorite tables.
getFromDb ( ) : array Returns recently used tables or favorite from phpMyAdmin database.
getHtml ( ) : string Return HTML.
getHtmlList ( ) : string Return HTML ul.
getHtmlSyncFavoriteTables ( ) : string Generate Html for sync Favorite tables anchor. (from localStorage to pmadb)
getHtmlUpdateRecentTables ( ) : string Generate Html to update recent tables.
getInstance ( string $type ) : RecentFavoriteTable Returns class instance.
getTables ( ) : array Returns the recent/favorite tables array
remove ( string $db, string $table ) : true | Message Remove favorite tables.
removeIfInvalid ( string $db, string $table ) : boolean | Message Removes recent/favorite tables that don't exist.
saveToDb ( ) : true | Message Save recent/favorite tables into phpMyAdmin database.
trim ( ) : boolean Trim recent.favorite table according to the NumRecentTables/NumFavoriteTables configuration.

비공개 메소드들

메소드 설명
__construct ( string $type ) Creates a new instance of RecentFavoriteTable
_getPmaTable ( ) : string Reutrn the name of the configuration storage table

메소드 상세

add() 공개 메소드

Add recently used or favorite tables.
public add ( string $db, string $table ) : true | Message
$db string database name where the table is located
$table string table name
리턴 true | Message True if success, Message if not

getFromDb() 공개 메소드

Returns recently used tables or favorite from phpMyAdmin database.
public getFromDb ( ) : array
리턴 array

getHtml() 공개 메소드

Return HTML.
public getHtml ( ) : string
리턴 string

getHtmlList() 공개 메소드

Return HTML ul.
public getHtmlList ( ) : string
리턴 string

getHtmlSyncFavoriteTables() 공개 메소드

Generate Html for sync Favorite tables anchor. (from localStorage to pmadb)

getHtmlUpdateRecentTables() 공개 정적인 메소드

Generate Html to update recent tables.
public static getHtmlUpdateRecentTables ( ) : string
리턴 string html

getInstance() 공개 정적인 메소드

Returns class instance.
public static getInstance ( string $type ) : RecentFavoriteTable
$type string the table type
리턴 RecentFavoriteTable

getTables() 공개 메소드

Returns the recent/favorite tables array
public getTables ( ) : array
리턴 array

remove() 공개 메소드

Remove favorite tables.
public remove ( string $db, string $table ) : true | Message
$db string database name where the table is located
$table string table name
리턴 true | Message True if success, Message if not

removeIfInvalid() 공개 메소드

Removes recent/favorite tables that don't exist.
public removeIfInvalid ( string $db, string $table ) : boolean | Message
$db string database
$table string table
리턴 boolean | Message True if invalid and removed, False if not invalid, Message if error while removing

saveToDb() 공개 메소드

Save recent/favorite tables into phpMyAdmin database.
public saveToDb ( ) : true | Message
리턴 true | Message

trim() 공개 메소드

Trim recent.favorite table according to the NumRecentTables/NumFavoriteTables configuration.
public trim ( ) : boolean
리턴 boolean True if trimming occurred