コード例 #1
0
 /**
  * Verarbeitet den JsonRPC Request mit Pre-/Postdispatch Aufrufen
  */
 protected function _handle()
 {
     try {
         $pluginregistry = Zend_Registry::get('Dragon_Plugin_Registry');
         $request = $this->getRequest();
         $request->setClassname($this->_table->getMethod($request->getMethod())->getCallback()->getClass());
         $pluginregistry->invoke('Dragon_Json_Plugin_PreDispatch_Interface', array($request));
         parent::_handle();
         $pluginregistry->invoke('Dragon_Json_Plugin_PostDispatch_Interface', array($request, $this->getResponse()));
     } catch (Exception $exception) {
         $this->_logException($exception);
         if ($exception instanceof Dragon_Application_Exception_Abstract) {
             $this->fault($exception->getMessage(), $exception->getCode(), $exception->getData());
         } else {
             $this->fault($exception->getMessage(), $exception->getCode(), $exception);
         }
     }
 }