Registers a listener with the notification object and includes
the necessary library file dynamically.
public attach ( string $listener, array $params = null, string $class = null ) : Horde_Notification_Listener | ||
$listener | string | The name of the listener to attach. These names must be unique; further listeners with the same name will be ignored. |
$params | array | A hash containing any additional configuration or connection parameters a listener driver might need. |
$class | string | 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 |
return | Horde_Notification_Listener | The listener object. |