Db/Profiler/Firebug.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

>VPropertyprotectedstring $_label = null
The original label for this profiler.
Default valuenullDetails
Type
string
>VPropertyprotectedstring $_label_template = '%label% (%totalCount% @ %totalDuration% sec)'
The label template for this profiler
Default value'%label% (%totalCount% @ %totalDuration% sec)'Details
Type
string
>VPropertyprotected\Zend_Wildfire_Plugin_FirePhp_TableMessage $_message = null
The message envelope holding the profiling summary
Default valuenullDetails
Type
\Zend_Wildfire_Plugin_FirePhp_TableMessage
>VPropertyprotectedfloat $_totalElapsedTime = 0
The total time taken for all profiled queries.
Default value0Details
Type
float

Methods

methodpublic__construct(string $label = null) : void

Constructor

Parameters
NameTypeDescription
$labelstring

OPTIONAL Label for the profiling info.

methodpublicqueryEnd(integer $queryId) : void

Intercept the query end and log the profiling data.

Parameters
NameTypeDescription
$queryIdinteger
Throws
ExceptionDescription
\Zend_Db_Profiler_Exception
methodpublicsetEnabled(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
NameTypeDescription
$enableboolean
Returns
TypeDescription
\Zend_Db_ProfilerProvides a fluent interface
methodprotectedupdateMessageLabel() : void

Update the label of the message holding the profile info.

Documentation was generated by phpDocumentor 2.2.0 .