\DebugBar\BridgePropel2Collector

A Propel logger which acts as a data collector

http://propelorm.org/

Will log queries and display them using the SQLQueries widget.

Example: $debugbar->addCollector(new \DebugBar\Bridge\Propel2Collector(\Propel\Runtime\Propel::getServiceContainer()->getReadConnection()));

Summary

Methods
Properties
Constants
setDefaultDataFormatter()
getDefaultDataFormatter()
setDataFormatter()
getDataFormatter()
formatVar()
formatDuration()
formatBytes()
__construct()
getHandler()
getConfig()
getLogger()
collect()
getName()
getWidgets()
getAssets()
No public properties found
No constants found
getDefaultLogger()
getQueryCount()
getStatements()
$dataFormater
$handler
$logger
$config
$errors
$queryCount
N/A
No private methods found
$defaultDataFormatter
N/A

Properties

$dataFormater

$dataFormater : 

Type

$handler

$handler : null|\Monolog\Handler\TestHandler

Type

null|\Monolog\Handler\TestHandler

$logger

$logger : null|\Monolog\Logger

Type

null|\Monolog\Logger

$config

$config : array

Type

array

$errors

$errors : array

Type

array

$queryCount

$queryCount : integer

Type

integer

$defaultDataFormatter

$defaultDataFormatter : 

Type

Methods

setDefaultDataFormatter()

setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) 

Sets the default data formater instance used by all collectors subclassing this class

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

setDataFormatter()

setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) : $this

Sets the data formater instance used by this collector

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

Returns

$this

formatVar()

formatVar(  $var) 

Parameters

$var

formatDuration()

formatDuration(  $seconds) 

Parameters

$seconds

formatBytes()

formatBytes(  $size,   $precision = 2) 

Parameters

$size
$precision

__construct()

__construct(\Propel\Runtime\Connection\ConnectionInterface  $connection, array  $logMethods = array('beginTransaction', 'commit', 'rollBack', 'forceRollBack', 'exec', 'query', 'execute')) 

Parameters

\Propel\Runtime\Connection\ConnectionInterface $connection

Propel connection

array $logMethods

getHandler()

getHandler() : \Monolog\Handler\TestHandler|null

Returns

\Monolog\Handler\TestHandler|null

getConfig()

getConfig() : array

Returns

array

getLogger()

getLogger() : \Monolog\Logger|null

Returns

\Monolog\Logger|null

collect()

collect() : array

Returns

array

getName()

getName() : string

Returns

string

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array

getAssets()

getAssets() : array

Returns an array with the following keys: - base_path - base_url - css: an array of filenames - js: an array of filenames

Returns

array

getDefaultLogger()

getDefaultLogger() : \Psr\Log\LoggerInterface

Returns

\Psr\Log\LoggerInterface

getQueryCount()

getQueryCount() : integer

Returns

integer

getStatements()

getStatements(array  $records, array  $config) : array

Parameters

array $records
array $config

Returns

array