/** * Register a plugin * * @param Plugin $xPlugin An instance of a plugin * @param integer $nPriority The plugin priority, used to order the plugins * * @return void */ function registerJaxonPlugin(\Jaxon\Plugin\Plugin $xPlugin, $nPriority = 1000) { \Jaxon\Jaxon::getInstance()->registerPlugin($xPlugin, $nPriority); }
/** * Set the global Jaxon response object * * @return void */ public function setGlobalResponse() { $this->response = Jaxon::getGlobalResponse(); }