PHP 클래스 PMA\libraries\ThemeManager

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

공개 프로퍼티들

프로퍼티 타입 설명
$active_theme name of active theme
$cookie_name cookie name
$per_server boolean
$theme Theme active theme
$theme_default string
$themes available themes

공개 메소드들

메소드 설명
__construct ( ) Constructor for Theme Manager class
checkConfig ( ) : void Checks configuration
checkTheme ( string $theme ) : boolean checks if given theme name is a known theme
getFallBackTheme ( ) : Theme returns Theme object for fall back theme
getHtmlSelectBox ( boolean $form = true ) : string returns HTML selectbox, with or without form enclosed
getInstance ( ) : Response Returns the singleton Response object
getPrintPreviews ( ) : string Renders the previews for all themes
getThemeCookie ( ) : string returns name of theme stored in the cookie
getThemeCookieName ( ) : string Returns name for storing theme
init ( ) : void Initialise the class
initializeTheme ( ) : void Theme initialization
loadThemes ( ) : boolean read all themes
makeBc ( ) : void enables backward compatibility
printCss ( ) : boolean prints css data
setActiveTheme ( string $theme = null ) : boolean Sets active theme
setThemeCookie ( ) : boolean save theme in cookie
setThemePerServer ( boolean $per_server ) : void sets if there are different themes per server
setThemesPath ( string $path ) : boolean sets path to folder containing the themes

비공개 메소드들

메소드 설명
_checkThemeFolder ( string $folder ) : boolean Checks whether folder is valid for storing themes

메소드 상세

__construct() 공개 메소드

Constructor for Theme Manager class
public __construct ( )

checkConfig() 공개 메소드

Checks configuration
public checkConfig ( ) : void
리턴 void

checkTheme() 공개 메소드

checks if given theme name is a known theme
public checkTheme ( string $theme ) : boolean
$theme string name fo theme to check for
리턴 boolean

getFallBackTheme() 공개 메소드

returns Theme object for fall back theme
public getFallBackTheme ( ) : Theme
리턴 Theme fall back theme

getHtmlSelectBox() 공개 메소드

returns HTML selectbox, with or without form enclosed
public getHtmlSelectBox ( boolean $form = true ) : string
$form boolean whether enclosed by from tags or not
리턴 string

getInstance() 공개 정적인 메소드

Returns the singleton Response object
public static getInstance ( ) : Response
리턴 Response object

getPrintPreviews() 공개 메소드

Renders the previews for all themes
public getPrintPreviews ( ) : string
리턴 string

getThemeCookie() 공개 메소드

returns name of theme stored in the cookie
public getThemeCookie ( ) : string
리턴 string theme name from cookie

getThemeCookieName() 공개 메소드

Returns name for storing theme
public getThemeCookieName ( ) : string
리턴 string cookie name

init() 공개 메소드

Initialise the class
public init ( ) : void
리턴 void

initializeTheme() 공개 정적인 메소드

Theme initialization
public static initializeTheme ( ) : void
리턴 void

loadThemes() 공개 메소드

read all themes
public loadThemes ( ) : boolean
리턴 boolean true

makeBc() 공개 메소드

enables backward compatibility
public makeBc ( ) : void
리턴 void

printCss() 공개 메소드

prints css data
public printCss ( ) : boolean
리턴 boolean

setActiveTheme() 공개 메소드

Sets active theme
public setActiveTheme ( string $theme = null ) : boolean
$theme string theme name
리턴 boolean true on success

setThemeCookie() 공개 메소드

save theme in cookie
public setThemeCookie ( ) : boolean
리턴 boolean true

setThemePerServer() 공개 메소드

sets if there are different themes per server
public setThemePerServer ( boolean $per_server ) : void
$per_server boolean Whether to enable per server flag
리턴 void

setThemesPath() 공개 메소드

sets path to folder containing the themes
public setThemesPath ( string $path ) : boolean
$path string path to themes folder
리턴 boolean success

프로퍼티 상세

$active_theme 공개적으로 프로퍼티

name of active theme
public $active_theme

$per_server 공개적으로 프로퍼티

public bool $per_server
리턴 boolean

$theme 공개적으로 프로퍼티

Theme active theme
public $theme

$theme_default 공개적으로 프로퍼티

public string $theme_default
리턴 string

$themes 공개적으로 프로퍼티

available themes
public $themes