$dataFormater
$dataFormater :
Collects data about SQL statements executed with PDO
setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface $formater)
Sets the default data formater instance used by all collectors subclassing this class
| \DebugBar\DataFormatter\DataFormatterInterface | $formater |
getDefaultDataFormatter() : \DebugBar\DataFormatter\DataFormatterInterface
Returns the default data formater
setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface $formater) : $this
Sets the data formater instance used by this collector
| \DebugBar\DataFormatter\DataFormatterInterface | $formater |
getDataFormatter() : \DebugBar\DataFormatter\DataFormatterInterface
| None found |
| None found |
__construct(\DebugBar\DataCollector\PDO\TraceablePDO $pdo = null, \DebugBar\DataCollector\TimeDataCollector $timeCollector = null)
| \DebugBar\DataCollector\PDO\TraceablePDO | $pdo | |
| \DebugBar\DataCollector\TimeDataCollector | $timeCollector |
| None found |
setRenderSqlWithParams(boolean $enabled = true, $quotationChar = '<>')
Renders the SQL of traced statements with params embeded
| boolean | $enabled | |
| $quotationChar |
| None found |
addConnection(\DebugBar\DataCollector\PDO\TraceablePDO $pdo, string $name = null)
Adds a new PDO instance to be collector
| \DebugBar\DataCollector\PDO\TraceablePDO | $pdo | |
| string | $name | Optional connection name |
| None found |
| None found |
getWidgets() : array
Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}
| None found |
getAssets() : array
Returns an array with the following keys: - base_path - base_url - css: an array of filenames - js: an array of filenames
| None found |
collectPDO(\DebugBar\DataCollector\PDO\TraceablePDO $pdo, \DebugBar\DataCollector\TimeDataCollector $timeCollector = null, string|null $connectionName = null) : array
Collects data from a single TraceablePDO instance
| \DebugBar\DataCollector\PDO\TraceablePDO | $pdo | |
| \DebugBar\DataCollector\TimeDataCollector | $timeCollector | |
| string|null | $connectionName | the pdo connection (eg default | read | write) |
| None found |