public function getList() { try { return $this->transactionList->getHtml(10); } catch (Exception $e) { if (Gpf_Log::isLogToDisplay()) { Gpf_Log::critical('Report list, getHtml exception: ' . $e->getMessage()); } else { Gpf_Log::addLogger(Gpf_Log_LoggerDisplay::TYPE, Gpf_Log::CRITICAL); Gpf_Log::critical('Report list, getHtml exception: ' . $e->getMessage()); Gpf_Log::disableType(Gpf_Log_LoggerDisplay::TYPE); } throw $e; } }
protected function initLogger() { try { Gpf_Log::addLogger(Gpf_Log_LoggerDatabase::TYPE, Pap_Logger::getLogLevel()); } catch (Gpf_Exception $e) { } }