Overview

Packages

  • Auth
  • Config
  • Controller
  • Date
  • Db
  • Feed
    • Abstract
    • Writers
  • File
    • Decorator
  • Form
    • Element
  • Image
  • Log
    • Writer
  • Net
    • Exception
    • REST
  • None
  • PHP
  • PHPMailer
  • Session
  • Util
  • Validate
    • Validator
  • Zend
    • Db
      • Adapter
      • Expr
      • Profiler
      • Select
      • Statement
      • Table
    • Loader
      • Autoloader
      • PluginLoader
    • Registry

Classes

  • Zend_Db_Profiler
  • Zend_Db_Profiler_Firebug
  • Zend_Db_Profiler_Query

Exceptions

  • Zend_Db_Profiler_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Zend_Db_Profiler_Query

Package: Zend\Db\Profiler
Category: Zend
Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: New BSD License
Located at Zend/Db/Profiler/Query.php
Methods summary
public
# __construct( string $query, integer $queryType )

Class constructor. A query is about to be started, save the query text ($query) and its type (one of the Zend_Db_Profiler::* constants).

Class constructor. A query is about to be started, save the query text ($query) and its type (one of the Zend_Db_Profiler::* constants).

Parameters

$query
string
$queryType
integer
public
# __clone( )

Clone handler for the query object.

Clone handler for the query object.

public
# start( )

Starts the elapsed time click ticking. This can be called subsequent to object creation, to restart the clock. For instance, this is useful right before executing a prepared query.

Starts the elapsed time click ticking. This can be called subsequent to object creation, to restart the clock. For instance, this is useful right before executing a prepared query.

public
# end( )

Ends the query and records the time so that the elapsed time can be determined later.

Ends the query and records the time so that the elapsed time can be determined later.

public boolean
# hasEnded( )

Returns true if and only if the query has ended.

Returns true if and only if the query has ended.

Returns

boolean
public string
# getQuery( )

Get the original SQL text of the query.

Get the original SQL text of the query.

Returns

string
public integer
# getQueryType( )

Get the type of this query (one of the Zend_Db_Profiler::* constants)

Get the type of this query (one of the Zend_Db_Profiler::* constants)

Returns

integer
public
# bindParam( string $param, mixed $variable )

Parameters

$param
string
$variable
mixed
public
# bindParams( array $params )

Parameters

$params
array
$param
public array
# getQueryParams( )

Returns

array
public float|false
# getElapsedSecs( )

Get the elapsed time (in seconds) that the query ran. If the query has not yet ended, false is returned.

Get the elapsed time (in seconds) that the query ran. If the query has not yet ended, false is returned.

Returns

float|false
public boolean|float
# getStartedMicrotime( )

Get the time (in seconds) when the profiler started running.

Get the time (in seconds) when the profiler started running.

Returns

boolean|float
Properties summary
protected string $_query ''
#

SQL query string or user comment, set by $query argument in constructor.

SQL query string or user comment, set by $query argument in constructor.

protected integer $_queryType 0
#

One of the Zend_Db_Profiler constants for query type, set by $queryType argument in constructor.

One of the Zend_Db_Profiler constants for query type, set by $queryType argument in constructor.

protected float $_startedMicrotime null
#

Unix timestamp with microseconds when instantiated.

Unix timestamp with microseconds when instantiated.

protected integer $_endedMicrotime null
#

Unix timestamp with microseconds when self::queryEnd() was called.

Unix timestamp with microseconds when self::queryEnd() was called.

protected array $_boundParams array()
#
Pry Framework API documentation generated by ApiGen 2.6.1