symfony API

sfDoctrineConnectionProfiler Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

Connection profiler.

Method Summary

  • array fixParams($params)
    Fixes query parameters for logging.
  • mixed getOption($name)
    Returns an option value.
  • array getQueryExecutionEvents()
    Returns events having to do with query execution.
  • postExec($event)
    Logs to the timer.
  • postQuery($event)
    Logs to the timer.
  • postStmtExecute($event)
    Logs to the timer.
  • preExec($event)
    Logs a connection exec on behalf of the connection.
  • preQuery($event)
    Logs time and a connection query on behalf of the connection.
  • preStmtExecute($event)
    Logs a statement execute on behalf of the statement.
  • setOption($name, $value)
    Sets an option value.
  • __construct($dispatcher, $options)
    Constructor.

Method Details

  • (array) fixParams ($params) Browse code

    Fixes query parameters for logging.

  • (mixed) getOption ($name) Browse code

    Returns an option value.

  • (array) getQueryExecutionEvents () Browse code

    Returns events having to do with query execution.

  • postExec ($event) Browse code

    Logs to the timer.

  • postQuery ($event) Browse code

    Logs to the timer.

  • postStmtExecute ($event) Browse code

    Logs to the timer.

  • preExec ($event) Browse code

    Logs a connection exec on behalf of the connection.

  • preQuery ($event) Browse code

    Logs time and a connection query on behalf of the connection.

  • preStmtExecute ($event) Browse code

    Logs a statement execute on behalf of the statement.

  • setOption ($name, $value) Browse code

    Sets an option value.

  • __construct ($dispatcher, $options) Browse code

    Constructor.


    Available options:

    * logging: Whether to notify query logging events (defaults to false)
    * slow_query_threshold: How many seconds a query must take to be considered slow (defaults to 1)