API Documentation

Zend/Db/Profiler/Firebug.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Db  
Subpackage
Profiler  
Version
$Id: Firebug.php 24594 2012-01-05 21:27:01Z matthew $  

\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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedstring  $_label= 'null'

The original label for this profiler.

Default valuenullDetails
Type
string
Propertyprotectedstring  $_label_template= ''%label% (%totalCount% @ %totalDuration% sec)''

The label template for this profiler

Default value'%label% (%totalCount% @ %totalDuration% sec)'Details
Type
string
Propertyprotected\Zend_Wildfire_Plugin_FirePhp_TableMessage  $_message= 'null'

The message envelope holding the profiling summary

Default valuenullDetails
Type
\Zend_Wildfire_Plugin_FirePhp_TableMessage
Propertyprotectedfloat  $_totalElapsedTime= '0'

The total time taken for all profiled queries.

Default value0Details
Type
float

Methods

methodpublic__construct( string $label = null ) : void

Constructor

Parameters
Name Type Description
$label string

OPTIONAL Label for the profiling info.

methodpublicqueryEnd( integer $queryId ) : void

Intercept the query end and log the profiling data.

Parameters
Name Type Description
$queryId integer
Throws
Exception Description
\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
Name Type Description
$enable boolean
Returns
Type Description
\Zend_Db_Profiler Provides a fluent interface
methodprotectedupdateMessageLabel( ) : void

Update the label of the message holding the profile info.

Documentation was generated by DocBlox 0.15.1.