root / framework / trunk / extensions / lexicon / orm / reactor / delete.cfm

Revision 336, 0.6 kB (checked in by scorfield, 2 years ago)

Shuffled all the sample lexicons into the new extensions directory and added the assertions
plugin. This is in preparation for the Fusebox 6 theme are extending through extensibility.
Note that the release script has not been updated so this is a stable BER.

Line 
1<cfscript>
2        // usage:
3        //              <reactor:delete bean="thisTask" />
4        if (fb_.verbInfo.executionMode is "start") {
5                // validate attributes
6                // bean - string
7                if (not structKeyExists(fb_.verbInfo.attributes,"bean")) {
8                        fb_throw("fusebox.badGrammar.requiredAttributeMissing",
9                                                "Required attribute is missing",
10                                                "The attribute 'bean' is required, for a 'delete' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11                }
12               
13                // generate code:
14                fb_appendLine('<cfset #fb_.verbInfo.attributes.bean#.delete() />');
15                fb_appendLine('<cfset myFusebox.trace("Reactor","Deleted Record") />');
16
17        } else {
18        }
19</cfscript>
Note: See TracBrowser for help on using the browser.