ZMObject
|
+--ZMThemes
public class ZMThemes
extends ZMObject
| Constructor Summary | |
|---|---|
ZMThemes() Create new instance. |
|
| Method Summary | |
|---|---|
| private array | Generate a list of all theme directories. |
| ZMTheme | getThemeForId(string themeId) Get ZMTheme instance for the given theme Id. |
| ZMThemeInfo | getThemeInfoForId(string themeId) Get ZMThemeInfo instance for the current (or given) theme Id. |
| array | Get a list of all available themes. |
| string | getZCThemeId(int languageId) Get the configured zen-cart theme id (aka the template directory name). |
| static void | instance() Get instance. |
| ZMTheme | resolveTheme(string themeId) Resolve theme incl. |
| void | updateZCThemeId(string themeId, int languageId) Update the configured zen-cart theme id. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| backtrace, create, log, singleton | |
public ZMThemes()
Create new instance. /
private array getThemeDirList()
Generate a list of all theme directories.
public ZMTheme getThemeForId(string themeId)
Get ZMTheme instance for the given theme Id.
ZMTheme instance or null.public ZMThemeInfo getThemeInfoForId(string themeId)
Get ZMThemeInfo instance for the current (or given) theme Id.
null for the current theme id.ZMThemeInfo implementation or null.public array getThemeInfoList()
Get a list of all available themes.
ZMThemeInfo instances.public string getZCThemeId(int languageId)
Get the configured zen-cart theme id (aka the template directory name).
public static void instance()
Get instance. /
public ZMTheme resolveTheme(string themeId)
Resolve theme incl. loader update, theme switching and all theme default handling.
This is the method in the ZenMagick theme handling. It will:
extra codePassing default theme id rather than the current theme id is equivalent to enabling default theme fallback. Coincidentally, this is also the default behaviour.
ZM_DEFAULT_THEME.public void updateZCThemeId(string themeId, int languageId)
Update the configured zen-cart theme id.
Themes.