wCMF
3.6
|
Public Member Functions | |
getId () | |
valueChanged (&$object, $name, $type, $oldValue, $newValue) | |
propertyChanged (&$object, $name, $oldValue, $newValue) | |
stateChanged (&$object, $oldValue, $newValue) | |
ChangeListener defines an interface for classes that want to be notified when a value of an persistent object changes.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 28 of file class.ChangeListener.php.
ChangeListener::getId | ( | ) |
Get a unique id for the listener.
Definition at line 34 of file class.ChangeListener.php.
References WCMFException\throwEx().
ChangeListener::valueChanged | ( | & | $object, |
$name, | |||
$type, | |||
$oldValue, | |||
$newValue | |||
) |
This method is called, when a named item has changed.
object | A reference to the PersistentObject that holds the item |
name | The name of the item that has changed. |
type | The type of the item that has changed. |
oldValue | The old value of the item that has changed |
newValue | The new value of the item that has changed |
Definition at line 46 of file class.ChangeListener.php.
References WCMFException\throwEx().
ChangeListener::propertyChanged | ( | & | $object, |
$name, | |||
$oldValue, | |||
$newValue | |||
) |
This method is called, when a property has changed.
object | A reference to the PersistentObject that holds the property |
name | The name of the property that has changed. |
oldValue | The old value of the item that has changed |
newValue | The new value of the item that has changed |
Definition at line 57 of file class.ChangeListener.php.
References WCMFException\throwEx().
ChangeListener::stateChanged | ( | & | $object, |
$oldValue, | |||
$newValue | |||
) |
This method is called, when the state has changed.
object | A reference to the PersistentObject that changed it's state |
oldValue | The old value of the state |
newValue | The new value of the state |
Definition at line 67 of file class.ChangeListener.php.
References WCMFException\throwEx().