Class Zend_Db_Profiler_Query

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Db/Profiler/Query.php (line 31)


	
			
Variable Summary
Method Summary
 void __construct (string $query, integer $queryType)
 void bindParam (string $param, mixed $variable)
 void bindParams ( $params, array $param)
 void end ()
 float|false getElapsedSecs ()
 string getQuery ()
 array getQueryParams ()
 integer getQueryType ()
 boolean hasEnded ()
 void start ()
 void __clone ()
Variables
array $_boundParams = array() (line 65)
  • access: protected
integer $_endedMicrotime = null (line 60)

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

  • access: protected
string $_query = '' (line 39)

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

  • access: protected
integer $_queryType = 0 (line 46)

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

  • access: protected
float $_startedMicrotime = null (line 53)

Unix timestamp with microseconds when instantiated.

  • access: protected
Methods
Constructor __construct (line 79)

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

  • access: public
void __construct (string $query, integer $queryType)
  • string $query
  • integer $queryType
bindParam (line 156)
  • access: public
void bindParam (string $param, mixed $variable)
  • string $param
  • mixed $variable
bindParams (line 165)
  • access: public
void bindParams ( $params, array $param)
  • array $param
  • array $params
end (line 116)

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

  • access: public
void end ()
getElapsedSecs (line 190)

Get the elapsed time (in seconds) that the query ran.

If the query has not yet ended, false is returned.

  • access: public
float|false getElapsedSecs ()
getQuery (line 136)

Get the original SQL text of the query.

  • access: public
string getQuery ()
getQueryParams (line 179)
  • access: public
array getQueryParams ()
getQueryType (line 146)

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

  • access: public
integer getQueryType ()
hasEnded (line 126)

Returns true if and only if the query has ended.

  • access: public
boolean hasEnded ()
start (line 106)

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.

  • access: public
void start ()
__clone (line 91)

Clone handler for the query object.

  • access: public
void __clone ()

Documentation generated on Mon, 21 Jun 2010 15:40:34 -0400 by phpDocumentor 1.4.3