eventType); if(isset($eventTypes[1])) { $instruction = 'on' . ucfirst($eventTypes[1]); $this->$instruction($event); } } $this->CI =& get_instance(); } public function __call($name, $args) { // do nothing } }