Class Zend_Db_Profiler_Query

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

Located in /Zend/Db/Profiler/Query.php (line 30)


	
			
Variable Summary
 null|integer $_endedMicrotime
 string $_query
 integer $_queryType
Method Summary
 bool __construct (string $query, int $queryType)
 bool end ()
 mixed getElapsedSecs ()
 string getQuery ()
 int getQueryType ()
 bool hasEnded ()
Variables
null|integer $_endedMicrotime = null (line 59)

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

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

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

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

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

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

Unix timestamp with microseconds when instantiated.

  • access: protected
Methods
Constructor __construct (line 69)

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
bool __construct (string $query, int $queryType)
  • string $query
  • int $queryType
end (line 82)

The query has ended. Record the time so that the elapsed time can be determined later.

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

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

If the query has not yet ended, return false.

  • access: public
mixed 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
int getQueryType ()
hasEnded (line 93)

Has this query ended?

  • access: public
bool hasEnded ()

Documentation generated on Wed, 21 Feb 2007 11:57:57 -0800 by phpDocumentor 1.3.1