PHP 클래스 Prado\Web\UI\TTheme

TTheme represents a particular theme. It is merely a collection of skins that are applicable to the corresponding controls. Each theme is stored as a directory and files under that directory. The theme name is the directory name. When TTheme is created, the files whose name has the extension ".skin" are parsed and saved as controls skins. A skin is essentially a list of initial property values that are to be applied to a control when the skin is applied. Each type of control can have multiple skins identified by the SkinID. If a skin does not have SkinID, it is the default skin that will be applied to controls that do not specify particular SkinID. Whenever possible, TTheme will try to make use of available cache to save the parsing time. To apply a theme to a particular control, call {@link applySkin}.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TApplicationComponent, implements Prado\Web\UI\ITheme
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( $themePath, $themeUrl ) Constructor.
applySkin ( $control ) : boolean Applies the theme to a particular control.
getBasePath ( ) : string
getBaseUrl ( ) : string
getJavaScriptFiles ( ) : array
getName ( ) : string
getSkins ( ) : array
getStyleSheetFiles ( ) : array

보호된 메소드들

메소드 설명
setBasePath ( $value )
setBaseUrl ( $value )
setJavaScriptFiles ( $value )
setName ( $value )
setSkins ( $value )
setStyleSheetFiles ( $value )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $themePath, $themeUrl )

applySkin() 공개 메소드

The control's class name and SkinID value will be used to identify which skin to be applied. If the control's SkinID is empty, the default skin will be applied.
public applySkin ( $control ) : boolean
리턴 boolean if a skin is successfully applied

getBasePath() 공개 메소드

public getBasePath ( ) : string
리턴 string the file path to the theme folder

getBaseUrl() 공개 메소드

public getBaseUrl ( ) : string
리턴 string the URL to the theme folder (without ending slash)

getJavaScriptFiles() 공개 메소드

public getJavaScriptFiles ( ) : array
리턴 array list of Javascript files (URL) in the theme

getName() 공개 메소드

public getName ( ) : string
리턴 string theme name

getSkins() 공개 메소드

public getSkins ( ) : array
리턴 array list of skins for the theme

getStyleSheetFiles() 공개 메소드

public getStyleSheetFiles ( ) : array
리턴 array list of CSS files (URL) in the theme

setBasePath() 보호된 메소드

protected setBasePath ( $value )

setBaseUrl() 보호된 메소드

protected setBaseUrl ( $value )

setJavaScriptFiles() 보호된 메소드

protected setJavaScriptFiles ( $value )

setName() 보호된 메소드

protected setName ( $value )

setSkins() 보호된 메소드

protected setSkins ( $value )

setStyleSheetFiles() 보호된 메소드

protected setStyleSheetFiles ( $value )