mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
* better datetime converting in DibiResult (see http://forum.dibiphp.com/viewtopic.php?pid=2331)
* added support for Nette_Debug * renamed NObject -> Nette_Object (Nette::Object in PHP 5.3)
This commit is contained in:
@@ -42,7 +42,7 @@ class DibiException extends Exception
|
||||
* @package dibi
|
||||
* @version $Revision$ $Date$
|
||||
*/
|
||||
class DibiDriverException extends DibiException implements IDebuggable
|
||||
class DibiDriverException extends DibiException implements Nette_IDebuggable
|
||||
{
|
||||
/** @var string */
|
||||
private static $errorMsg;
|
||||
@@ -87,6 +87,27 @@ class DibiDriverException extends DibiException implements IDebuggable
|
||||
|
||||
|
||||
|
||||
/********************* interface Nette_IDebuggable ****************d*g**/
|
||||
|
||||
|
||||
/**
|
||||
* Returns custom panels.
|
||||
* @return array
|
||||
*/
|
||||
public function getPanels()
|
||||
{
|
||||
$panels = array();
|
||||
if ($this->sql !== NULL) {
|
||||
$panels['SQL'] = array(
|
||||
'expanded' => TRUE,
|
||||
'content' => dibi::dump($this->sql, TRUE),
|
||||
);
|
||||
}
|
||||
return $panels;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/********************* error catching ****************d*g**/
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user