Class DibiProfiler
dibi basic logger & profiler (experimental).
Profiler options:
- 'explain' - explain SELECT queries?
- 'filter' - which queries to log?
DibiObject | --DibiProfiler
Implements interfaces:
| Constructor Summary | |
|---|---|
| public |
__construct
($config)
|
| Method Summary | |
|---|---|
| void |
After event notification.
|
| int |
Before event notification.
|
| void |
exception
(DibiDriverException $exception)
After exception notification.
|
| string |
getId
()
Returns panel ID.
|
| mixed |
getPanel
()
Returns HTML code for custom panel.
|
| mixed |
getTab
()
Returns HTML code for custom tab.
|
| DibiProfiler |
setFile
(string $file)
|
| DibiProfiler |
setFilter
(int $filter)
|
| Variable Summary | ||||
|---|---|---|---|---|
| bool | $explainQuery | TRUE |
line 40 explain queries? |
|
| static array | $fireTable | array(array('Time', 'SQL Statement', 'Rows', 'Connection')) |
line 49 |
|
| static mixed | $maxLength | 1000 |
line 31 maximum SQL length |
|
| static mixed | $maxQueries | 30 |
line 28 maximum number of rows |
|
| static array | $tickets | array() |
line 46 |
|
| bool | $useFirebug | |
line 37 log to firebug? |
|
| Constructor Details | ||||||
|---|---|---|---|---|---|---|
|
line 53 __constructpublic __construct ($config)
|
||||||
| Method Details | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 124 afterpublic void after (int $ticket, [DibiResult $res = After event notification. Implementation of:
|
||||||||||||||||||
|
line 107 beforepublic int before (DibiConnection $connection, int $event, [string $sql = Before event notification. Implementation of:
|
||||||||||||||||||
|
line 203 exceptionpublic void exception (DibiDriverException $exception) After exception notification. Implementation of:
|
||||||||||||||||||
|
line 304 getIdpublic string getId () Returns panel ID.
|
||||||||||||||||||
|
line 260 getPanelpublic mixed getPanel () Returns HTML code for custom panel.
|
||||||||||||||||||
|
line 248 getTabpublic mixed getTab () Returns HTML code for custom tab.
|
||||||||||||||||||
|
line 80 setFilepublic DibiProfiler setFile (string $file)
|
||||||||||||||||||
|
line 92 setFilterpublic DibiProfiler setFilter (int $filter)
|
||||||||||||||||||