[dev] Notification question

Jon Parise jon at horde.org
Fri Jan 10 14:16:16 PST 2003


On Fri, Jan 10, 2003 at 01:27:11PM -0500, Chuck Hagenbuch wrote:

> > I don't think it's that excessive.  It's fairly literate, actually.
> > I suppose the common use case could always be shorted to:
> > 
> > $event = new Notification_Event(_("Your password was updated
> > successfully."));
> > $notification->push($event, 'horde.success');
> 
> I was actually thinking that push() would transparently create a
> Notification_Event object if it was passed a string.

I don't like voodoo.  If push() is going to accept an object, it
should always accept an object.

I haven't decided how I feel about the backwards compatibility
argument for this yet.

-- 
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)


More information about the dev mailing list