Extracted at 2009-10-25.
pike.ida.liu.se
[Top]
Fins
Fins.Model
Fins.Model.DataObject

Method Fins.Model.DataObject()->validate_on_update()


Method validate_on_update

void validate_on_update(mapping changes, Fins.Errors.Validation errors, .DataObjectInstance i)

Description

validates the data being set for an object. runs for each individual or atomic change on updates only. all applicable validation methods will be called, and if any errors have been registered in the Fins.Errors.Validation object, the error object will be thrown.

Parameter changes

a mapping containing the field-value pairs changed.

Parameter errors

a Fins.Errors.Validation object that can be used to aggregate error messages by using the add() method.

Parameter i

the DataInstanceObject being created or updated.