PersistenceEvent Class Reference
Detailed Description
PersistentEvent signals create/update/delete operations on a persistent entity.
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
-
$object PersistentObject instance. $action One of the PersistenceAction values. $oldOid The 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 | ( | ) |
◆ getOldOid()
getOldOid | ( | ) |
Member Data Documentation
◆ NAME
const NAME = __CLASS__ |
Definition at line 24 of file PersistenceEvent.php.