PEIP_ABS_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 
00020 abstract class PEIP_ABS_Dispatcher {
00021 
00022     
00023     protected static function doNotify(array $listeners, $subject){
00024         foreach($listeners as $listener){
00025             $listener->handle($subject);    
00026         }   
00027     }  
00028 
00029     protected static function doNotifyUntill(array $listeners, $subject){
00030         foreach ($listeners as $listener){
00031           if ($listener->handle($subject)){
00032             return $listener;
00033           }
00034         }
00035     } 
00036 
00037 
00038 }

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