[dev] Notification question

Jon Parise jon at horde.org
Fri Jan 10 13:25:48 PST 2003


On Fri, Jan 10, 2003 at 01:24:35PM -0500, Hans Lellelid wrote:

> // seems a little excessive
> $event = new Notification_Event();
> $event->setMessage(_("Your password was updated successfully."));
> $notification->push($event, 'horde.success');
 
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');

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


More information about the dev mailing list