ZenMagick 0.9.11


zenmagick.store.shared\Runtime
Runtime.php at line 33

Class Runtime

ZMRuntime
└─Runtime

public class Runtime
extends ZMRuntime

Store runtime.

Author:
DerManoMann

Method Summary
static ZMCurrency

getCurrency()

Get the current currency.

static queryFactory

getDB()

Get the database dao.

static ZMLanguage

getDefaultLanguage()

Get the default language.

static ZMLanguage

getLanguage()

Get the language.

static string

getPluginContext()

Get the context for plugins.

static string

getPluginPathPrefix()

Return the base path for plugin URIs.

static ZMTheme

getTheme()

Get the current theme.

static string

getThemeId()

Get the effective theme id.

static string

getThemesDir()

Return the directory containing all themes.

static string

getThemesPathPrefix()

Return the base path for theme URIs.

static void

setTheme(ZMTheme theme)

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

Method Detail

Runtime.php at line 172

getCurrency

public static ZMCurrency getCurrency()

Get the current currency.

Returns:
The current currency.

Runtime.php at line 44

getDB

public static queryFactory getDB()

Get the database dao.

Returns:
*The* zen-cart queryFactory instance.

Runtime.php at line 155

getDefaultLanguage

public static ZMLanguage getDefaultLanguage()

Get the default language.

Returns:
The default language.

Runtime.php at line 146

getLanguage

public static ZMLanguage getLanguage()

Get the language.

Returns:
The current language.

Runtime.php at line 51

getPluginContext

public static string getPluginContext()

Get the context for plugins.

Returns:
Either Plugin::CONTEXT_STOREFRONT or Plugin::CONTEXT_ADMIN.

Runtime.php at line 74

getPluginPathPrefix

public static string getPluginPathPrefix()

Return the base path for plugin URIs.

Returns:
The URL path prefix for all plugins.

Runtime.php at line 124

getTheme

public static ZMTheme getTheme()

Get the current theme.

Returns:
The current theme.

Runtime.php at line 82

getThemeId

public static string getThemeId()

Get the effective theme id.

Returns:
The currently effective theme id.
Deprecated:
use ZMThemes::instance()->getActiveThemeId($languageId=0) instead

Runtime.php at line 60

getThemesDir

public static string getThemesDir()

Return the directory containing all themes.

Returns:
The base directory for themes.

Runtime.php at line 67

getThemesPathPrefix

public static string getThemesPathPrefix()

Return the base path for theme URIs.

Returns:
The URL path prefix for all themes.

Runtime.php at line 137

setTheme

public static void setTheme(ZMTheme theme)

Set the current theme.

Parameters:
theme - The theme.

Runtime.php at line 114

setThemeId

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.

Parameters:
themeId - The new theme id.
Deprecated:
use ZMThemes::instance()->setThemeChain(...) instead

ZenMagick 0.9.11