Class: Doctrine_EventListener_Chain

Source Location: /Doctrine/EventListener/Chain.php

Class Doctrine_EventListener_Chain

Class Overview

Implements interfaces:

Doctrine_EventListener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time

Located in /Doctrine/EventListener/Chain.php [line 36]

Doctrine_Object
   |
   --Doctrine_Access
      |
      --Doctrine_EventListener_Chain
Author(s): Information Tags:
Version:  $Revision: 2186 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Object

Doctrine_Object::$_null

Inherited From Doctrine_Access

Doctrine_Access::offsetExists()
Doctrine_Access::offsetGet()
offsetGet an alias of get()
Doctrine_Access::offsetSet()
sets $offset to $value
Doctrine_Access::offsetUnset()
unset a given offset
Doctrine_Access::setArray()
setArray
Doctrine_Access::__get()
__get -- an alias of get()
Doctrine_Access::__isset()
__isset()
Doctrine_Access::__set()
__set an alias of set()
Doctrine_Access::__unset()
__unset()

Inherited From Doctrine_Object

Doctrine_Object::getNullObject()
getNullObject returns the null object associated with this object
Doctrine_Object::initNullObject()
initNullObject initializes the null object

[ Top ]
Property Summary
array   $listeners  

[ Top ]
Method Summary
void   add()   add adds a listener to the chain of listeners
mixed   get()   returns a Doctrine_EventListener on success and null on failure
void   onCollectionDelete()   onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
void   onLoad()   onLoad an event invoked when Doctrine_Record is being loaded from database
void   onOpen()   onOpen an event invoked after Doctrine_Connection is opened
void   onPreCollectionDelete()   onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
void   onPreLoad()   onPreLoad an event invoked when Doctrine_Record is being loaded from database but not yet initialized
void   onSleep()   onSleep an event invoked when Doctrine_Record is serialized
void   onWakeUp()   onWakeUp an event invoked when Doctrine_Record is unserialized
void   postClose()   postClose an event invoked after Doctrine_Connection is closed
void   postConnect()  
void   postError()  
void   postExec()  
void   postFetch()  
void   postFetchAll()  
void   postPrepare()  
void   postQuery()  
void   postStmtExecute()  
void   postTransactionBegin()   onTransactionBegin an event invoked after a Doctrine_Connection transaction has been started
void   postTransactionCommit()   onTransactionCommit an event invoked after a Doctrine_Connection transaction is committed
void   postTransactionRollback()   onTransactionRollback an event invoked after a Doctrine_Connection transaction is being rolled back
void   preClose()   preClose an event invoked before Doctrine_Connection is closed
void   preConnect()  
void   preError()  
void   preExec()  
void   preFetch()  
void   preFetchAll()  
void   prePrepare()  
void   preQuery()  
void   preStmtExecute()  
void   preTransactionBegin()   onTransactionBegin an event invoked before a Doctrine_Connection transaction is being started
void   preTransactionCommit()   onPreTransactionCommit an event invoked before a Doctrine_Connection transaction is committed
void   preTransactionRollback()   onPreTransactionRollback an event invoked before a Doctrine_Connection transaction is being rolled back
void   set()   set

[ Top ]
Properties
array   $listeners = array() [line 41]
API Tags:
Access:  private


[ Top ]
Methods
add  [line 50]

  void add( object $listener, [string $name = null]  )

add adds a listener to the chain of listeners

Parameters:
object   $listener: 
string   $name: 

API Tags:
Access:  public


[ Top ]
get  [line 70]

  mixed get( mixed $key  )

returns a Doctrine_EventListener on success and null on failure

Parameters:
mixed   $key: 

API Tags:
Access:  public


[ Top ]
onCollectionDelete  [line 265]

  void onCollectionDelete( Doctrine_Collection $collection  )

onCollectionDelete an event invoked after a Doctrine_Collection is being deleted

Parameters:
Doctrine_Collection   $collection: 

API Tags:
Access:  public


[ Top ]
onLoad  [line 95]

  void onLoad( Doctrine_Record $record  )

onLoad an event invoked when Doctrine_Record is being loaded from database

Parameters:
Doctrine_Record   $record: 

API Tags:
Access:  public


[ Top ]
onOpen  [line 174]

  void onOpen( Doctrine_Connection $connection  )

onOpen an event invoked after Doctrine_Connection is opened

Parameters:
Doctrine_Connection   $connection: 

API Tags:
Access:  public


[ Top ]
onPreCollectionDelete  [line 278]

  void onPreCollectionDelete( Doctrine_Collection $collection  )

onCollectionDelete an event invoked after a Doctrine_Collection is being deleted

Parameters:
Doctrine_Collection   $collection: 

API Tags:
Access:  public


[ Top ]
onPreLoad  [line 109]

  void onPreLoad( Doctrine_Record $record  )

onPreLoad an event invoked when Doctrine_Record is being loaded from database but not yet initialized

Parameters:
Doctrine_Record   $record: 

API Tags:
Access:  public


[ Top ]
onSleep  [line 122]

  void onSleep( Doctrine_Record $record  )

onSleep an event invoked when Doctrine_Record is serialized

Parameters:
Doctrine_Record   $record: 

API Tags:
Access:  public


[ Top ]
onWakeUp  [line 135]

  void onWakeUp( Doctrine_Record $record  )

onWakeUp an event invoked when Doctrine_Record is unserialized

Parameters:
Doctrine_Record   $record: 

API Tags:
Access:  public


[ Top ]
postClose  [line 148]

  void postClose( Doctrine_Event $event  )

postClose an event invoked after Doctrine_Connection is closed

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


[ Top ]
postConnect  [line 284]

  void postConnect( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postConnect()

[ Top ]
postError  [line 341]

  void postError( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postError()

[ Top ]
postExec  [line 328]

  void postExec( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postExec()

[ Top ]
postFetch  [line 354]

  void postFetch( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postFetch()

[ Top ]
postFetchAll  [line 368]

  void postFetchAll( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postFetchAll()

[ Top ]
postPrepare  [line 315]

  void postPrepare( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postPrepare()

[ Top ]
postQuery  [line 302]

  void postQuery( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postQuery()

[ Top ]
postStmtExecute  [line 382]

  void postStmtExecute( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postStmtExecute()

[ Top ]
postTransactionBegin  [line 239]

  void postTransactionBegin( Doctrine_Event $event  )

onTransactionBegin an event invoked after a Doctrine_Connection transaction has been started

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postTransactionBegin()

[ Top ]
postTransactionCommit  [line 187]

  void postTransactionCommit( Doctrine_Event $event  )

onTransactionCommit an event invoked after a Doctrine_Connection transaction is committed

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postTransactionCommit()

[ Top ]
postTransactionRollback  [line 213]

  void postTransactionRollback( Doctrine_Event $event  )

onTransactionRollback an event invoked after a Doctrine_Connection transaction is being rolled back

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::postTransactionRollback()

[ Top ]
preClose  [line 161]

  void preClose( Doctrine_Event $event  )

preClose an event invoked before Doctrine_Connection is closed

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


[ Top ]
preConnect  [line 290]

  void preConnect( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preConnect()

[ Top ]
preError  [line 335]

  void preError( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preError()

[ Top ]
preExec  [line 322]

  void preExec( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preExec()

[ Top ]
preFetch  [line 348]

  void preFetch( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preFetch()

[ Top ]
preFetchAll  [line 361]

  void preFetchAll( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preFetchAll()

[ Top ]
prePrepare  [line 309]

  void prePrepare( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::prePrepare()

[ Top ]
preQuery  [line 296]

  void preQuery( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preQuery()

[ Top ]
preStmtExecute  [line 375]

  void preStmtExecute( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preStmtExecute()

[ Top ]
preTransactionBegin  [line 252]

  void preTransactionBegin( Doctrine_Event $event  )

onTransactionBegin an event invoked before a Doctrine_Connection transaction is being started

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preTransactionBegin()

[ Top ]
preTransactionCommit  [line 200]

  void preTransactionCommit( Doctrine_Event $event  )

onPreTransactionCommit an event invoked before a Doctrine_Connection transaction is committed

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preTransactionCommit()

[ Top ]
preTransactionRollback  [line 226]

  void preTransactionRollback( Doctrine_Event $event  )

onPreTransactionRollback an event invoked before a Doctrine_Connection transaction is being rolled back

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_EventListener_Interface::preTransactionRollback()

[ Top ]
set  [line 84]

  void set( mixed $key, Doctrine_EventListener $listener  )

set

Parameters:
mixed   $key: 
Doctrine_EventListener   $listener: 

API Tags:
Access:  public


[ Top ]