Class Zend_Db_Profiler_Query

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

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


	
			
Variable Summary
Method Summary
 void __construct (string $query, integer $queryType)
 void end ()
 float|false getElapsedSecs ()
 string getQuery ()
 integer getQueryType ()
 boolean hasEnded ()
Variables
integer $_endedMicrotime = null (line 61)

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

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

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

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

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

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

Unix timestamp with microseconds when instantiated.

  • access: protected
Methods
Constructor __construct (line 71)

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
end (line 83)

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

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

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 103)

Get the original SQL text of the query.

  • access: public
string getQuery ()
getQueryType (line 113)

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

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

Returns true if and only if the query has ended.

  • access: public
boolean hasEnded ()

Documentation generated on Sun, 27 May 2007 23:26:57 -0700 by phpDocumentor 1.3.2