Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
array $_boundParams = 'array'
integer $_endedMicrotime = 'null'
Unix timestamp with microseconds when self::queryEnd() was called.
string $_query = ''
SQL query string or user comment, set by $query argument in constructor.
integer $_queryType = '0'
One of the Zend_Db_Profiler constants for query type, set by $queryType argument in constructor.
float $_startedMicrotime = 'null'
Unix timestamp with microseconds when instantiated.
__clone(
)
:
void
Clone handler for the query object.
__construct(
string $query, integer $queryType
)
:
void
Class constructor. A query is about to be started, save the query text ($query) and its type (one of the Zend_Db_Profiler::* constants).
bindParam(
string $param, mixed $variable
)
:
void
bindParams(
$params
)
:
void
end(
)
:
void
Ends the query and records the time so that the elapsed time can be determined later.
getElapsedSecs(
)
:
float|false
Get the elapsed time (in seconds) that the query ran.
If the query has not yet ended, false is returned.
getQuery(
)
:
string
Get the original SQL text of the query.
getQueryParams(
)
:
array
getQueryType(
)
:
integer
Get the type of this query (one of the Zend_Db_Profiler::* constants)
hasEnded(
)
:
boolean
Returns true if and only if the query has ended.
start(
)
:
void
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.