PersistentObject.php
getOriginalValue($name)
Get the original of an attribute provided to the initialize method.
mergeValues(PersistentObject $object)
Copy all values, that don't exist yet from a given instance (ChangeListeners are not triggered)
getDisplayValue()
Get the value of the object used for display.
getValueNames($excludeTransient=false)
Get the names of all attributes.
afterCreate()
This method is called once after creation of this object.
setProperty($name, $value)
Set the value of a named property in the object.
getChangedValues()
Get the list of changed attributes since creation, loading.
getIndispensableObjects()
Get the list of objects that must exist in the store, before this object may be persisted.
const STATE_DELETED
Definition: PersistentObject.php:28
setState($state)
Set the state of the object to one of the STATE constants.
validateValues()
Validate all values by calling PersistentObject::validateValue() Throws a ValidationException in case...
setValue($name, $value, $forceSet=false, $trackChange=true)
Set the value of an attribute if it exists.
beforeDelete()
This method is called once before deleting the object from the store.
afterDelete()
This method is called once after deleting the object from the store.
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
beforeInsert()
This method is called once before inserting the newly created object into the store.
getValueProperty($name, $property)
Get the value of one property of an attribute.
hasValue($name)
Check if the object has a given attribute.
validateValue($name, $value)
Check if data may be set.
__clone()
Get a copy of the object (ChangeListeners and Lock are not copied)
afterInsert()
This method is called once after inserting the newly created object into the store.
beforeUpdate()
This method is called always before updating the modified object in the store.
copyValues(PersistentObject $object, $copyPkValues=true)
Copy all non-empty values to a given instance (ChangeListeners are triggered)
setValueProperty($name, $property, $value)
Set the value of one property of an attribute.
setOID(ObjectId $oid)
Set the object id of the PersistentObject.
const STATE_CLEAN
Definition: PersistentObject.php:25
getPropertyNames()
Get the names of all properties in the object.
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
afterLoad()
This method is called always after loading the object from the store.
dump()
Get a string representation of the values of the PersistentObject.
getProperty($name)
Get the value of a named property in the object.
const STATE_DIRTY
Definition: PersistentObject.php:26
getValuePropertyNames($name)
Get the names of all properties of a value in the object.
afterUpdate()
This method is called always after updating the modified object in the store.