Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Db_Profiler_Firebug Class Reference

Public Member Functions

 __construct ($label=null)
 Constructor.
 
 setEnabled ($enable)
 Enable or disable the profiler.
 
 queryEnd ($queryId)
 Intercept the query end and log the profiling data.
 
- Public Member Functions inherited from Zend_Db_Profiler
 __construct ($enabled=false)
 Class constructor.
 
 setEnabled ($enable)
 Enable or disable the profiler.
 
 getEnabled ()
 Get the current state of enable.
 
 setFilterElapsedSecs ($minimumSeconds=null)
 Sets a minimum number of seconds for saving query profiles.
 
 getFilterElapsedSecs ()
 Returns the minimum number of seconds for saving query profiles, or null if query profiles are saved regardless of elapsed time.
 
 setFilterQueryType ($queryTypes=null)
 Sets the types of query profiles to save.
 
 getFilterQueryType ()
 Returns the types of query profiles saved, or null if queries are saved regardless of their types.
 
 clear ()
 Clears the history of any past query profiles.
 
 queryClone (Zend_Db_Profiler_Query $query)
 Clone a profiler query.
 
 queryStart ($queryText, $queryType=null)
 Starts a query.
 
 queryEnd ($queryId)
 Ends a query.
 
 getQueryProfile ($queryId)
 Get a profile for a query.
 
 getQueryProfiles ($queryType=null, $showUnfinished=false)
 Get an array of query profiles (Zend_Db_Profiler_Query objects).
 
 getTotalElapsedSecs ($queryType=null)
 Get the total elapsed time (in seconds) of all of the profiled queries.
 
 getTotalNumQueries ($queryType=null)
 Get the total number of queries that have been profiled.
 
 getLastQueryProfile ()
 Get the Zend_Db_Profiler_Query object for the last query that was run, regardless if it has ended or not.
 

Protected Member Functions

 updateMessageLabel ()
 Update the label of the message holding the profile info.
 

Protected Attributes

 $_label = null
 
 $_label_template = '%label% (%totalCount% @ %totalDuration% sec)'
 
 $_message = null
 
 $_totalElapsedTime = 0
 
- Protected Attributes inherited from Zend_Db_Profiler
 $_queryProfiles = array()
 
 $_enabled = false
 
 $_filterElapsedSecs = null
 
 $_filterTypes = null
 

Additional Inherited Members

- Public Attributes inherited from Zend_Db_Profiler
const CONNECT = 1
 A connection operation or selecting a database.
 
const QUERY = 2
 Any general database query that does not fit into the other constants.
 
const INSERT = 4
 Adding new data to the database, such as SQL's INSERT.
 
const UPDATE = 8
 Updating existing information in the database, such as SQL's UPDATE.
 
const DELETE = 16
 An operation related to deleting data in the database, such as SQL's DELETE.
 
const SELECT = 32
 Retrieving information from the database, such as SQL's SELECT.
 
const TRANSACTION = 64
 Transactional operation, such as start transaction, commit, or rollback.
 
const STORED = 'stored'
 Inform that a query is stored (in case of filtering)
 
const IGNORED = 'ignored'
 Inform that a query is ignored (in case of filtering)
 

Constructor & Destructor Documentation

__construct (   $label = null)

Constructor.

Parameters
string$labelOPTIONAL Label for the profiling info.
Returns
void

Member Function Documentation

queryEnd (   $queryId)

Intercept the query end and log the profiling data.

Parameters
integer$queryId
Exceptions
Zend_Db_Profiler_Exception
Returns
void
setEnabled (   $enable)

Enable or disable the profiler.

If $enable is false, the profiler is disabled and will not log any queries sent to it.

Parameters
boolean$enable
Returns
Zend_Db_Profiler Provides a fluent interface
updateMessageLabel ( )
protected

Update the label of the message holding the profile info.

Returns
void

Member Data Documentation

$_label = null
protected
$_label_template = '%label% (%totalCount% @ %totalDuration% sec)'
protected
$_message = null
protected
$_totalElapsedTime = 0
protected