Zend Framework
1.12
|
Public Member Functions | |
__construct ($query, $queryType) | |
Class constructor. | |
__clone () | |
Clone handler for the query object. | |
start () | |
Starts the elapsed time click ticking. | |
end () | |
Ends the query and records the time so that the elapsed time can be determined later. | |
hasEnded () | |
Returns true if and only if the query has ended. | |
getQuery () | |
Get the original SQL text of the query. | |
getQueryType () | |
Get the type of this query (one of the Zend_Db_Profiler::* constants) | |
bindParam ($param, $variable) | |
bindParams (array $params) | |
getQueryParams () | |
getElapsedSecs () | |
Get the elapsed time (in seconds) that the query ran. | |
getStartedMicrotime () | |
Get the time (in seconds) when the profiler started running. | |
Protected Attributes | |
$_query = '' | |
$_queryType = 0 | |
$_startedMicrotime = null | |
$_endedMicrotime = null | |
$_boundParams = array() | |
__construct | ( | $query, | |
$queryType | |||
) |
Class constructor.
A query is about to be started, save the query text ($query) and its type (one of the Zend_Db_Profiler::* constants).
string | $query | |
integer | $queryType |
__clone | ( | ) |
Clone handler for the query object.
bindParam | ( | $param, | |
$variable | |||
) |
string | $param | |
mixed | $variable |
bindParams | ( | array | $params | ) |
array | $param |
end | ( | ) |
Ends the query and records the time so that the elapsed time can be determined later.
getElapsedSecs | ( | ) |
Get the elapsed time (in seconds) that the query ran.
If the query has not yet ended, false is returned.
getQuery | ( | ) |
Get the original SQL text of the query.
getQueryParams | ( | ) |
getQueryType | ( | ) |
Get the type of this query (one of the Zend_Db_Profiler::* constants)
getStartedMicrotime | ( | ) |
Get the time (in seconds) when the profiler started running.
hasEnded | ( | ) |
Returns true if and only if the query has ended.
start | ( | ) |
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |