Dispatcher.php 203 Bytes
Newer Older
Avris's avatar
Avris committed
1 2 3 4 5
<?php
namespace Picco;class Dispatcher{
protected $e;
function set($n,$c){$this->e[$n][]=$c;}
function trigger($n,$a){foreach((array)@$this->e[$n]as$e)if(null!==$r=call_user_func_array($e,$a))return$r;}}