Class: Doctrine_Record_Listener_Chain

Source Location: /Doctrine/Record/Listener/Chain.php

Class Doctrine_Record_Listener_Chain

Class Overview

Implements interfaces:

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

Located in /Doctrine/Record/Listener/Chain.php [line 36]

Doctrine_Object
   |
   --Doctrine_Access
      |
      --Doctrine_Record_Listener_Chain
Author(s): Information Tags:
Version:  $Revision$
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_Record_Listener on success and null on failure
void   postDelete()  
void   postInsert()  
void   postSave()  
void   postSerialize()  
void   postUnserialize()  
void   postUpdate()  
void   preDelete()  
void   preInsert()  
void   preSave()  
void   preSerialize()  
void   preUnserialize()  
void   preUpdate()  
Doctrine_Record_Listener_Chain   set()   set

[ Top ]
Properties
array   $_listeners = array() [line 41]
API Tags:
Access:  protected


[ 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_Record_Listener on success and null on failure

Parameters:
mixed   $key: 

API Tags:
Access:  public


[ Top ]
postDelete  [line 138]

  void postDelete( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::postDelete()

[ Top ]
postInsert  [line 166]

  void postInsert( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::postInsert()

[ Top ]
postSave  [line 124]

  void postSave( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::postSave()

[ Top ]
postSerialize  [line 96]

  void postSerialize( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::postSerialize()

[ Top ]
postUnserialize  [line 110]

  void postUnserialize( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::postUnserialize()

[ Top ]
postUpdate  [line 152]

  void postUpdate( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::postUpdate()

[ Top ]
preDelete  [line 131]

  void preDelete( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::preDelete()

[ Top ]
preInsert  [line 159]

  void preInsert( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::preInsert()

[ Top ]
preSave  [line 117]

  void preSave( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::preSave()

[ Top ]
preSerialize  [line 89]

  void preSerialize( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::preSerialize()

[ Top ]
preUnserialize  [line 103]

  void preUnserialize( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::preUnserialize()

[ Top ]
preUpdate  [line 145]

  void preUpdate( Doctrine_Event $event  )

Parameters:
Doctrine_Event   $event: 

API Tags:
Access:  public


Implementation of:
Doctrine_Record_Listener_Interface::preUpdate()

[ Top ]
set  [line 84]

  Doctrine_Record_Listener_Chain set( mixed $key, Doctrine_EventListener $listener  )

set

Parameters:
mixed   $key: 
Doctrine_Record_Listener   $listener:  listener to be added

API Tags:
Return:  this object
Access:  public


[ Top ]