Class DibiProfiler
dibi basic logger & profiler (experimental).
DibiObject | --DibiProfiler
Implements interfaces:
| Constructor Summary | |
|---|---|
| public |
__construct
()
|
| Method Summary | |
|---|---|
| void |
After event notification.
|
| int |
Before event notification.
|
| void |
exception
(DibiDriverException $exception)
After exception notification.
|
| static void |
json_encode
($val)
|
| DibiProfiler |
setFile
(string $file)
|
| DibiProfiler |
setFilter
(int $filter)
|
| 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 __constructpublic __construct () |
||
| Method Details | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 99 afterpublic void after (int $ticket, [DibiResult $res = After event notification. Implementation of:
|
||||||||||||||||||
|
line 84 beforepublic int before (DibiConnection $connection, int $event, [string $sql = Before event notification. Implementation of:
|
||||||||||||||||||
|
line 166 exceptionpublic void exception (DibiDriverException $exception) After exception notification. Implementation of:
|
||||||||||||||||||
|
line 203 json_encodepublic static void json_encode ($val)
|
||||||||||||||||||
|
line 57 setFilepublic DibiProfiler setFile (string $file)
|
||||||||||||||||||
|
line 69 setFilterpublic DibiProfiler setFilter (int $filter)
|
||||||||||||||||||