Class DibiProfiler
dibi basic logger & profiler (experimental).
Profiler options:
- ‚explain‘ – explain SELECT queries?
- ‚filter‘ – which queries to log?
- DibiObject
-
DibiProfiler implements IDibiProfiler, IDebugPanel
public
|
#
__construct(
array
$config
)
|
public
DibiProfiler
|
#
setFile(
string
$file
)
Parameters$file string filenameReturnsDibiProfiler provides a fluent interface
|
public
DibiProfiler
|
#
setFilter(
int
$filter
)
Parameters$filter intReturnsDibiProfiler provides a fluent interface
|
public
int
|
#
before(
DibiConnection
$connection,
int
$event,
string
$sql = NULL
)
Before event notification. Before event notification. Parameters$connection DibiConnection$event int event name$sql string sqlImplementation of |
public
void
|
#
after(
int
$ticket,
DibiResult
$res = NULL
)
After event notification. After event notification. Parameters$ticket int$res DibiResultImplementation of |
public
void
|
#
exception(
DibiDriverException
$exception
)
After exception notification. After exception notification. Parameters$exception DibiDriverExceptionImplementation of |
public
mixed
|
#
getTab(
)
Returns HTML code for custom tab. Returns HTML code for custom tab. |
public
mixed
|
#
getPanel(
)
Returns HTML code for custom panel. Returns HTML code for custom panel. |
public
string
|
#
getId(
)
Returns panel ID. Returns panel ID. |
Methods Inherited From DibiObject
getClass(), getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
CONNECT |
1 # |
SELECT |
4 # |
INSERT |
8 # |
DELETE |
16 # |
UPDATE |
32 # |
QUERY |
60 # |
BEGIN |
64 # |
COMMIT |
128 # |
ROLLBACK |
256 # |
TRANSACTION |
448 # |
EXCEPTION |
512 # |
ALL |
1023 # |
static
|
$maxQueries | 30 |
maximum number of rows # |
static
|
$maxLength | 1000 |
maximum SQL length # |
bool
|
$useFirebug | NULL |
log to firebug? # |
bool
|
$explainQuery | true |
explain queries? # |
static
array
|
$tickets | array (
) |
# |
static
array
|
$fireTable | array ( 0 => array ( 0 => 'Time', 1 => 'SQL Statement', 2 => 'Rows', 3 => 'Connection', ), ) |
# |