00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00022 class PEIP_Interceptor_Dispatcher
00023 extends PEIP_ABS_Map_Dispatcher {
00024
00025
00040 public function notify($eventName, $parameters){
00041 foreach($this->getListeners($eventName) as $interceptorHandler){
00042 call_user_func_array(array($interceptorHandler, 'handle'), $parameters);
00043 }
00044 }
00045
00067 public function notifyUntil($eventName, $parameters){
00068 foreach($this->getListeners($eventName) as $interceptor){
00069 $res = call_user_func_array(array($interceptor, 'handle'), $parameters);
00070 if($res){
00071 return $res;
00072 }
00073 }
00074 }
00075
00076
00077
00078
00079 }