Class TThemeManager
TThemeManager class
TThemeManager manages the themes used in a Prado application.
Themes are stored under the directory specified by the setBasePath
BasePath property. The themes can be accessed via URL 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 TThemeManager::getTheme()
.
TThemeManager may be configured within page service tag in application configuration file as follows, <module id="themes" class="System.Web.UI.TThemeManager" BasePath="Application.themes" BaseUrl="/themes" /> where getCacheExpire CacheExpire, getCacheControl CacheControl and getBufferOutput BufferOutput are configurable properties of THttpResponse.
- TComponent
-
TApplicationComponent
-
TModule implements IModule
-
TThemeManager
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/TThemeManager.php
public
|
#
init(
Initializes the module. This method is required by IModule and is invoked by application. |
public
|
|
public
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
getID(),
setID()
|
getApplication(),
getRequest(),
getResponse(),
getService(),
getSession(),
getUser(),
publishAsset(),
publishFilePath()
|
string |
DEFAULT_BASEPATH |
'themes' |
#
default themes base path |
string |
DEFAULT_THEMECLASS |
'TTheme' |
#
default theme class |
GLOBAL_RAISE_EVENT_LISTENER
|