## Zend_Db_Profiler_Query

Description

- license: New BSD License
- copyright: Copyright (c) 2006 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
float $_startedMicrotime
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 70)

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

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

- access: public

bool end ()
getElapsedSecs (line 130)

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

Get the original SQL text of the query.

- access: public

string getQuery ()
getQueryType (line 118)

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

- access: public

int getQueryType ()
hasEnded (line 96)

Has this query ended?

- access: public

bool hasEnded ()

Documentation generated on Tue, 11 Jul 2006 12:17:56 -0500 by phpDocumentor 1.3.0RC6