Db/Profiler/Query.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Db
- Subpackage
- Profiler
- Version
- $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Db_Profiler_Query
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

integer $_endedMicrotime = nullnullDetails- Type
- integer

string $_query = ''''Details- Type
- string

integer $_queryType = 00Details- Type
- integer
Methods

__construct(string $query, integer $queryType) : voidClass 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 | falseGet the elapsed time (in seconds) that the query ran.
If the query has not yet ended, false is returned.
| Type | Description |
|---|---|
| float | false |

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

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