Jump to content

Triggers

From NusaATK
Revision as of 12:55, 9 August 2006 by Boy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.