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:
@@ -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__;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user