Class DibiProfiler


dibi basic logger & profiler (experimental).

DibiObject
   |
   --DibiProfiler

Implements interfaces:

IDibiProfiler
Copyright: Copyright (c) 2005, 2010 David Grudl
Located: in /libs/DibiProfiler.php (line 21)
Constructor Summary
public
Method Summary
void
after (int $ticket, [DibiResult $res = NULL])
After event notification.
int
before (DibiConnection $connection, int $event, [string $sql = NULL])
Before event notification.
void
After exception notification.
static void
json_encode ($val)
DibiProfiler
setFile (string $file)
DibiProfiler
setFilter (int $filter)
Methods Inherited From DibiObject
DibiObject::extensionMethod(), DibiObject::getClass(), DibiObject::getReflection(), DibiObject::__call(), DibiObject::__callStatic(), DibiObject::__get(), DibiObject::__isset(), DibiObject::__set(), DibiObject::__unset()
Constant Summary
int FIREBUG_MAX_LENGTH 500

line 27

maximum SQL length
int FIREBUG_MAX_ROWS 30

line 24

maximum number of rows
Variable Summary
static array $table array(array('Time', 'SQL Statement', 'Rows', 'Connection'))

line 42

array $tickets array()

line 39

bool $useFirebug

line 33

log to firebug?

Constructor Details

line 46

__construct

public __construct ()

Method Details

line 99

after

public void after (int $ticket, [DibiResult $res = NULL])

After event notification.

Implementation of:

Input
int $ticket
DibiResult $res
Output
void  

line 84

before

public int before (DibiConnection $connection, int $event, [string $sql = NULL])

Before event notification.

Implementation of:

Input
DibiConnection $connection
int $event event name
string $sql sql
Output
int  

line 166

exception

public void exception (DibiDriverException $exception)

After exception notification.

Implementation of:

Input
DibiDriverException $exception
Output
void  

line 203

json_encode

public static void json_encode ($val)

Input
$val
Output
void  

line 57

setFile

public DibiProfiler setFile (string $file)

Input
string $file filename
Output
DibiProfiler provides a fluent interface

line 69

setFilter

public DibiProfiler setFilter (int $filter)

Input
int $filter
Output
DibiProfiler provides a fluent interface