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, $oldOid=null)
 
 getObject ()
 
 getAction ()
 
 getOldOid ()
 
- Public Member Functions inherited from Event
 stopPropagation ()
 
 isStopped ()
 

Public Attributes

const NAME = __CLASS__
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( PersistentObject  $object,
  $action,
  $oldOid = null 
)

Constructor.

Parameters
$objectPersistentObject instance.
$actionOne of the PersistenceAction values.
$oldOidThe object id of the object before the action was performed (optional)

Definition at line 36 of file PersistenceEvent.php.

Member Function Documentation

◆ getObject()

getObject ( )

Get the object involved.

Returns
PersistentObject instance

Definition at line 46 of file PersistenceEvent.php.

◆ getAction()

getAction ( )

Get the action.

Returns
PersistenceAction value

Definition at line 54 of file PersistenceEvent.php.

◆ getOldOid()

getOldOid ( )

Get the old object id.

Returns
ObjectId

Definition at line 62 of file PersistenceEvent.php.

Member Data Documentation

◆ NAME

const NAME = __CLASS__

Definition at line 24 of file PersistenceEvent.php.