Jump to content

Triggers: Difference between revisions

From NusaATK
No edit summary
 
No edit summary
Line 1: Line 1:
You can use the following triggers on a node:
You can use the following triggers on a node:


- preAdd
- preAdd<br />
- postAdd
- postAdd<br />
- preUpdate
- preUpdate<br />
- postUpdate
- postUpdate<br />
- preDelete
- preDelete<br />
- postDelete
- postDelete<br />


to perform various tasks after or before an action has been executed.
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.
These triggers take only 1 argument, which is an array with the record. <br />
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.

Revision as of 12:57, 9 August 2006

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.