ZMObject
└─ZMThemes
public class ZMThemes
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| ZMTheme | getThemeForId(string themeId) Get ZMTheme instance for the 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, ZMLanguage language) Resolve theme incl. |
| void | updateZCThemeId(string themeId, int languageId) Update the configured zen-cart theme id. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public ZMTheme getThemeForId(string themeId)
Get ZMTheme instance for the given theme Id.
ZMTheme instance or null.public array getThemes()
Get a list of all available themes.
ZMTheme 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, ZMLanguage language)
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.
public void updateZCThemeId(string themeId, int languageId)
Update the configured zen-cart theme id.
Themes.