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