[dev] Horde Notification

Jan Schneider jan at horde.org
Mon Jan 2 10:11:29 UTC 2017


Zitat von Sebastian Birnbach <birnbacs at gmail.com>:

> I came across the Horde_Notification lib as a means to display user
> messages. The library seems to go way beyond this but I could not find
> example code or a writeup on the notification mechanism.
>
> questions:
> * what listeners are there in a standard Horde installation?

The Status and Audio listeners are included with the  
Horde_Notification library. Horde_Core extends those with the  
DynamicStatus, SmartmobileStatus, and Webnotification listeners.

> * what are the supported status levels? horde.error, horde.warning,
> horde.message - anything else?

You can add arbitrary "types", but the following are supported out of  
the box by Horde_Core, additionally to those that you mentioned:  
horde.alarm, horde.success

> * how can notifications be used for logging?

There are decorator classes in both Horde_Notification and Horde_Core  
to log events sent with the notification API.

> * can notifications be used for sending emails? The API docs speak of this
> possibility but I am not sure how to do it - and why to prefer it over
> using the mail application API directly.

Not out of the box.

> Thanks and a good new year to everybody!
>
>   Sebastian



-- 
Jan Schneider
The Horde Project
https://www.horde.org/



More information about the dev mailing list