ZMObject
|
+--ZMRuntime
public class ZMRuntime
extends ZMObject
| Method Summary | |
|---|---|
| static void | finish() Finish execution. |
| static string | The application context. |
| static ZMCurrency | Get the current currency. |
| static queryFactory | getDB() Get the database dao. |
| static ZMDatabase | Get the database (provider). |
| static ZMLanguage | Get the default language. |
| static long | getExecutionTime(string time) Get the currently elapsed page execution time. |
| static ZMLanguage | Get the language. |
| static string | Return the directory containing all plugins. |
| static string | getScope() Get the application scope. |
| 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 string | Get the full ZenMagick installation path. |
| static void | instance() Get instance. |
| static void | Set the current theme. |
| static void | setThemeId(string themeId) Set the theme id. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| backtrace, create, log, singleton | |
public static void finish()
Finish execution.
Calling this function will end all request handling in an ordered manner.
/public static string getContext()
The application context.
public static ZMCurrency getCurrency()
Get the current currency.
public static queryFactory getDB()
Get the database dao.
queryFactory instance.public static ZMDatabase getDatabase()
Get the database (provider).
ZMDatabase implementation.public static ZMLanguage getDefaultLanguage()
Get the default language.
public static long getExecutionTime(string time)
Get the currently elapsed page execution time.
public static ZMLanguage getLanguage()
Get the language.
public static string getPluginsDir()
Return the directory containing all plugins.
public static string getScope()
Get the application scope.
ZM_SCOPE_STORE or ZM_SCOPE_ADMIN.public static ZMTheme getTheme()
Get the current theme.
public static string getThemeId()
Get the effective theme id.
public static string getThemesDir()
Return the directory containing all themes.
public static string getThemesPathPrefix()
Return the base path for theme URIs.
public static string getZMRootPath()
Get the full ZenMagick installation path.
public static void instance()
Get instance. /
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.
A central place for all runtime stuff.
This is kind of the application context.