PHP 클래스 PMA\libraries\Theme

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

공개 프로퍼티들

프로퍼티 타입 설명
$filesize_info needed because sometimes, the mtime for different themes is identical
$id theme id
$img_path image path
$mtime_info last modification time for info file
$name theme name
$path theme path
$version theme version

공개 메소드들

메소드 설명
checkImgPath ( ) : boolean checks image path for existence - if not found use img from fallback theme
checkVersion ( string $version ) : boolean checks theme version against $version returns true if theme version is equal or higher to $version
getCssGradient ( string $start_color, string $end_color ) : string Generates code for CSS gradient using various browser extensions.
getFontSize ( ) : String Gets currently configured font size.
getId ( ) : string returns id
getImgPath ( string $file = null ) : string Returns the path to image for the theme.
getLayoutFile ( ) : string returns layout file
getName ( ) : string returns name
getPath ( ) : string returns path to theme
getPrintPreview ( ) : string Renders the preview for this theme
getSpriteData ( ) : array Loads sprites data
getVersion ( ) : string returns version
load ( string $folder ) : Theme | false returns theme object loaded from given folder or false if theme is invalid
loadCss ( ) : boolean load css (send to stdout, normally the browser)
loadInfo ( ) : boolean Loads theme information
setId ( string $id ) : void sets id
setImgPath ( string $path ) : void Sets path to images for the theme
setName ( string $name ) : void sets name
setPath ( string $path ) : void set path to theme
setVersion ( string $version ) : void sets version

메소드 상세

checkImgPath() 공개 메소드

checks image path for existence - if not found use img from fallback theme
public checkImgPath ( ) : boolean
리턴 boolean

checkVersion() 공개 메소드

checks theme version against $version returns true if theme version is equal or higher to $version
public checkVersion ( string $version ) : boolean
$version string version to compare to
리턴 boolean true if theme version is equal or higher to $version

getCssGradient() 공개 메소드

Generates code for CSS gradient using various browser extensions.
public getCssGradient ( string $start_color, string $end_color ) : string
$start_color string Color of gradient start, hex value without #
$end_color string Color of gradient end, hex value without #
리턴 string CSS code.

getFontSize() 공개 메소드

Gets currently configured font size.
public getFontSize ( ) : String
리턴 String with font size.

getId() 공개 메소드

returns id
public getId ( ) : string
리턴 string id

getImgPath() 공개 메소드

If filename is given, it possibly fallbacks to fallback theme for it if image does not exist.
public getImgPath ( string $file = null ) : string
$file string file name for image
리턴 string image path for this theme

getLayoutFile() 공개 메소드

returns layout file
public getLayoutFile ( ) : string
리턴 string layout file

getName() 공개 메소드

returns name
public getName ( ) : string
리턴 string name

getPath() 공개 메소드

returns path to theme
public getPath ( ) : string
리턴 string path to theme

getPrintPreview() 공개 메소드

Renders the preview for this theme
public getPrintPreview ( ) : string
리턴 string

getSpriteData() 공개 메소드

Loads sprites data
public getSpriteData ( ) : array
리턴 array with sprites

getVersion() 공개 메소드

returns version
public getVersion ( ) : string
리턴 string version

load() 공개 정적인 메소드

returns theme object loaded from given folder or false if theme is invalid
public static load ( string $folder ) : Theme | false
$folder string path to theme
리턴 Theme | false

loadCss() 공개 메소드

load css (send to stdout, normally the browser)
public loadCss ( ) : boolean
리턴 boolean

loadInfo() 공개 메소드

Loads theme information
public loadInfo ( ) : boolean
리턴 boolean whether loading them info was successful or not

setId() 공개 메소드

sets id
public setId ( string $id ) : void
$id string new id
리턴 void

setImgPath() 공개 메소드

Sets path to images for the theme
public setImgPath ( string $path ) : void
$path string path to images for this theme
리턴 void

setName() 공개 메소드

sets name
public setName ( string $name ) : void
$name string name to set
리턴 void

setPath() 공개 메소드

set path to theme
public setPath ( string $path ) : void
$path string path to theme
리턴 void

setVersion() 공개 메소드

sets version
public setVersion ( string $version ) : void
$version string version to set
리턴 void

프로퍼티 상세

$filesize_info 공개적으로 프로퍼티

needed because sometimes, the mtime for different themes is identical
public $filesize_info

$id 공개적으로 프로퍼티

theme id
public $id

$img_path 공개적으로 프로퍼티

image path
public $img_path

$mtime_info 공개적으로 프로퍼티

last modification time for info file
public $mtime_info

$name 공개적으로 프로퍼티

theme name
public $name

$path 공개적으로 프로퍼티

theme path
public $path

$version 공개적으로 프로퍼티

theme version
public $version