public function eventHandler($e, $obj) { if (method_exists($this, $e)) { call_user_func(array($this, $e), $e, $obj); } }