PEIP_Interceptor_Dispatcher.php

Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of the PEIP package.
00005  * (c) 2010 Timo Michna <timomichna/yahoo.de>
00006  * 
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
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 }

Generated on Mon Apr 12 11:39:00 2010 for PEIP by  doxygen 1.5.1