Property | Type | Description | |
---|---|---|---|
$explainQuery | |||
$explainTypes | |||
$findSource | |||
$queries | |||
$reflection | |||
$renderSqlWithParams | |||
$showHints | ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+ | ||
$timeCollector |
Method | Description | |
---|---|---|
__construct ( DebugBar\DataCollector\TimeDataCollector $timeCollector = null ) | ||
addQuery ( string $query, array $bindings, float $time, |
||
collect ( ) | {@inheritDoc} | |
getName ( ) | {@inheritDoc} | |
getWidgets ( ) | {@inheritDoc} | |
reset ( ) | Reset the queries. | |
setExplainSource ( boolean $enabled, array | null $types ) | Enable/disable the EXPLAIN queries | |
setFindSource ( boolean $value = true ) | Enable/disable finding the source | |
setRenderSqlWithParams ( boolean $enabled = true, string $quotationChar = "'" ) | Renders the SQL of traced statements with params embedded | |
setShowHints ( boolean $enabled = true ) | Show or hide the hints in the parameters |
Method | Description | |
---|---|---|
checkBindings ( $bindings ) : mixed | Check bindings for illegal (non UTF-8) strings, like Binary data. | |
escapeBindings ( array $bindings ) : array | Make the bindings safe for outputting. | |
findSource ( ) | Use a backtrace to search for the origin of the query. | |
findViewFromHash ( string $hash ) : null | string | Find the template name from the hash. | |
formatSql ( string $sql ) : string | Removes extra spaces at the beginning and end of the SQL query and its lines. | |
getTwigInfo ( array $trace ) : array | Get the filename/line from a Twig template trace | |
normalizeFilename ( string $path ) : string | Shorten the path by removing the relative links and base dir | |
performQueryAnalysis ( string $query ) : string | Explainer::performQueryAnalysis() |
public __construct ( DebugBar\DataCollector\TimeDataCollector $timeCollector = null ) | ||
$timeCollector | DebugBar\DataCollector\TimeDataCollector |
protected checkBindings ( $bindings ) : mixed | ||
$bindings | ||
return | mixed |
protected escapeBindings ( array $bindings ) : array | ||
$bindings | array | |
return | array |
protected findSource ( ) |
protected getTwigInfo ( array $trace ) : array | ||
$trace | array | |
return | array | The file and line |
protected normalizeFilename ( string $path ) : string | ||
$path | string | |
return | string |
protected performQueryAnalysis ( string $query ) : string | ||
$query | string | |
return | string |
public setFindSource ( boolean $value = true ) | ||
$value | boolean |
public setRenderSqlWithParams ( boolean $enabled = true, string $quotationChar = "'" ) | ||
$enabled | boolean | |
$quotationChar | string | NOT USED |
public setShowHints ( boolean $enabled = true ) | ||
$enabled | boolean |
protected $showHints |