symfony API

sfDoctrineConnectionProfiler Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

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)

    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.


    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)