Db/Profiler/Firebug.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Db
- Subpackage
- Profiler
- Version
- $Id$
\Zend_Db_Profiler_Firebug
Package: Zend_Db\Profiler




Writes DB events as log messages to the Firebug Console via FirePHP.
- Parent(s)
- \Zend_Db_Profiler
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


string $_label_template = '%label% (%totalCount% @ %totalDuration% sec)'
The label template for this profiler
Default value
'%label% (%totalCount% @ %totalDuration% sec)'
Details- Type
- string


\Zend_Wildfire_Plugin_FirePhp_TableMessage $_message = null
The message envelope holding the profiling summary
Default value
null
DetailsMethods


__construct(string $label = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$label | string | OPTIONAL Label for the profiling info. |


queryEnd(integer $queryId) : void
Intercept the query end and log the profiling data.
Parameters
Throws
Name | Type | Description |
---|---|---|
$queryId | integer |
Exception | Description |
---|---|
\Zend_Db_Profiler_Exception |


setEnabled(boolean $enable) : \Zend_Db_Profiler
Enable or disable the profiler. If $enable is false, the profiler is disabled and will not log any queries sent to it.
Parameters
Returns
Name | Type | Description |
---|---|---|
$enable | boolean |
Type | Description |
---|---|
\Zend_Db_Profiler | Provides a fluent interface |