/** * Added extra information for debug purposes on the error handler screen * * @param string $name * @param string $value */ public function addExtraInfo($name, $value) { if (method_exists($this->_handler, 'addDataTable')) { $data = $this->_handler->getDataTable(); $this->_handler->addDataTable('Info #' . (count($data) + 1), array($name => $value)); } }
protected function setupJsonResponseHandler() { if (!empty($this->jsonHandlerConfig['show_trace'])) { $this->jsonHandler->addTraceToOutput(true); } if (!empty($this->jsonHandlerConfig['ajax_only'])) { $this->jsonHandler->onlyForAjaxRequests(true); } if (!empty($this->jsonHandlerConfig['context_based_only']) && method_exists($this->jsonHandler, 'onlyForJsonRequests')) { $this->jsonHandler->onlyForJsonRequests(true); } $this->run->pushHandler($this->jsonHandler); }
/** * Added extra information for debug purposes on the error handler screen * * @param string $name * @param value $value */ public function addExtraInfo($name, $value) { if (method_exists($this->_handler, 'addDataTable')) { $this->_handler->addDataTable('Xmlnuke Debug', array($name => $value)); } }