ZMRuntime
└─Runtime
public class Runtime
extends ZMRuntime
| Method Summary | |
|---|---|
| static ZMCurrency | Get the current currency. |
| static queryFactory | getDB() Get the database dao. |
| static ZMLanguage | Get the default language. |
| static ZMLanguage | Get the language. |
| static string | Get the context for plugins. |
| static string | Return the base path for plugin URIs. |
| static ZMTheme | getTheme() Get the current theme. |
| static string | Get the effective theme id. |
| static string | Return the directory containing all themes. |
| static string | Return the base path for theme URIs. |
| static void | Set the current theme. |
| static void | setThemeId(string themeId) Set the theme id. |
| Methods inherited from org.zenmagick.core\ZMRuntime | |
|---|---|
| getApplicationPath, getDatabase, getDatabases, getExecutionTime, getInstallationPath, getPluginBasePath, singleton, yamlParse | |
public static ZMCurrency getCurrency()
Get the current currency.
public static queryFactory getDB()
Get the database dao.
queryFactory instance.public static ZMLanguage getDefaultLanguage()
Get the default language.
public static ZMLanguage getLanguage()
Get the language.
public static string getPluginContext()
Get the context for plugins.
Plugin::CONTEXT_STOREFRONT or Plugin::CONTEXT_ADMIN.public static string getPluginPathPrefix()
Return the base path for plugin URIs.
public static ZMTheme getTheme()
Get the current theme.
public static string getThemeId()
Get the effective theme id.
ZMThemes::instance()->getActiveThemeId($languageId=0) insteadpublic static string getThemesDir()
Return the directory containing all themes.
public static string getThemesPathPrefix()
Return the base path for theme URIs.
public static void setTheme(ZMTheme theme)
Set the current theme.
public static void setThemeId(string themeId)
Set the theme id.
This will overwrite the configured theme id.
Calling this method is quite expensive, as all theme specific stuff needs to be updated - this is not completely implemented yet.
ZMThemes::instance()->setThemeChain(...) instead
Store runtime.