Jump to content

Triggers

From NusaATK
Revision as of 12:57, 9 August 2006 by Boy (talk | contribs)

You can use the following triggers on a node:

- preAdd
- postAdd
- preUpdate
- postUpdate
- preDelete
- postDelete

to perform various tasks after or before an action has been executed.

These triggers take only 1 argument, which is an array with the record.
If the trigger is a pre- trigger, you can make the argument to be a pointer and you can adjust the record before it is added/updated/deleted.