[dev] Notification question

Hans Lellelid hans at appliedsec.com
Fri Jan 10 11:47:30 PST 2003


I'm wanting to use the notification system as a more generic Events 
system -- e.g. to alert recipients when messages are sent to them, or 
when threads have been updated, etc.  I discovered pretty quickly that 
this should be pretty easy w/ the Notification/Listener framework.  I 
can create my own listener that will handle the complex logic that will 
go into who gets notified of what when $notification->notify() gets called.

The one question I had for this list is whether there is any design 
reason why $message in the $notification->push() method would need to be 
a string.  I would like to push an array -- e.g. with the thread_id that 
was updated etc. -- and while there doesn't seem to be anything in the 
Notification class that would prevent this, the assumption does seem to 
be that $message is a string -- and I'm wondering if there is any larger 
picture in Horde that I'm missing.  (I don't want to misuse the API so 
that my app would be incompatible w/ future releases.)

Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4461 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.horde.org/archives/dev/attachments/20030110/79449f43/smime.bin


More information about the dev mailing list