Event aupdate_before
This event is called after all the other AUPDATE_CONTROL_* events and just before the update. The update will then be done in the database by using the SetInstance
instruction, followed by a RewriteByKey
instruction. The update can still be refused if an error is set in this event.
The following variables or properties are available in the context:
this
refers to the current class. All properties can be found using the this.PROPERTY
syntax.CURPTH
describes the child class path if the method is called on a child class. If the method is called on the main class, CURPTH is empty.this.snapshot
refers to the initial values for the current class. All properties can be found using the this.snapshot.PROPERTY
syntax.AEVENT
is equal to AUPDATE_BEFORE.