PHP 클래스 Prado\Web\UI\TThemeManager

TThemeManager manages the themes used in a Prado application. Themes are stored under the directory specified by the {@link setBasePath BasePath} property. The themes can be accessed via URL {@link setBaseUrl BaseUrl}. Each theme is represented by a subdirectory and all the files under that directory. The name of a theme is the name of the corresponding subdirectory. By default, the base path of all themes is a directory named "themes" under the directory containing the application entry script. To get a theme (normally you do not need to), call {@link getTheme}. TThemeManager may be configured within page service tag in application configuration file as follows, where {@link getCacheExpire CacheExpire}, {@link getCacheControl CacheControl} and {@link getBufferOutput BufferOutput} are configurable properties of THttpResponse.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TModule
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getAvailableThemes ( ) : array
getBasePath ( ) : string
getBaseUrl ( ) : string
getTheme ( $name ) : TTheme
getThemeClass ( ) : string
init ( $config ) Initializes the module.
setBasePath ( $value )
setBaseUrl ( $value )
setThemeClass ( string | null $class )

메소드 상세

getAvailableThemes() 공개 메소드

public getAvailableThemes ( ) : array
리턴 array list of available theme names

getBasePath() 공개 메소드

public getBasePath ( ) : string
리턴 string the base path for all themes. It is returned as an absolute path.

getBaseUrl() 공개 메소드

public getBaseUrl ( ) : string
리턴 string the base URL for all themes.

getTheme() 공개 메소드

public getTheme ( $name ) : TTheme
리턴 TTheme the theme retrieved

getThemeClass() 공개 메소드

public getThemeClass ( ) : string
리턴 string Theme class name in namespace format. Defaults to {@link TThemeManager::DEFAULT_THEMECLASS DEFAULT_THEMECLASS}.

init() 공개 메소드

This method is required by IModule and is invoked by application.
public init ( $config )

setBasePath() 공개 메소드

public setBasePath ( $value )

setBaseUrl() 공개 메소드

public setBaseUrl ( $value )

setThemeClass() 공개 메소드

public setThemeClass ( string | null $class )
$class string | null Theme class name in namespace format