5 |
6 |
7 |
--------------------------------------------------------------------------------
/skeleton/noxml/parsed/FuseboxWillPlaceParsedFilesHere.txt:
--------------------------------------------------------------------------------
1 | Fusebox will take care of putting parsed files in here automatically. Just be
2 | sure to have a directory off your root called "parsed" in all your Fusebox apps.
3 |
--------------------------------------------------------------------------------
/skeleton/traditional/parsed/FuseboxWillPlaceParsedFilesHere.txt:
--------------------------------------------------------------------------------
1 | Fusebox will take care of putting parsed files in here automatically. Just be
2 | sure to have a directory off your root called "parsed" in all your Fusebox apps.
3 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/datasource.xml:
--------------------------------------------------------------------------------
1 | <>
2 |
3 | $$oMetaData.getDataSource()$$
4 |
5 |
6 |
7 | < >
--------------------------------------------------------------------------------
/corefiles/errortemplates/genericErrorMessage.cfm:
--------------------------------------------------------------------------------
1 |
2 | This is the template "errortemplates/#cfcatch.type#.cfm"
3 | An Error of type "#cfcatch.type#" has occured
4 | #cfcatch.message#
5 |
6 | #cfcatch.detail#
7 |
8 |
9 |
--------------------------------------------------------------------------------
/settings.xml:
--------------------------------------------------------------------------------
1 | false
--------------------------------------------------------------------------------
/skeleton/noxml/view/layout/lay_template.cfm:
--------------------------------------------------------------------------------
1 |
2 | This is an XML-free skeleton Fusebox 5.5 application.
3 |
4 | #body#
5 |
6 | Powered by Fusebox 5.5!
7 | (build #myFusebox.getApplication().getVersion()# - #myFusebox.getApplication().mode# )
8 |
9 |
--------------------------------------------------------------------------------
/skeleton/traditional/view/layout/lay_template.cfm:
--------------------------------------------------------------------------------
1 |
2 | This is a traditional skeleton Fusebox 5.5 application.
3 |
4 | #body#
5 |
6 | Powered by Fusebox 5.5!
7 | (build #myFusebox.getApplication().getVersion()# - #myFusebox.getApplication().mode# )
8 |
9 |
--------------------------------------------------------------------------------
/skeleton/traditional/plugins/PutPluginsHere.txt:
--------------------------------------------------------------------------------
1 | If you use any plugins, be sure to put them in a sub-directory off the root
2 | of your apps called "plugins". Fusebox will look for them here. If you use
3 | many plugins, then you can consider putting them in sub-directories below
4 | the "plugins" dir, being careful to specify the path to them in your
5 | application's fusebox.xml relative to the "plugins" dir.
6 |
--------------------------------------------------------------------------------
/extensions/README.txt:
--------------------------------------------------------------------------------
1 | Fusebox 5.5 Extensions Pack
2 |
3 | Please note that the lexicon/cf/ directory contains a number of verbs that
4 | have been submitted by the Fusebox community. Not all of these verbs have
5 | been tested by the Fusebox Corporation and they are provided as-is for your
6 | convenience and education. Please contact the authors of the verbs for more
7 | information. Unattributed verbs were most likely submitted by Sean Corfield seancorfield@gmail.com.
8 |
--------------------------------------------------------------------------------
/skeleton/traditional/index.cfm:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/skeleton/traditional/view/layout/circuit.xml.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/skeleton/traditional/view/display/circuit.xml.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/skeleton/README.txt:
--------------------------------------------------------------------------------
1 | Fusebox 5.5 Skeleton Applications
2 |
3 | Install the Fusebox 5.5 core files (see the Downloads section of fusebox.org).
4 |
5 | Copy this (skeleton) directory into your webroot.
6 |
7 | Test everything works by hitting these URLs in your browser:
8 |
9 | http://localhost/skeleton/traditional/
10 |
11 | http://localhost/skeleton/noxml/
12 |
13 | Replace "localhost" with whatever is appropriate for your server.
14 |
15 | The no-XML version requires Application.cfc support (ColdFusion MX 7 or later or compatible systems).
16 |
--------------------------------------------------------------------------------
/corefiles/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | fusebox5
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.ui.externaltools.ExternalToolBuilder
10 |
11 |
12 | LaunchConfigHandle
13 | <project>/.externalToolBuilders/cfdeploy.launch
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/corefiles/README.txt:
--------------------------------------------------------------------------------
1 | Fusebox 5.5 Core Files
2 |
3 | The simplest way to install Fusebox 5.5 is to copy this (fusebox5)
4 | directory to your webroot.
5 |
6 | Alternatively, you can create a mapping /fusebox5 that points to
7 | this directory.
8 |
9 | Then install the Fusebox 5.5 Skeleton application templates
10 | (see the Downloads section of fusebox.org) and test that
11 | it works.
12 |
13 | Fusebox 5.5 supports:
14 | - ColdFusion MX 6.1 and higher
15 | - BlueDragon 7.0 and higher
16 | - Railo 2.0 and higher
17 |
18 | See also the Fusebox 5.5 Release Notes in the docs/ directory.
19 |
--------------------------------------------------------------------------------
/skeleton/traditional/Application.cfm:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/corefiles/fuseboxTypeConverter.cfc:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/dummy.cfc:
--------------------------------------------------------------------------------
1 | <>
2 |
5 |
13 |
14 | < >
--------------------------------------------------------------------------------
/skeleton/noxml/model/time/act_get_time.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/skeleton/traditional/model/time/act_get_time.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/skeleton/traditional/plugins/example_plugin.cfm:
--------------------------------------------------------------------------------
1 |
8 | In example_plugin, parameter def = #myFusebox.plugins[myFusebox.thisPlugin].parameters.def#,
9 | custom attribute test:abc = #myFusebox.getApplication().plugins[myFusebox.thisPlugin][myFusebox.thisPhase].getCustomAttributes('test').abc#.
10 |
--------------------------------------------------------------------------------
/corefiles/errortemplates/PutErrorTemplatesHere.txt:
--------------------------------------------------------------------------------
1 | If you use any error templates to specially-handle Fusebox core file error, be sure to put them in a sub-directory off the root of your apps called "errortemplates". Fusebox will look for them here, as files that are named the same as the error to which they refer, in the form "[FuseboxErrorName].cfm", where FuseboxErrorName corresponds to the error type generated by the Fusebox core file. Examples are "fusebox.failedAssertion.cfm" and "fusebox.circuitXMLError.cfm".
2 |
3 | Modify the sample error templates files included in the core file distribution as you see fit. Alternately, just rename or delete them and the natural error(s) thrown by the Fusebox core will be thrown.
--------------------------------------------------------------------------------
/scaffolder/index-template.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/skeleton/noxml/controller/app.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/save.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
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 'save' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11 | }
12 |
13 | // generate code:
14 | fb_appendLine(' ');
15 | fb_appendLine(' ');
16 |
17 | } else {
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/delete.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
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(' ');
15 | fb_appendLine(' ');
16 |
17 | } else {
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/AbstractGateway.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/populate.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
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 'populate' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11 | }
12 |
13 | // generate code:
14 | fb_appendLine(' ');
15 | fb_appendLine(' ');
16 |
17 | } else {
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/scaffolder/scaffolder/xmlProxy.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | #xmlOutput#
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/populate.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
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 'populate' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11 | }
12 |
13 | // generate code:
14 | fb_appendLine(' ');
15 | fb_appendLine(' ');
16 |
17 | } else {
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/skeleton/traditional/model/time/circuit.xml.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/messages.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 | < >
20 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/messages.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 | < >
20 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/save.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
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 'save' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11 | }
12 |
13 | // generate code:
14 | fb_appendLine(' ');
16 | fb_appendLine(' ');
17 |
18 | } else {
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/skeleton/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/delete.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
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(' ');
16 | fb_appendLine(' ');
17 |
18 | } else {
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/skeleton/traditional/fusebox.appinit.cfm:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/skeleton/traditional/Application.cfc:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
21 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/throw.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Barney Boisvert (bboisvert@gmail.com)
3 | // custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction (all attributes optional):
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 | fb_.keys = listToArray("type,message,detail");
12 | fb_.result = ' ');
19 | }
20 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/fusebox.init.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 | < >
21 |
22 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/try.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | // ... other code ...
9 | //
10 | // ... exception handler ...
11 | //
12 | //
13 | //
14 | // how this works:
15 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
16 | // b. in start mode, generate the required CFML
17 | // c. in end mode, generate the required CFML
18 | //
19 | if (fb_.verbInfo.executionMode is "start") {
20 | //
21 | // validate attributes - there are no attributes for try:
22 | //
23 | // start mode:
24 | fb_appendLine('<' & 'cftry>');
25 | } else {
26 | //
27 | // end mode:
28 | fb_appendLine('<' & '/cftry>');
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/try.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | // ... other code ...
9 | //
10 | // ... exception handler ...
11 | //
12 | //
13 | //
14 | // how this works:
15 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
16 | // b. in start mode, generate the required CFML
17 | // c. in end mode, generate the required CFML
18 | //
19 | if (fb_.verbInfo.executionMode is "start") {
20 | //
21 | // validate attributes - there are no attributes for try:
22 | //
23 | // start mode:
24 | fb_appendLine('<' & 'cftry>');
25 | } else {
26 | //
27 | // end mode:
28 | fb_appendLine('<' & '/cftry>');
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/bean.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/service.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/gateway.cfc:
--------------------------------------------------------------------------------
1 | <>
16 |
17 | <>
18 |
19 |
20 |
21 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/validator.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | < >
22 |
23 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/dao.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/gateway.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/record.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/service.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/controller/CFC/fusebox.init.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 | < >
22 |
23 |
--------------------------------------------------------------------------------
/scaffolder/templates/controller/XML/fusebox.init.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 | < >
22 |
23 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/gateway.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 | < >
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/init.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
5 | if (fb_.verbInfo.executionMode is "start") {
6 | // validate attributes
7 | // configuration - string (path)
8 | if (not structKeyExists(fb_.verbInfo.attributes,"configuration")) {
9 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
10 | "Required attribute is missing",
11 | "The attribute 'configuration' is required, for a 'init' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
12 | }
13 | // generate code:
14 | fb_appendLine(' ');
17 | fb_appendLine(' ');
18 | } else {
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/validator.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | < >
22 |
23 |
--------------------------------------------------------------------------------
/skeleton/traditional/fusebox.init.cfm:
--------------------------------------------------------------------------------
1 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/serviceGetMessages.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 | < >
23 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/reinitialise.xml.cfm:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/reinitialise.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/serviceGetMessages.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 | < >
23 |
--------------------------------------------------------------------------------
/skeleton/traditional/controller/circuit.xml.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
17 |
18 |
19 |
20 |
21 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/abort.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Nathan Strutz (strutz@gmail.com)
3 | // example custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | //
11 | // how this works:
12 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
13 | // b. in start mode, generate the required CFML
14 | // c. in end mode, do nothing (this tag does not nest)
15 | //
16 | if (fb_.verbInfo.executionMode is "start") {
17 | //
18 | // showerror is optional, create the text to generate:
19 | if (structKeyExists(fb_.verbInfo.attributes,"showerror")) {
20 | fb_.showerror = ' showerror="#fb_.verbInfo.attributes.showerror#"';
21 | } else {
22 | fb_.showerror = '';
23 | }
24 | //
25 | // start mode:
26 | fb_appendLine('');
27 | } else {
28 | //
29 | // end mode - do nothing
30 | }
31 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/abort.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Nathan Strutz (strutz@gmail.com)
3 | // example custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | //
11 | // how this works:
12 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
13 | // b. in start mode, generate the required CFML
14 | // c. in end mode, do nothing (this tag does not nest)
15 | //
16 | if (fb_.verbInfo.executionMode is "start") {
17 | //
18 | // showerror is optional, create the text to generate:
19 | if (structKeyExists(fb_.verbInfo.attributes,"showerror")) {
20 | fb_.showerror = ' showerror="#fb_.verbInfo.attributes.showerror#"';
21 | } else {
22 | fb_.showerror = '';
23 | }
24 | //
25 | // start mode:
26 | fb_appendLine('');
27 | } else {
28 | //
29 | // end mode - do nothing
30 | }
31 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/baseMessages.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | < >
22 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseMessages.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | < >
22 |
--------------------------------------------------------------------------------
/corefiles/FuseboxContext.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/corefiles/FakeStringBuffer.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/fusebox.appinit.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 | < >
21 |
22 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/base_circuit.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
17 | <>
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | < >
32 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseDao.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseValidator.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 | < >
24 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/savecontent.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | //
4 | // author: Barney Boisvert
5 | //
6 | // usage:
7 | // 1. add the lexicon declaration to your circuit file:
8 | //
9 | // 2. use the verb in a fuseaction:
10 | //
11 | // ... other code ...
12 | //
13 | if (fb_.verbInfo.executionMode is "start") {
14 | if (structKeyExists(fb_.verbInfo.attributes,"variable")) {
15 | fb_.variable = fb_.verbInfo.attributes.variable;
16 | } else if (structKeyExists(fb_.verbInfo.attributes,"var")) {
17 | fb_.variable = fb_.verbInfo.attributes.var;
18 | } else {
19 | fb_throw(
20 | "fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'variable' (or the 'var' shorthand) is required, for a 'savecontent' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#."
23 | );
24 | }
25 | fb_appendLine('<' & 'cfsavecontent variable="#fb_.variable#">');
26 | } else {
27 | fb_appendLine('<' & '/cfsavecontent>');
28 | }
29 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/baseDao.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/baseValidator.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 | < >
24 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseGateway.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseService.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/baseGateway.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/baseRecord.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/baseService.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/AbstractDAO.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/initialize.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Initializes a Reactor factory into the current application scope (respecting the fusebox application key)
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // beanDefinitionFile is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"configuration")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'configuration' is required, for a 'initialize' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | //
19 |
20 | // set ColdSpring in this fusebox instance's application space
21 | fb_appendLine(' ');
22 | } else {
23 | //
24 | // end mode - do nothing
25 | }
26 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/initialize.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Initializes a Reactor factory into the current application scope (respecting the fusebox application key)
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // beanDefinitionFile is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"configuration")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'configuration' is required, for a 'initialize' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | //
19 |
20 | // set ColdSpring in this fusebox instance's application space
21 | fb_appendLine(' ');
22 | } else {
23 | //
24 | // end mode - do nothing
25 | }
26 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/list.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
6 | if (fb_.verbInfo.executionMode is "start") {
7 | // validate attributes
8 | // object - string
9 | if (not structKeyExists(fb_.verbInfo.attributes,"object")) {
10 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
11 | "Required attribute is missing",
12 | "The attribute 'object' is required, for a 'list' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
13 | }
14 | // query - string
15 | if (not structKeyExists(fb_.verbInfo.attributes,"query")) {
16 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
17 | "Required attribute is missing",
18 | "The attribute 'query' is required, for a 'list' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
19 | }
20 | // generate code:
21 | fb_appendLine(' ');
23 | fb_appendLine(' ');
24 | } else {
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/list.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
6 | if (fb_.verbInfo.executionMode is "start") {
7 | // validate attributes
8 | // object - string
9 | if (not structKeyExists(fb_.verbInfo.attributes,"object")) {
10 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
11 | "Required attribute is missing",
12 | "The attribute 'object' is required, for a 'init' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
13 | }
14 | // query - string
15 | if (not structKeyExists(fb_.verbInfo.attributes,"query")) {
16 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
17 | "Required attribute is missing",
18 | "The attribute 'query' is required, for a 'init' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
19 | }
20 | // generate code:
21 | fb_appendLine(' ');
23 | fb_appendLine(' ');
24 |
25 | } else {
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/serviceGetAll.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | <> < >
22 |
23 |
24 | < >
25 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/serviceValidate.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | < >
27 |
--------------------------------------------------------------------------------
/corefiles/.externalToolBuilders/cfdeploy.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/initialise.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
17 | <>
18 |
19 |
20 |
21 |
22 |
23 | <>
24 | < >
25 |
26 | < >
27 |
28 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/serviceInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseBean.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/baseRecord.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/dao.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/circuit.xml.cfm:
--------------------------------------------------------------------------------
1 |
2 | <>
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/model_circuit.xml.cfm:
--------------------------------------------------------------------------------
1 |
2 | <>
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/getMessage.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 | < >
30 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/getMessage.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 | < >
30 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/to.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a transfer object of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'to' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'to' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/to.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a transfer object of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'to' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'to' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/templates/controller/CFC/initialise.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 | < >
26 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/initialise.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 | < >
26 |
27 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/dao.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a data access object of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'dao' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'dao' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/dao.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a data access object of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'dao' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'dao' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/record.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a record of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'record' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'record' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/record.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a record of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'record' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'record' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/gateway.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a gateway of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'gateway' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'gateway' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/gateway.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a gateway of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'gateway' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'gateway' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/initialise.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 | <>
25 | < >
26 |
27 | < >
28 |
29 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/iterator.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a iterator of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'iterator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'iterator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/metadata.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a metadata of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'metadata' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'metadata' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/iterator.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a iterator of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'iterator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'iterator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/metadata.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a metadata of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'metadata' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'metadata' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/validator.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a validator of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'validator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'validator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/validator.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a validator of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'validator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'validator' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/dictionary.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a dictionary of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'dictionary' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'dictionary' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/dictionary.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a dictionary of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'dictionary' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // returnvariable is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'returnvariable' is required, for a 'dictionary' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 |
25 | fb_appendLine(' ');
26 |
27 | //
28 | } else {
29 | //
30 | // end mode - do nothing
31 | }
32 |
--------------------------------------------------------------------------------
/scaffolder/scaffolder/test.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/model_circuit.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
35 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/dump.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | //
9 | //
10 | // how this works:
11 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
12 | // b. in start mode, generate the required CFML
13 | // c. in end mode, do nothing (this tag does not nest)
14 | //
15 | if (fb_.verbInfo.executionMode is "start") {
16 | //
17 | // validate attributes:
18 | // var is required:
19 | if (not structKeyExists(fb_.verbInfo.attributes,"var")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'var' is required, for a 'dump' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 | // label is optional, create the text to generate - note the quoting technique:
25 | if (structKeyExists(fb_.verbInfo.attributes,"label")) {
26 | fb_.label = 'label="#fb_.verbInfo.attributes.label#"';
27 | } else {
28 | fb_.label = '';
29 | }
30 | //
31 | // start mode:
32 | fb_appendLine('');
33 | } else {
34 | //
35 | // end mode - do nothing
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/dump.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | //
9 | //
10 | // how this works:
11 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
12 | // b. in start mode, generate the required CFML
13 | // c. in end mode, do nothing (this tag does not nest)
14 | //
15 | if (fb_.verbInfo.executionMode is "start") {
16 | //
17 | // validate attributes:
18 | // var is required:
19 | if (not structKeyExists(fb_.verbInfo.attributes,"var")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'var' is required, for a 'dump' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 | // label is optional, create the text to generate - note the quoting technique:
25 | if (structKeyExists(fb_.verbInfo.attributes,"label")) {
26 | fb_.label = 'label="#fb_.verbInfo.attributes.label#"';
27 | } else {
28 | fb_.label = '';
29 | }
30 | //
31 | // start mode:
32 | fb_appendLine('');
33 | } else {
34 | //
35 | // end mode - do nothing
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/templateReport.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Template Report
10 |
11 |
12 |
13 | File
14 | Method or Fuseaction
15 | InPlace
16 | Overwrite
17 | Per Object
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | #left(aTemplateFiles[i].templateFile,Len(aTemplateFiles[i].outputFile))#
30 | #thisFile#
31 | #thisMethod#
32 | YN
33 | YN
34 | YN
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/controller_circuit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | < >
39 |
--------------------------------------------------------------------------------
/scaffolder/templates/controller/XML/controller_circuit.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
35 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/serviceGetAll.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 | <> < >
22 | <> < >
23 |
24 |
25 | < >
26 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/validatorInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 | <>
23 | < >
24 | <>
25 | < >
26 |
27 |
28 | < >
29 |
30 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/switch.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | //
9 | // ... some code ...
10 | //
11 | //
12 | // ... more code ...
13 | //
14 | //
15 | // ... default code ...
16 | //
17 | //
18 | //
19 | // how this works:
20 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
21 | // b. in start mode, generate the required CFML
22 | // c. in end mode, generate the required CFML
23 | //
24 | if (fb_.verbInfo.executionMode is "start") {
25 | //
26 | // validate attributes:
27 | // expression is required:
28 | if (not structKeyExists(fb_.verbInfo.attributes,"expression")) {
29 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
30 | "Required attribute is missing",
31 | "The attribute 'expression' is required, for a 'switch' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
32 | }
33 | //
34 | // start mode:
35 | fb_appendLine('<' & 'cfswitch expression="#fb_.verbInfo.attributes.expression#">');
36 | } else {
37 | //
38 | // end mode:
39 | fb_appendLine('<' & '/cfswitch>');
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/switch.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | //
9 | // ... some code ...
10 | //
11 | //
12 | // ... more code ...
13 | //
14 | //
15 | // ... default code ...
16 | //
17 | //
18 | //
19 | // how this works:
20 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
21 | // b. in start mode, generate the required CFML
22 | // c. in end mode, generate the required CFML
23 | //
24 | if (fb_.verbInfo.executionMode is "start") {
25 | //
26 | // validate attributes:
27 | // expression is required:
28 | if (not structKeyExists(fb_.verbInfo.attributes,"expression")) {
29 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
30 | "Required attribute is missing",
31 | "The attribute 'expression' is required, for a 'switch' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
32 | }
33 | //
34 | // start mode:
35 | fb_appendLine('<' & 'cfswitch expression="#fb_.verbInfo.attributes.expression#">');
36 | } else {
37 | //
38 | // end mode:
39 | fb_appendLine('<' & '/cfswitch>');
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/serviceGetSuggest.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 |
19 | <>
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/daoInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
35 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/daoInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
35 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/gatewayInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
35 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/catch.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | // ... other code ...
9 | //
10 | // ... exception handler ...
11 | //
12 | //
13 | //
14 | // how this works:
15 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
16 | // b. in start mode, generate the required CFML
17 | // c. in end mode, generate the required CFML
18 | //
19 | if (fb_.verbInfo.executionMode is "start") {
20 | //
21 | // validate attributes:
22 | // parent tag must be a try verb in the same lexicon:
23 | if (not structKeyExists(fb_.verbInfo,"parent") or
24 | fb_.verbInfo.parent.lexicon is not fb_.verbInfo.lexicon or
25 | fb_.verbInfo.parent.lexiconVerb is not "try") {
26 | fb_throw("fusebox.badGrammar.invalidNesting",
27 | "Verb is invalid in this context",
28 | "The verb 'catch' does not appear directly nested within a 'try' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
29 | }
30 | //
31 | // type is optional:
32 | if (structKeyExists(fb_.verbInfo.attributes,"type")) {
33 | fb_.type = ' type="#fb_.verbInfo.attributes.type#"';
34 | } else {
35 | fb_.type = '';
36 | }
37 | //
38 | // start mode:
39 | fb_appendLine('<' & 'cfcatch#fb_.type#>');
40 | } else {
41 | //
42 | // end mode:
43 | fb_appendLine('<' & '/cfcatch>');
44 | }
45 |
46 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/catch.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | // ... other code ...
9 | //
10 | // ... exception handler ...
11 | //
12 | //
13 | //
14 | // how this works:
15 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
16 | // b. in start mode, generate the required CFML
17 | // c. in end mode, generate the required CFML
18 | //
19 | if (fb_.verbInfo.executionMode is "start") {
20 | //
21 | // validate attributes:
22 | // parent tag must be a try verb in the same lexicon:
23 | if (not structKeyExists(fb_.verbInfo,"parent") or
24 | fb_.verbInfo.parent.lexicon is not fb_.verbInfo.lexicon or
25 | fb_.verbInfo.parent.lexiconVerb is not "try") {
26 | fb_throw("fusebox.badGrammar.invalidNesting",
27 | "Verb is invalid in this context",
28 | "The verb 'catch' does not appear directly nested within a 'try' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
29 | }
30 | //
31 | // type is optional:
32 | if (structKeyExists(fb_.verbInfo.attributes,"type")) {
33 | fb_.type = ' type="#fb_.verbInfo.attributes.type#"';
34 | } else {
35 | fb_.type = '';
36 | }
37 | //
38 | // start mode:
39 | fb_appendLine('<' & 'cfcatch#fb_.type#>');
40 | } else {
41 | //
42 | // end mode:
43 | fb_appendLine('<' & '/cfcatch>');
44 | }
45 |
46 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/read.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
4 | //
5 | //
6 | if (fb_.verbInfo.executionMode is "start") {
7 | // validate attributes
8 | // object - string
9 | if (not structKeyExists(fb_.verbInfo.attributes,"object")) {
10 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
11 | "Required attribute is missing",
12 | "The attribute 'object' is required, for a 'read' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
13 | }
14 | // bean - string
15 | if (not structKeyExists(fb_.verbInfo.attributes,"bean")) {
16 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
17 | "Required attribute is missing",
18 | "The attribute 'bean' is required, for a 'read' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
19 | }
20 |
21 | // prepare for any parameters:
22 | fb_.verbInfo.parameters = structNew();
23 |
24 | } else {
25 | // generate code:
26 | fb_.properties = "";
27 | // gather up parameters:
28 | for (fb_.p in fb_.verbInfo.parameters) {
29 | fb_.properties = listAppend(fb_.properties,'#fb_.p#="#fb_.verbInfo.parameters[fb_.p]#"');
30 | }
31 | fb_appendLine(' ');
34 | fb_appendLine(' ');
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/defaultcase.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | //
9 | // ... some code ...
10 | //
11 | //
12 | // ... more code ...
13 | //
14 | //
15 | // ... default code ...
16 | //
17 | //
18 | //
19 | // how this works:
20 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
21 | // b. in start mode, generate the required CFML
22 | // c. in end mode, generate the required CFML
23 | //
24 | if (fb_.verbInfo.executionMode is "start") {
25 | //
26 | // validate attributes:
27 | // parent tag must be a switch verb in the same lexicon:
28 | if (not structKeyExists(fb_.verbInfo,"parent") or
29 | fb_.verbInfo.parent.lexicon is not fb_.verbInfo.lexicon or
30 | fb_.verbInfo.parent.lexiconVerb is not "switch") {
31 | fb_throw("fusebox.badGrammar.invalidNesting",
32 | "Verb is invalid in this context",
33 | "The verb 'defaultcase' does not appear directly nested within a 'switch' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
34 | }
35 | //
36 | // start mode:
37 | fb_appendLine('<' & 'cfdefaultcase>');
38 | } else {
39 | //
40 | // end mode:
41 | fb_appendLine('<' & '/cfdefaultcase>');
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/defaultcase.cfm:
--------------------------------------------------------------------------------
1 |
2 | // example custom verb that compiles to a tag
3 | // usage:
4 | // 1. add the lexicon declaration to your circuit file:
5 | //
6 | // 2. use the verb in a fuseaction:
7 | //
8 | //
9 | // ... some code ...
10 | //
11 | //
12 | // ... more code ...
13 | //
14 | //
15 | // ... default code ...
16 | //
17 | //
18 | //
19 | // how this works:
20 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
21 | // b. in start mode, generate the required CFML
22 | // c. in end mode, generate the required CFML
23 | //
24 | if (fb_.verbInfo.executionMode is "start") {
25 | //
26 | // validate attributes:
27 | // parent tag must be a switch verb in the same lexicon:
28 | if (not structKeyExists(fb_.verbInfo,"parent") or
29 | fb_.verbInfo.parent.lexicon is not fb_.verbInfo.lexicon or
30 | fb_.verbInfo.parent.lexiconVerb is not "switch") {
31 | fb_throw("fusebox.badGrammar.invalidNesting",
32 | "Verb is invalid in this context",
33 | "The verb 'defaultcase' does not appear directly nested within a 'switch' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
34 | }
35 | //
36 | // start mode:
37 | fb_appendLine('<' & 'cfdefaultcase>');
38 | } else {
39 | //
40 | // end mode:
41 | fb_appendLine('<' & '/cfdefaultcase>');
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/read.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
4 | //
5 | //
6 | if (fb_.verbInfo.executionMode is "start") {
7 | // validate attributes
8 | // object - string
9 | if (not structKeyExists(fb_.verbInfo.attributes,"object")) {
10 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
11 | "Required attribute is missing",
12 | "The attribute 'object' is required, for a 'read' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
13 | }
14 | // bean - string
15 | if (not structKeyExists(fb_.verbInfo.attributes,"bean")) {
16 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
17 | "Required attribute is missing",
18 | "The attribute 'bean' is required, for a 'read' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
19 | }
20 |
21 | // prepare for any parameters:
22 | fb_.verbInfo.parameters = structNew();
23 |
24 | } else {
25 | // generate code:
26 | fb_appendLine(' ');
27 | // gather up parameters:
28 | for (fb_.p in fb_.verbInfo.parameters) {
29 | fb_appendLine(' ');
30 | }
31 | fb_appendLine(' ');
34 | fb_appendLine(' ');
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/reactor/parameter.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage inside other verbs:
3 | //
6 | if (fb_.verbInfo.executionMode is "start") {
7 | // validate attributes
8 | // must have a parent verb in this lexicon:
9 | if (structKeyExists(fb_.verbInfo,"parent") and
10 | fb_.verbInfo.parent.lexicon is fb_.verbInfo.lexicon and
11 | listFind("delete,read,save",fb_.verbInfo.parent.lexiconVerb) neq 0) {
12 |
13 | // name - string - required
14 | if (not structKeyExists(fb_.verbInfo.attributes,"name")) {
15 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
16 | "Required attribute is missing",
17 | "The attribute 'name' is required, for a 'parameter' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
18 | }
19 | // value - string - required
20 | if (not structKeyExists(fb_.verbInfo.attributes,"value")) {
21 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
22 | "Required attribute is missing",
23 | "The attribute 'value' is required, for a 'parameter' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
24 | }
25 | // add this parameter to the parent data:
26 | fb_.verbInfo.parent.parameters[fb_.verbInfo.attributes.name] = fb_.verbInfo.attributes.value;
27 |
28 | } else {
29 |
30 | fb_throw("fusebox.badGrammar.parameterInvalidParent",
31 | "Verb 'parameter' has invalid parent verb",
32 | "Found 'parameter' verb with no valid parent verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
33 |
34 | }
35 |
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/parameter.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage inside other verbs:
3 | //
6 | if (fb_.verbInfo.executionMode is "start") {
7 | // validate attributes
8 | // must have a parent verb this lexicon:
9 | if (structKeyExists(fb_.verbInfo,"parent") and
10 | fb_.verbInfo.parent.lexicon is fb_.verbInfo.lexicon and
11 | listFind("delete,read,save",fb_.verbInfo.parent.lexiconVerb) neq 0) {
12 |
13 | // name - string - required
14 | if (not structKeyExists(fb_.verbInfo.attributes,"name")) {
15 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
16 | "Required attribute is missing",
17 | "The attribute 'name' is required, for a 'parameter' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
18 | }
19 | // value - string - required
20 | if (not structKeyExists(fb_.verbInfo.attributes,"value")) {
21 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
22 | "Required attribute is missing",
23 | "The attribute 'value' is required, for a 'parameter' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
24 | }
25 | // add this parameter to the parent data:
26 | fb_.verbInfo.parent.parameters[fb_.verbInfo.attributes.name] = fb_.verbInfo.attributes.value;
27 |
28 | } else {
29 |
30 | fb_throw("fusebox.badGrammar.parameterInvalidParent",
31 | "Verb 'parameter' has invalid parent verb",
32 | "Found 'parameter' verb with no valid parent verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
33 |
34 | }
35 |
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/scaffolder/templates/controller/XML/action_delete.xml.cfm:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 |
19 | <>
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | < >
33 |
--------------------------------------------------------------------------------
/extensions/lexicon/coldspring/bean.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Qasim Rasheed (qasimrasheed@gmail.com)
3 | // Original idea taken by COldSpring lexicon by Nathan Strutz.
4 | // used as a child tag with coldspring initialize tag
5 | // usage:
6 | // 1. add the lexicon declaration to your circuit file:
7 | //
8 | // 2 add bean tag as a child to initialize tag
9 | //
10 | //
11 | // more bean tags......
12 | //
13 |
14 | if (fb_.verbInfo.executionMode is "start") {
15 | // validates attributes
16 | // beanDefinitionFile is required
17 | if (not structKeyExists( fb_.verbInfo.attributes, "beanDefinitionFile" ) ) {
18 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
19 | "Required attribute is missing",
20 | "The attribute 'beanDefinitionFile' is required, for a 'bean' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
21 | }
22 |
23 | // must be nested inside an
24 | if (not structKeyExists(fb_.verbInfo,"parent") or fb_.verbInfo.parent.lexiconVerb is not "initialize") {
25 | fb_throw("fusebox.badGrammar.parameterNeedsInclude",
26 | "Verb 'bean' has no parent 'initialize' verb",
27 | "Found 'bean' verb with no valid parent 'initialize' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
28 | }
29 |
30 | // append this bean to the parent data:
31 | arrayAppend( fb_.verbInfo.parent.beans,fb_.verbInfo.attributes.beanDefinitionFile );
32 |
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/coldspring/bean.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Qasim Rasheed (qasimrasheed@gmail.com)
3 | // Original idea taken by COldSpring lexicon by Nathan Strutz.
4 | // used as a child tag with coldspring initialize tag
5 | // usage:
6 | // 1. add the lexicon declaration to your circuit file:
7 | //
8 | // 2 add bean tag as a child to initialize tag
9 | //
10 | //
11 | // more bean tags......
12 | //
13 |
14 | if (fb_.verbInfo.executionMode is "start") {
15 | // validates attributes
16 | // beanDefinitionFile is required
17 | if (not structKeyExists( fb_.verbInfo.attributes, "beanDefinitionFile" ) ) {
18 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
19 | "Required attribute is missing",
20 | "The attribute 'beanDefinitionFile' is required, for a 'bean' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
21 | }
22 |
23 | // must be nested inside an
24 | if (not structKeyExists(fb_.verbInfo,"parent") or fb_.verbInfo.parent.lexiconVerb is not "initialize") {
25 | fb_throw("fusebox.badGrammar.parameterNeedsInclude",
26 | "Verb 'bean' has no parent 'initialize' verb",
27 | "Found 'bean' verb with no valid parent 'initialize' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
28 | }
29 |
30 | // append this bean to the parent data:
31 | arrayAppend( fb_.verbInfo.parent.beans,fb_.verbInfo.attributes.beanDefinitionFile );
32 |
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/serviceInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/validatorInit.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 | <>
23 | <>
24 | < >
25 |
26 | <>
27 | < >
28 | < >
29 |
30 |
31 | < >
32 |
33 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/timer.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Qasim Rasheed (qasimrasheed@gmail.com)
3 | // example custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | // For details on the use of tag. please refer to the documentation.
11 | // http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000346.htm
12 | //
13 | // how this works:
14 | // a. validate the attributes passed in (fb_.verbInfo.attributes) along with checking for valid value for attributes.
15 | // b. in start mode, generate the required CFML
16 | // c. in end mode, add the closing cftrace tag.
17 | //
18 |
19 | if (fb_.verbInfo.executionMode is "start") {
20 | fb_.label = '';
21 | fb_.type = 'debug';
22 |
23 | if ( structKeyExists(fb_.verbInfo.attributes, 'label' ) )
24 | fb_.label = ' label="#fb_.verbInfo.attributes.label#"';
25 |
26 | if ( structKeyExists( fb_.verbInfo.attributes, 'type' ) ) {
27 | fb_.type = fb_.verbInfo.attributes.type;
28 | if (not listfindnocase( 'inline,outline,comment,debug', fb_.type ) )
29 | fb_throw( "fusebox.badGrammar.invalidAttributeValue",
30 | "Attribute has invalid value",
31 | "The attribute 'type' must be one of the these values 'inline,outline,comment,debug' for 'timer' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
32 | }
33 |
34 | fb_appendLine('');
35 | } else {
36 | // fb_.verbInfo.executionMode is "end"
37 | fb_appendLine(" ");
38 | }
39 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/timer.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Qasim Rasheed (qasimrasheed@gmail.com)
3 | // example custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | // For details on the use of tag. please refer to the documentation.
11 | // http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000346.htm
12 | //
13 | // how this works:
14 | // a. validate the attributes passed in (fb_.verbInfo.attributes) along with checking for valid value for attributes.
15 | // b. in start mode, generate the required CFML
16 | // c. in end mode, add the closing cftrace tag.
17 | //
18 |
19 | if (fb_.verbInfo.executionMode is "start") {
20 | fb_.label = '';
21 | fb_.type = 'debug';
22 |
23 | if ( structKeyExists(fb_.verbInfo.attributes, 'label' ) )
24 | fb_.label = ' label="#fb_.verbInfo.attributes.label#"';
25 |
26 | if ( structKeyExists( fb_.verbInfo.attributes, 'type' ) ) {
27 | fb_.type = fb_.verbInfo.attributes.type;
28 | if (not listfindnocase( 'inline,outline,comment,debug', fb_.type ) )
29 | fb_throw( "fusebox.badGrammar.invalidAttributeValue",
30 | "Attribute has invalid value",
31 | "The attribute 'type' must be one of the these values 'inline,outline,comment,debug' for 'timer' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
32 | }
33 |
34 | fb_appendLine('');
35 | } else {
36 | // fb_.verbInfo.executionMode is "end"
37 | fb_appendLine(" ");
38 | }
39 |
--------------------------------------------------------------------------------
/scaffolder/templates/Spry/udf_appendParam.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
22 |
23 | function appendParam(string,name,value){
24 | var queryStringStart = "?";
25 | var queryStringSeparator = "&";
26 | var queryStringEquals = "=";
27 |
28 | // set search safe if required
29 | if (request.searchSafe){
30 | queryStringStart = "/";
31 | queryStringSeparator = "/";
32 | queryStringEquals = "/";
33 | }
34 |
35 | // check for the first string
36 | if (trim(string) EQ "")
37 | string = queryStringStart;
38 | else{
39 | if (trim(string) IS NOT "?" AND trim(string) IS NOT "/")
40 | string = string & queryStringSeparator;
41 | }
42 |
43 | if (trim(name) IS NOT "" AND trim(value) IS NOT "")
44 | string = string & name & queryStringEquals & urlencodedformat(value);
45 |
46 | return string;
47 | }
48 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/udf_appendParam.cfm:
--------------------------------------------------------------------------------
1 |
16 |
22 |
23 | function appendParam(string,name,value){
24 | var queryStringStart = "?";
25 | var queryStringSeparator = "&";
26 | var queryStringEquals = "=";
27 |
28 | // set search safe if required
29 | if (request.searchSafe){
30 | queryStringStart = "/";
31 | queryStringSeparator = "/";
32 | queryStringEquals = "/";
33 | }
34 |
35 | // check for the first string
36 | if (trim(string) EQ "")
37 | string = queryStringStart;
38 | else{
39 | if (trim(string) IS NOT "?" AND trim(string) IS NOT "/")
40 | string = string & queryStringSeparator;
41 | }
42 |
43 | if (trim(name) IS NOT "" AND trim(value) IS NOT "")
44 | string = string & name & queryStringEquals & urlencodedformat(value);
45 |
46 | return string;
47 | }
48 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/udf_appendParam.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
22 |
23 | function appendParam(string,name,value){
24 | var queryStringStart = "?";
25 | var queryStringSeparator = "&";
26 | var queryStringEquals = "=";
27 |
28 | // set search safe if required
29 | if (request.searchSafe){
30 | queryStringStart = "/";
31 | queryStringSeparator = "/";
32 | queryStringEquals = "/";
33 | }
34 |
35 | // check for the first string
36 | if (trim(string) EQ "")
37 | string = queryStringStart;
38 | else{
39 | if (trim(string) IS NOT "?" AND trim(string) IS NOT "/")
40 | string = string & queryStringSeparator;
41 | }
42 |
43 | if (trim(name) IS NOT "" AND trim(value) IS NOT "")
44 | string = string & name & queryStringEquals & urlencodedformat(value);
45 |
46 | return string;
47 | }
48 |
--------------------------------------------------------------------------------
/scaffolder/templates/view/HTML/udf_appendParam.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
22 |
23 | function appendParam(string,name,value){
24 | var queryStringStart = "?";
25 | var queryStringSeparator = "&";
26 | var queryStringEquals = "=";
27 |
28 | // set search safe if required
29 | if (request.searchSafe){
30 | queryStringStart = "/";
31 | queryStringSeparator = "/";
32 | queryStringEquals = "/";
33 | }
34 |
35 | // check for the first string
36 | if (trim(string) EQ "")
37 | string = queryStringStart;
38 | else{
39 | if (trim(string) IS NOT "?" AND trim(string) IS NOT "/")
40 | string = string & queryStringSeparator;
41 | }
42 |
43 | if (trim(name) IS NOT "" AND trim(value) IS NOT "")
44 | string = string & name & queryStringEquals & urlencodedformat(value);
45 |
46 | return string;
47 | }
48 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/getRecordCount.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
--------------------------------------------------------------------------------
/extensions/lexicon/reactor/plugin.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a plugin of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'plugin' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // plugin is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"plugin")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'plugin' is required, for a 'plugin' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 | // returnvariable is required
25 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
26 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
27 | "Required attribute is missing",
28 | "The attribute 'returnvariable' is required, for a 'plugin' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
29 | }
30 |
31 | fb_appendLine(' ');
32 |
33 | //
34 | } else {
35 | //
36 | // end mode - do nothing
37 | }
38 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/reactor/plugin.cfm:
--------------------------------------------------------------------------------
1 |
2 | // @ Author Nathan Strutz
3 | // Creates a plugin of a given type from Reactor
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | if (fb_.verbInfo.executionMode is "start") {
11 |
12 | // alias is required
13 | if (not structKeyExists(fb_.verbInfo.attributes,"alias")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'alias' is required, for a 'plugin' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // plugin is required
19 | if (not structKeyExists(fb_.verbInfo.attributes,"plugin")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'plugin' is required, for a 'plugin' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | }
24 | // returnvariable is required
25 | if (not structKeyExists(fb_.verbInfo.attributes,"returnvariable")) {
26 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
27 | "Required attribute is missing",
28 | "The attribute 'returnvariable' is required, for a 'plugin' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
29 | }
30 |
31 | fb_appendLine(' ');
32 |
33 | //
34 | } else {
35 | //
36 | // end mode - do nothing
37 | }
38 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/save.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | < >
42 |
--------------------------------------------------------------------------------
/corefiles/verbs/true.cfm:
--------------------------------------------------------------------------------
1 |
16 |
17 | if (fb_.verbInfo.executionMode is "start") {
18 | // validate attributes
19 | // has no attributes
20 | // must be nested inside an
21 | if (not structKeyExists(fb_.verbInfo,"parent") or fb_.verbInfo.parent.lexiconVerb is not "if") {
22 | fb_throw("fusebox.badGrammar.trueNeedsIf",
23 | "Verb 'true' has no parent 'if' verb",
24 | "Found 'true' verb with no parent 'if' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
25 | }
26 | // strict mode - check attribute count:
27 | if (fb_.verbInfo.action.getCircuit().getApplication().strictMode) {
28 | if (structCount(fb_.verbInfo.attributes) neq 0) {
29 | fb_throw("fusebox.badGrammar.unexpectedAttributes",
30 | "Unexpected attributes",
31 | "Unexpected attributes were found in a 'true' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
32 | }
33 | }
34 |
35 | // compile
36 | if (fb_.verbInfo.parent.ifUsed) {
37 | fb_appendLine("");
38 | } else {
39 | fb_appendLine("");
40 | fb_.verbInfo.parent.ifUsed = true;
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/save.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | < >
42 |
--------------------------------------------------------------------------------
/corefiles/verbs/false.cfm:
--------------------------------------------------------------------------------
1 |
16 |
17 | if (fb_.verbInfo.executionMode is "start") {
18 | // validate attributes
19 | // has no attributes
20 | // must be nested inside an
21 | if (not structKeyExists(fb_.verbInfo,"parent") or fb_.verbInfo.parent.lexiconVerb is not "if") {
22 | fb_throw("fusebox.badGrammar.falseNeedsIf",
23 | "Verb 'false' has no parent 'if' verb",
24 | "Found 'false' verb with no parent 'if' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
25 | }
26 | // strict mode - check attribute count:
27 | if (fb_.verbInfo.action.getCircuit().getApplication().strictMode) {
28 | if (structCount(fb_.verbInfo.attributes) neq 0) {
29 | fb_throw("fusebox.badGrammar.unexpectedAttributes",
30 | "Unexpected attributes",
31 | "Unexpected attributes were found in a 'false' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
32 | }
33 | }
34 |
35 | // compile
36 | if (fb_.verbInfo.parent.ifUsed) {
37 | fb_appendLine("");
38 | } else {
39 | fb_appendLine("");
40 | fb_.verbInfo.parent.ifUsed = true;
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/serviceSave.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 | <>
28 | <>
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | < >
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/serviceValidate.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | < >
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/init.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
7 | if (fb_.verbInfo.executionMode is "start") {
8 | // validate attributes
9 | // configuration - string (path)
10 | if (not structKeyExists(fb_.verbInfo.attributes,"configuration")) {
11 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
12 | "Required attribute is missing",
13 | "The attribute 'configuration' is required, for a 'init' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
14 | }
15 | // datasource - string (path)
16 | if (not structKeyExists(fb_.verbInfo.attributes,"datasource")) {
17 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
18 | "Required attribute is missing",
19 | "The attribute 'datasource' is required, for a 'init' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
20 | }
21 | // definitions - string (path)
22 | if (not structKeyExists(fb_.verbInfo.attributes,"definitions")) {
23 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
24 | "Required attribute is missing",
25 | "The attribute 'definitions' is required, for a 'init' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
26 | }
27 | // generate code:
28 | fb_appendLine(' ');
31 | fb_appendLine(' ');
32 | } else {
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/scaffolder/templates/model/No_ORM/qry_delete_.cfm:
--------------------------------------------------------------------------------
1 | <>
2 |
3 |
4 |
5 |
6 | I delete the selected$$objectName$$ object.
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | <>
20 | <$$aPKFields[thisKey].fuseDocType$$ name="$$aPKFields[thisKey].alias$$"/>< >
21 |
22 |
23 |
24 |
25 |
26 |
27 | --->
28 | <>
29 | < >
30 |
31 |
32 |
33 |
34 |
35 | < >
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/getAll.cfc:
--------------------------------------------------------------------------------
1 | <>
16 | <>
17 | <>
18 | <>
19 | <>
20 | <>
21 | <>
22 | <>
23 | <>
24 | <>
25 | <>
26 | <>
27 | <>
28 | <>
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | < >
41 |
42 |
--------------------------------------------------------------------------------
/extensions/lexicon/cf/cookie.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Nathan Strutz (strutz@gmail.com)
3 | // example custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | // how this works:
11 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
12 | // b. in start mode, generate the required CFML
13 | // c. in end mode, do nothing (this tag does not nest)
14 | //
15 | if (fb_.verbInfo.executionMode is "start") {
16 | //
17 | // name is required:
18 | if (not structKeyExists(fb_.verbInfo.attributes,"name")) {
19 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
20 | "Required attribute is missing",
21 | "The attribute 'name' is required, for a 'cookie' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
22 | }
23 | //
24 | // value is required:
25 | if (not structKeyExists(fb_.verbInfo.attributes,"value")) {
26 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
27 | "Required attribute is missing",
28 | "The attribute 'value' is required, for a 'cookie' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
29 | }
30 | //
31 | // expires is required:
32 | if (not structKeyExists(fb_.verbInfo.attributes,"expires")) {
33 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
34 | "Required attribute is missing",
35 | "The attribute 'expires' is required, for a 'cookie' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
36 | }
37 | //
38 | // start mode:
39 | fb_appendLine(' ');
40 | } else {
41 | //
42 | // end mode - do nothing
43 | }
44 |
--------------------------------------------------------------------------------
/scaffolder/lexicon/cf/cookie.cfm:
--------------------------------------------------------------------------------
1 |
2 | // Author: Nathan Strutz (strutz@gmail.com)
3 | // example custom verb that compiles to a tag
4 | // usage:
5 | // 1. add the lexicon declaration to your circuit file:
6 | //
7 | // 2. use the verb in a fuseaction:
8 | //
9 | //
10 | // how this works:
11 | // a. validate the attributes passed in (fb_.verbInfo.attributes)
12 | // b. in start mode, generate the required CFML
13 | // c. in end mode, do nothing (this tag does not nest)
14 | //
15 | if (fb_.verbInfo.executionMode is "start") {
16 | //
17 | // name is required:
18 | if (not structKeyExists(fb_.verbInfo.attributes,"name")) {
19 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
20 | "Required attribute is missing",
21 | "The attribute 'name' is required, for a 'cookie' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
22 | }
23 | //
24 | // value is required:
25 | if (not structKeyExists(fb_.verbInfo.attributes,"value")) {
26 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
27 | "Required attribute is missing",
28 | "The attribute 'value' is required, for a 'cookie' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
29 | }
30 | //
31 | // expires is required:
32 | if (not structKeyExists(fb_.verbInfo.attributes,"expires")) {
33 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
34 | "Required attribute is missing",
35 | "The attribute 'expires' is required, for a 'cookie' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
36 | }
37 | //
38 | // start mode:
39 | fb_appendLine(' ');
40 | } else {
41 | //
42 | // end mode - do nothing
43 | }
44 |
--------------------------------------------------------------------------------
/scaffolder/templates/Reactor/dsp_menu.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
17 |
18 |
19 |
20 | I create the menu.
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | --->
39 |
40 |
41 | <>< >
45 |
46 |
--------------------------------------------------------------------------------
/scaffolder/templates/Spry/dsp_menu.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
17 |
18 |
19 |
20 | I create the menu.
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | --->
39 |
40 |
41 | <>< >
45 |
46 |
--------------------------------------------------------------------------------
/scaffolder/templates/Transfer/dsp_menu.cfm:
--------------------------------------------------------------------------------
1 | <>
16 |
17 |
18 |
19 |
20 | I create the menu.
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | --->
39 |
40 |
41 | <>< >
45 |
46 |
--------------------------------------------------------------------------------
/extensions/lexicon/orm/transfer/new.cfm:
--------------------------------------------------------------------------------
1 |
2 | // usage:
3 | //
4 | if (fb_.verbInfo.executionMode is "start") {
5 | // validate attributes
6 | // object - string
7 | if (not structKeyExists(fb_.verbInfo.attributes,"object")) {
8 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
9 | "Required attribute is missing",
10 | "The attribute 'object' is required, for a 'new' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11 | }
12 | // bean - string
13 | if (not structKeyExists(fb_.verbInfo.attributes,"bean")) {
14 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
15 | "Required attribute is missing",
16 | "The attribute 'bean' is required, for a 'new' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
17 | }
18 | // populate - boolean
19 | if (not structKeyExists(fb_.verbInfo.attributes,"populate")) {
20 | fb_throw("fusebox.badGrammar.requiredAttributeMissing",
21 | "Required attribute is missing",
22 | "The attribute 'populate' is required, for a 'new' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
23 | } else if (listFind("true,false,yes,no",fb_.verbInfo.attributes.populate) eq 0) {
24 | fb_throw("fusebox.badGrammar.invalidAttributeValue",
25 | "Attribute has invalid value",
26 | "The attribute 'populate' must either be ""true"" or ""false"", for a 'include' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
27 | }
28 |
29 | // generate code:
30 | fb_appendLine(' ');
33 | if (fb_.verbInfo.attributes.populate) {
34 | fb_appendLine(' ');
35 | }
36 | fb_appendLine(' ');
37 |
38 | } else {
39 | }
40 |
41 |
--------------------------------------------------------------------------------