Re: Issues with Event_Dispatcher

From: Date: Wed, 13 Apr 2005 05:58:54 +0000
Subject: Re: Issues with Event_Dispatcher
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18718@lists.php.net to get a copy of this message
On 13/04/2005, at 3:12 PM, Dan Rossi wrote:
another correction Logout { function Logout() { } function get($notification) { switch ($notification->getNotificationName()) { case 'onLogin': $this->onLogin(); break; case 'onLogout': $this->onLogout(); break; } }
another funky update change the switch in get with this $this->{$notification->getNotificationName()}($notification);

« previous php.pear.general (#18718) next »