ZMRuntime
public class ZMRuntime
| 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 array | Return the plugin base directory. |
| static mixed | singleton(string name, string instance, boolean force) Get a singleton instance of the named class. |
| static void | yamlParse(string yaml, array defaults, boolean override) Load mappings from a YAML style string. |
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 array getPluginBasePath()
Return the plugin base directory.
May be configured via the setting . Default is ../lib/plugins.
public static mixed singleton(string name, string instance, boolean force)
Get a singleton instance of the named class.
public static void yamlParse(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.