| Function Summary | |
|---|---|
| void | zm_backtrace(string msg) Simple wrapper around debug_backtrace(). |
| boolean | Dispatch the current request. |
| boolean | zm_ends_with(string s, string end) Check if the given string ends with the provided string. |
| void | zm_env() Helper function to dump the ZenMagick environment. |
| void | zm_error_handler(int errno, string errstr, string errfile, int errline, array errcontext) Custom error handler. |
| void | zm_exit() Exit execution. |
| long | Get the currently elapsed page execution time. |
| string | Create a PHP directive for all global ZenMagick objects. |
| boolean | zm_is_empty(mixed value) Check if a given value or array is empty. |
| boolean | zm_is_in_array(string value, mixed array) Check if the given value exists in the array or comma separated list. |
| void | zm_log(string msg, int level) Simple ZenMagick logging function. |
| boolean | zm_mkdir(string dir, int perms, boolean recursive) Make dir. |
| void | zm_redirect(string url) Redirect to the given url. |
| void | zm_resolve_zc_class(string clazz) Resolve the given zen-cart class. |
| void | zm_rmdir(string dir, boolean recursive) Remove a directory (tree). |
| mixed | zm_set_setting(string name, mixed value) Set configuration value. |
| mixed | zm_setting(string name, mixed default) Configuration lookup. |
| array | Get all settings. |
| boolean | zm_starts_with(string s, string start) Check if the given string starts with the provided string. |
public void zm_backtrace(string msg)
Simple wrapper around debug_backtrace().
ZMObject::backtrace() instead.public boolean zm_dispatch()
Dispatch the current request.
true.public boolean zm_ends_with(string s, string end)
Check if the given string ends with the provided string.
true if $s ends with $start,
* false if not.public void zm_env()
Helper function to dump the ZenMagick environment.
public void zm_error_handler(int errno, string errstr, string errfile, int errline, array errcontext)
Custom error handler.
public void zm_exit()
Exit execution.
Calling this function will end all request handling in an ordered manner.
public long zm_get_elapsed_time()
Get the currently elapsed page execution time.
ZMRuntime::getExecutionTime() instead.public string zm_globals()
Create a PHP directive for all global ZenMagick objects.
This can be used as argument for eval(..) to make all
ZenMagick globals available. Example: eval(zm_globals());.
public boolean zm_is_empty(mixed value)
Check if a given value or array is empty.
true if the value is empty or null, false if not.public boolean zm_is_in_array(string value, mixed array)
Check if the given value exists in the array or comma separated list.
array or a string containing a comma separated list.true if the given value exists in the array, false if not.public void zm_log(string msg, int level)
Simple ZenMagick logging function.
ZMObject::log() instead.public boolean zm_mkdir(string dir, int perms, boolean recursive)
Make dir.
true)true on success.public void zm_redirect(string url)
Redirect to the given url.
This function wil also persist existing messages in the session in order to be able to display them after the redirect.
public void zm_resolve_zc_class(string clazz)
Resolve the given zen-cart class.
This functuon ensures that the given class is loaded.
ZMLoader::resolveZCClass() instead.public void zm_rmdir(string dir, boolean recursive)
Remove a directory (tree).
true)public mixed zm_set_setting(string name, mixed value)
Set configuration value.
null.ZMSettings::set() instead.public mixed zm_setting(string name, mixed default)
Configuration lookup.
null.null.ZMSettings::get() instead.public array zm_settings()
Get all settings.
ZMSettings::getAll() instead.public boolean zm_starts_with(string s, string start)
Check if the given string starts with the provided string.
true if $s starts with $start,
* false if not.