handle = $event_handle; } function handle_the_event(){ $name = "handler_{$this->handle}"; if (class_exists("$name")){ $handler_obj = new $name($this->handle); $response = $handler_obj->handled_event(); return $response; }else{ echo "I can't handle this!"; } } } ?>