PersistenceEvent Class Reference

Detailed Description

PersistentEvent signals create/update/delete operations on a persistent entity.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 22 of file PersistenceEvent.php.

+ Inheritance diagram for PersistenceEvent:

Public Member Functions

 __construct (PersistentObject $object, $action)
 
 getObject ()
 
 getAction ()
 
- Public Member Functions inherited from Event
 stopPropagation ()
 
 isStopped ()
 

Public Attributes

const NAME = __CLASS__
 

Constructor & Destructor Documentation

__construct ( PersistentObject  $object,
  $action 
)

Constructor.

Parameters
$objectPersistentObject instance.
$actionOne of the PersistenceAction values.

Definition at line 34 of file PersistenceEvent.php.

Member Function Documentation

getObject ( )

Get the object involved.

Returns
PersistentObject instance

Definition at line 43 of file PersistenceEvent.php.

getAction ( )

Get the action.

Returns
PersistenceAction value

Definition at line 51 of file PersistenceEvent.php.

Member Data Documentation

const NAME = __CLASS__

Definition at line 24 of file PersistenceEvent.php.