Re: Horde Notification

Jan Schneider <[email protected]> Mon, 02 Jan 2017 10:11:29 +0000
Newsgroups gmane.comp.horde.devel
Message-ID <[email protected]>
Zitat von Sebastian Birnbach <[email protected]>:

> 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/

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]