$_apps
$_apps : array
Cached hook objects (keys are application names).
Runs Horde application hooks.
callHook(string $hook, string $app = 'horde', array $args = array()) : mixed
Call a Horde hook.
WARNING: Throwing exceptions is expensive, so use callHook() with care and cache the results if you going to use the results more than once.
string | $hook | The hook function to call. |
string | $app | The hook application. |
array | $args | An array of any arguments to pass to the hook function. |
Thrown on error from hook code.
Thrown if hook is not active.
The results of the hook.
hookExists(string $hook, string $app = 'horde') : boolean
Returns whether a hook exists.
Use this if you have to call a hook many times and expect the hook to not exist.
string | $hook | The hook function. |
string | $app | The hook application. |
True if the hook exists.