1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 15:16:58 +02:00

updated for Nette 2.0 beta

This commit is contained in:
David Grudl
2011-04-21 01:52:02 +02:00
parent 8a899c7ddb
commit 0de947883b
7 changed files with 358 additions and 364 deletions

View File

@@ -29,7 +29,7 @@ if (!defined('NETTE')) {
*
* @author David Grudl
*/
class DibiException extends Exception implements IDebugPanel
class DibiException extends Exception
{
/** @var string */
private $sql;
@@ -68,43 +68,6 @@ class DibiException extends Exception implements IDebugPanel
return parent::__toString() . ($this->sql ? "\nSQL: " . $this->sql : '');
}
/********************* interface Nette\IDebugPanel ****************d*g**/
/**
* Returns HTML code for custom tab.
* @return mixed
*/
public function getTab()
{
return 'SQL';
}
/**
* Returns HTML code for custom panel.
* @return mixed
*/
public function getPanel()
{
return $this->sql ? dibi::dump($this->sql, TRUE) : NULL;
}
/**
* Returns panel ID.
* @return string
*/
public function getId()
{
return __CLASS__;
}
}