/** * * pass apis, and they will be accesible in javascripot through this.callback; * * @param unknown_type $apiObj */ function callback($apiObj) { $this->xml->callback = $apiObj; CoreEvents::$cache = CoreEvents::callbacks(CoreEvents::$cache); }