Class: Doctrine_Connection_Profiler

Source Location: /Doctrine/Connection/Profiler.php

Class Doctrine_Connection_Profiler

Class Overview

Implements interfaces:

Doctrine_Connection_Profiler

Located in /Doctrine/Connection/Profiler.php [line 33]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Property Summary
mixed   $events  
mixed   $listeners  

[ Top ]
Method Summary
Doctrine_Connection_Profiler   __construct()   constructor
integer   count()   count
Doctrine_Event   get()   get
array   getAll()   getAll returns all profiled events as an array
ArrayIterator   getIterator()   getIterator returns an iterator that iterates through the logged events
Doctrine_Event   lastEvent()   Get the Doctrine_Event object for the last query that was run, regardless if it has ended or not. If the event has not ended, it's end time will be Null.
Doctrine_Event   pop()   pop the last event from the event stack
boolean   setFilterQueryType()   setFilterQueryType
boolean   __call()   method overloader this method is used for invoking different listeners, for the full list of availible listeners, see Doctrine_EventListener

[ Top ]
Properties
mixed   $events = array() [line 50]
API Tags:
Access:  private


[ Top ]
mixed   $listeners = array('query',
'prepare',
'commit',
'rollback',
'connect',
'begintransaction',
'exec',
'execute',
)
[line 38]
API Tags:
Access:  private


[ Top ]
Methods
Constructor __construct  [line 54]

  Doctrine_Connection_Profiler __construct( )

constructor


API Tags:
Access:  public


[ Top ]
count  [line 146]

  integer count( )

count


API Tags:
Access:  public


Implementation of:
Countable::count

[ Top ]
get  [line 114]

  Doctrine_Event get( mixed $key  )

get

Parameters:
mixed   $key: 

API Tags:
Access:  public


[ Top ]
getAll  [line 127]

  array getAll( )

getAll returns all profiled events as an array


API Tags:
Return:  all events in an array
Access:  public


[ Top ]
getIterator  [line 137]

  ArrayIterator getIterator( )

getIterator returns an iterator that iterates through the logged events


API Tags:
Access:  public


Implementation of:
IteratorAggregate::getIterator

[ Top ]
lastEvent  [line 165]

  Doctrine_Event lastEvent( )

Get the Doctrine_Event object for the last query that was run, regardless if it has ended or not. If the event has not ended, it's end time will be Null.


API Tags:
Access:  public


[ Top ]
pop  [line 155]

  Doctrine_Event pop( )

pop the last event from the event stack


API Tags:
Access:  public


[ Top ]
setFilterQueryType  [line 63]

  boolean setFilterQueryType( integer $filter  )

setFilterQueryType

Parameters:
integer   $filter: 

API Tags:
Access:  public


[ Top ]
__call  [line 76]

  boolean __call( string $m, array $a  )

method overloader this method is used for invoking different listeners, for the full list of availible listeners, see Doctrine_EventListener

Parameters:
string   $m:  the name of the method
array   $a:  method arguments

API Tags:
See:  Doctrine_EventListener
Access:  public


Implementation of:
Doctrine_Overloadable::__call()
__call method overloader

[ Top ]