ValueChangeEvent Class Reference

Detailed Description

ValueChangeEvent signals a change of a value of a PersistentObject instance.

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

Definition at line 22 of file ValueChangeEvent.php.

+ Inheritance diagram for ValueChangeEvent:

Public Member Functions

 __construct (PersistentObject $object, $name, $oldValue, $newValue)
 
 getObject ()
 
 getValueName ()
 
 getOldValue ()
 
 getNewValue ()
 
- Public Member Functions inherited from Event
 stopPropagation ()
 
 isStopped ()
 

Public Attributes

const NAME = __CLASS__
 

Constructor & Destructor Documentation

__construct ( PersistentObject  $object,
  $name,
  $oldValue,
  $newValue 
)

Constructor.

Parameters
$objectPersistentObject instance which value has changed.
$nameThe name of the item that has changed.
$oldValueThe old value of the item that has changed.
$newValueThe new value of the item that has changed.

Definition at line 38 of file ValueChangeEvent.php.

Member Function Documentation

getObject ( )

Get the object whose value has changed.

Returns
PersistentObject instance

Definition at line 49 of file ValueChangeEvent.php.

getValueName ( )

Get the name of the value that has changed.

Returns
String

Definition at line 57 of file ValueChangeEvent.php.

getOldValue ( )

Get the old value.

Returns
Mixed

Definition at line 65 of file ValueChangeEvent.php.

getNewValue ( )

Get the new value.

Returns
Mixed

Definition at line 73 of file ValueChangeEvent.php.

Member Data Documentation

const NAME = __CLASS__

Definition at line 24 of file ValueChangeEvent.php.