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.

integer
$_endedMicrotime= 'null'
Unix timestamp with microseconds when self::queryEnd() was called.
null
Details
string
$_query= ''''
SQL query string or user comment, set by $query argument in constructor.
''
Details
integer
$_queryType= '0'
One of the Zend_Db_Profiler constants for query type, set by $queryType argument in constructor.
0
Details
__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).
Name | Type | Description |
---|---|---|
$query | string | |
$queryType | integer |

bindParam(
string $param, mixed $variable
)
:
void
Name | Type | Description |
---|---|---|
$param | string | |
$variable | mixed |

getElapsedSecs(
)
:
float|false
Get the elapsed time (in seconds) that the query ran.
If the query has not yet ended, false is returned.
Type | Description |
---|---|
float|false |

getQueryType(
)
:
integer
Get the type of this query (one of the Zend_Db_Profiler::* constants)
Type | Description |
---|---|
integer |

getStartedMicrotime(
)
:
bool|float
Get the time (in seconds) when the profiler started running.
Type | Description |
---|---|
bool|float |

hasEnded(
)
:
boolean
Returns true if and only if the query has ended.
Type | Description |
---|---|
boolean |