ZMObject
└─ZMRuntime
public class ZMRuntime
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| static string | Get the full application path (if set). |
| static ZMDatabase | getDatabase(mixed conf) Get the database (provider). |
| static array | Get a list of all used databases. |
| static long | getExecutionTime(string time) Get the currently elapsed page execution time. |
| static string | Get the full ZenMagick installation path. |
| static string | Return the plugin base directory. |
| void | yamlLoad(string yaml, array defaults, boolean override) Load mappings from a YAML style string. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public static string getApplicationPath()
Get the full application path (if set).
null.public static ZMDatabase getDatabase(mixed conf)
Get the database (provider).
ZMDatabase instances are cached, based on the given $conf data.
Supported keys for $conf are:
mysql.DB_SERVER.DB_SERVER_USERNAME.DB_SERVER_PASSWORD.DB_DATABASE.ZMSettings::get('zenmagick.core.database.provider').null.If the given parameter $conf is a string, the method will
lookup database settings using a settings key build like: zenmagick.core.database.connections.[$conf].
ZMDatabase implementation.public static array getDatabases()
Get a list of all used databases.
ZMDatabase instances.public static long getExecutionTime(string time)
Get the currently elapsed page execution time.
public static string getInstallationPath()
Get the full ZenMagick installation path.
public static string getPluginBasePath()
Return the plugin base directory.
May be configured via the setting . Default is ../lib/plugins.
public void yamlLoad(string yaml, array defaults, boolean override)
Load mappings from a YAML style string.
true to override.
Central place for runtime stuff.
This is kind of the application context.