PHP Class 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}.
Afficher le fichier
Open project: pradosoft/prado
Méthodes publiques
Méthodes protégées
Method Details
__construct()
public méthode
applySkin()
public méthode
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.
getBasePath()
public méthode
getBaseUrl()
public méthode
getJavaScriptFiles()
public méthode
getSkins()
public méthode
getStyleSheetFiles()
public méthode
setBasePath()
protected méthode
setBaseUrl()
protected méthode
setJavaScriptFiles()
protected méthode
setName()
protected méthode
setSkins()
protected méthode
setStyleSheetFiles()
protected méthode