$_decorators
$_decorators : array
Decorators.
The Horde_Notification package provides a subject-observer pattern for raising and showing messages of different types and to different listeners.
attach(string $listener, array $params = null, string $class = null) : \Horde_Notification_Listener
Registers a listener with the notification object and includes the necessary library file dynamically.
string | $listener | The name of the listener to attach. These names must be unique; further listeners with the same name will be ignored. |
array | $params | A hash containing any additional configuration or connection parameters a listener driver might need. |
string | $class | The class name from which the driver was instantiated if not the default one. If given you have to include the library file containing this class yourself. This is useful if you want the listener driver to be overriden by an application's implementation |
The listener object.
addType(string $listener, string $type, string $class)
Adds a type handler to a given Listener.
To change the default listener, use the following:
$ob->addType('default', '*', $classname);
string | $listener | The listener name. |
string | $type | The listener type. |
string | $class | The Event class to use. |
addDecorator(\Horde_Notification_Handler_Decorator_Base $decorator)
Add a decorator.
\Horde_Notification_Handler_Decorator_Base | $decorator | The Decorator object. |
push(mixed $event, string $type = null, array $flags = array(), array $options = array())
Add an event to the Horde message stack.
mixed | $event | Horde_Notification_Event object or message string. |
string | $type | The type of message. |
array | $flags | Array of optional flags that will be passed to the registered listeners. |
array | $options | Additional options: 'immediate' - (boolean) If true, immediately tries to attach to a listener. If no listener exists for this type, the message will be dropped. DEFAULT: false (message will be attached to available handler at the time notify() is called). |
notify(array $options = array())
Passes the message stack to all listeners and asks them to handle their messages.
array | $options | An array containing display options for the listeners. Any options not contained in this list will be passed to the listeners. listeners - (array) The list of listeners to notify. raw - (boolean) If true, does not call the listener's notify() function. |