PropelDataCollector

class PropelDataCollector extends DataCollector

The PropelDataCollector collector class collects information.

Methods

serialize() from DataCollector
unserialize($data) from DataCollector
__construct(PropelLogger $logger, PropelConfiguration $propelConfiguration)

Constructor

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

string getName()

Returns the collector name.

array getQueries()

Returns queries.

int getQueryCount()

Returns the query count.

float getTime()

Returns the total time of queries.

Details

serialize()

unserialize($data)

Parameters

$data

__construct(PropelLogger $logger, PropelConfiguration $propelConfiguration)

Constructor

Parameters

PropelLogger $logger A Propel logger.
PropelConfiguration $propelConfiguration The Propel configuration object.

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request A Request instance
Response $response A Response instance
Exception $exception An Exception instance

string getName()

Returns the collector name.

Return Value

string The collector name

array getQueries()

Returns queries.

Return Value

array Queries

int getQueryCount()

Returns the query count.

Return Value

int The query count

float getTime()

Returns the total time of queries.

Return Value

float The total time of queries

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/Propel1/DataCollector/PropelDataCollector.html