Наследование: implements Tracy\IBarPanel, use trait Nette\SmartObject
Пример #1
0
 /**
  * @param \PDOException
  * @return array
  */
 public function renderException($e)
 {
     if ($e instanceof \PDOException && count($this->queries)) {
         $s = '<table><tr><th>Time&nbsp;ms</th><th>SQL</th><th>Params</th></tr>';
         $s .= $this->processQuery(end($this->queries));
         $s .= '</table>';
         return array('tab' => 'SQL', 'panel' => $this->renderStyles() . '<div class="nette-inner nette-Doctrine2Panel">' . $s . '</div>');
     } else {
         ConnectionPanel::renderException($e);
     }
 }