W3cubDocs

/Symfony 2.7

Symfony\Bridge\Propel1\DataCollector\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

public serialize()

public unserialize($data)

Parameters

$data

public __construct(PropelLogger $logger, PropelConfiguration $propelConfiguration)

Constructor

Parameters

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

public 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

public string getName()

Returns the collector name.

Return Value

string The collector name.

public array getQueries()

Returns queries.

Return Value

array Queries

public int getQueryCount()

Returns the query count.

Return Value

int The query count

public float getTime()

Returns the total time of queries.

Return Value

float The total time of queries

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