Skip to content

Commit 33bcaee

Browse files
lmajanogitbook-bot
authored andcommitted
GitBook: [master] 36 pages modified
1 parent 8aac38c commit 33bcaee

36 files changed

+53
-46
lines changed

digging-deeper/coldbox-proxy/the-base-proxy-object.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Here are some common methods of our ColdBox proxy object. However, we encourage you to see the [API docs](http://apidocs.ortussolutions.com/coldbox/current) for that latest and greatest.
44

55
| Method | Description |
6-
| --- | --- |
6+
| :--- | :--- |
77
| announceInterception\(state, data\) | Processes a remote interception. |
88
| getCacheBox\(\) | Get a reference to [CacheBox](http://wiki.coldbox.org/wiki/CacheBox.cfm) |
99
| getCache\(cacheName='default'\) | Get a reference to a named cache provider |

digging-deeper/flash-ram/creating-your-own-flash-scope.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The ColdBox Flash capabilities are very flexible and you can easily create your
88
## Implementable Methods
99

1010
| Method | ReturnType | Description |
11-
| --- | --- | --- |
11+
| :--- | :--- | :--- |
1212
| clearFlash\(\) | void | Will destroy or clear the entire flash storage structure. |
1313
| saveFlash\(\) | void | Will be called before relocations or on demand in order to flash the storage. This method usually talks to the getScope\(\) method to retrieve the temporary flash variables and then serialize and persist. |
1414
| flashExists\(\) | boolean | Checks if the flash storage is available and has data in it. |

digging-deeper/flash-ram/flash-storage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ flash = {
1919
Below is a nice chart of all the keys in this configuration structure so you can alter behavior of the Flash RAM objects:
2020

2121
| Key | Type | Required | Default | Description |
22-
| --- | --- | --- | --- | --- |
22+
| :--- | :--- | :--- | :--- | :--- |
2323
| scope | string or instantiation path | false | _session_ | Determines what scope to use for Flash RAM. The available aliases are: session, client, cluster, cache or a custom instantiation path |
2424
| properties | struct | false | {} | Properties that can be used inside the constructor of any Flash RAM implementation |
2525
| inflateToRC | boolean | false | true | Whatever variables you put into the Flash RAM, they will also be inflated or copied into the request collection for you automatically. |
@@ -32,7 +32,7 @@ Below is a nice chart of all the keys in this configuration structure so you can
3232
The included flash implementations for ColdBox are:
3333

3434
| Name | Class | Description |
35-
| --- | --- | --- |
35+
| :--- | :--- | :--- |
3636
| Session | coldbox.system.web.flash.SessionFlash | Persists variables in session scope |
3737
| Cluster | coldbox.system.web.flash.ClusterFlash | Persists variables in cluster scope via Railo only |
3838
| Client | coldbox.system.web.flash.ClientFlash | Persists variables in client scope |

digging-deeper/interceptors/core-interception-points/application-life-cycle-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Application Life Cycle Events
22

33
| Interception Point | Intercept Structure | Description |
4-
| --- | --- | --- |
4+
| :--- | :--- | :--- |
55
| afterConfigurationLoad | --- | This occurs after the framework loads and your applications' configuration file is read and loaded. An important note here is that your application aspects have not been configured yet: bug reports, ioc plugin, validation, logging, and internationalization. |
66
| afterAspectsLoad | --- | \(DEPRECATED. Use modules instead.\) This occurs after the configuration loads and the aspects have been configured. This is a great way to intercept on application start. |
77
| preReinit | --- | This occurs every time the framework is re-initialized |

digging-deeper/interceptors/core-interception-points/layout-view-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Layout-View Events
22

33
| Interception Point | Intercept Structure | Description |
4-
| --- | --- | --- |
4+
| :--- | :--- | :--- |
55
| preLayout | --- | This occurs before any rendering or layout is executed |
66
| preRender | {renderedContent} | This occurs after the layout+view is rendered and this event receives the produced content |
77
| postRender | --- | This occurs after the content has been rendered to the buffer output |

digging-deeper/interceptors/core-interception-points/module-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Module Events
22

33
| Interception Point | Intercept Structure | Description |
4-
| --- | --- | --- |
4+
| :--- | :--- | :--- |
55
| preModuleLoad | {moduleLocation, moduleName} | This occurs before any module is loaded in the system |
66
| postModuleLoad | {moduleLocation, moduleName, moduleConfig} | This occurs after a module has been loaded in the system |
77
| preModuleUnload | {moduleName} | This occurs before a module is unloaded from the system |

digging-deeper/interceptors/core-interception-points/object-creating-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Object Creating Events
22

33
| Interception Point | Intercept Structure | Description |
4-
| --- | --- | --- |
4+
| :--- | :--- | :--- |
55
| afterHandlerCreation | handlerPath - The handler path | This occurs whenever a handler is created |
66
| afterInstanceCreation | mapping - The object mapping | This occurs whenever a [wirebox](http://wiki.coldbox.org/wiki/Wirebox.cfm) object is created |
77

digging-deeper/interceptors/interceptor-asynchronicity/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ any announceInterception(state, interceptData, async, asyncAll, asyncAllJoin, as
99
The asynchronous arguments are listed in the table below:
1010

1111
| Argument | Type | Required | Default Value | Description |
12-
| --- | --- | --- | --- | --- |
12+
| :--- | :--- | :--- | :--- | :--- |
1313
| async | boolean | false | false | Threads the interception call so the entire execution chain is ran in a separate thread. Extra arguments that can be used: asyncPriority. |
1414
| asyncAll | boolean | false | false | Mutually exclusive with the async argument. If true, this will execute the interception point but multi-thread each of the CFCs that are listening to the interception point. So if 3 CFCs are listening, then 3 separate threads will be created for each CFC call. By default, the calling thread will wait for all 3 separate threads to finalize in order to continue with the execution. Extra arguments that can be used: _asyncAllJoin_, _asyncTimeout_, _asyncPriority_. |
1515
| asyncAllJoin | boolean | false | true | This flag is used only when combined with the asyncAll argument. If true \(default\), the calling thread will wait for all intercepted CFC calls to execute. If false, then the calling thread will not join the multi-threaded interception and continue immediate execution while the CFC's continue to execute in the background. |

digging-deeper/interceptors/interceptor-asynchronicity/asynchronous-annotations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
We have also extended the interceptor registration process so you can annotate interception points to denote threading. You will do so with the following two annotations:
44

55
| Argument | Type | Required | Default Value | Description |
6-
| --- | --- | --- | --- | --- |
6+
| :--- | :--- | :--- | :--- | :--- |
77
| `async` | none | false | false | If the annotation exists, then ColdBox will execute the interception point in a separate thread only if not in a thread already. |
88
| `asyncPriority` | string : _low,normal,high_ | false | _normal_ | The thread priority that will be sent to each cfthread call that is made by the system. |
99

for-newbies/60-minute-quick-start/my-first-coldbox-application.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ That's it, you have just created your first application. Hooray, onward!
7474
ColdBox is a conventions based framework. The location of files and functions matter. Since we scaffolded our first application, let's write down in a table below with the different conventions that exist in ColdBox.
7575

7676
| **File/Folder Convention** | **Mandatory** | **Description** |
77-
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
77+
| :--- | :--- | :--- |
7878
| `config/Coldbox.cfc` | false | The application configuration file |
7979
| `config/Router.cfc` | false | The application URL router |
8080
| `handlers` | false | Event Handlers \(controllers\) |

getting-started/configuration/bootstrapper-application.cfc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ component extends="coldbox.system.Bootstrap"{
9999
You can set some variables in the `Application.cfc` that can alter Bootstrapping conditions:
100100

101101
| **Variable** | **Default** | **Description** |
102-
| --- | --- |
102+
| :--- | :--- | :--- |
103103
| `COLDBOX_APP_ROOT_PATH` | App Directory | Automatically set for you. This path tells the framework what is the base root location of your application and where it should start looking for all the agreed upon conventions. You usualy will never change this, but you can. |
104104
| `COLDBOX_APP_MAPPING` | `/` | The application mapping is ESSENTIAL when dealing with Flex or Remote \(SOAP\) applications. This is the location of the application from the root of the web root. So if your app is at the root, leave this setting blank. If your application is embedded in a sub-folder like MyApp, then this setting will be auto-calculated to `/MyApp`. |
105105
| `COLDBOX_CONFIG_FILE` | `config/ColdBox.cfc` | The absolute or relative path to the configuration CFC file to load. This bypasses the conventions and uses the configuration file of your choice. |

getting-started/configuration/coldbox.cfc/configuration-directives/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Please note that the only required directive is `coldbox.appName`.
3131
Inside of this configuration method you will place several core and third-party configuration structures that can alter your application settings and behavior. Below are the core directives you can define:
3232

3333
| Directive | Type | Description |
34-
| --- | --- |
34+
| :--- | :--- | :--- |
3535
| [cachebox](cachebox.md) | struct | An optional structure used to configure CacheBox. If not setup the framework will use its default configuration found in `/coldbox/system/web/config/CacheBox.cfc` |
3636
| [coldbox](coldbox.md) | struct | The main coldbox directives structure that holds all the coldbox settings. |
3737
| [conventions](conventions.md) | struct | A structure where you will configure the application convention names |

getting-started/configuration/coldbox.cfc/system-settings-java-properties-and-environment-variables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ColdBox makes it easy to access the configuration stored in your Java system properties and your server's environment variables, even if you don't know which one it is in! Three methods are provided for your convenience:
44

55
| Name | Arguments | Description |
6-
| --- | --- | --- |
6+
| :--- | :--- | :--- |
77
| `getSystemSetting` | `( key, defaultValue )` | Looks for `key` in properties first, env second. Returns the `defaultValue` if neither exist. |
88
| `getSystemProperty` | `( key, defaultValue )` | Returns the Java System property for `key`. Returns the `defaultValue` if it does not exist. |
99
| `getEnv` | `( key, defaultValue )` | Returns the server environment variable for `key`. Returns the `defaultValue` if it does not exist. |

getting-started/conventions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The core conventions delineate the contract between ColdBox and you for file/dir
1616
## Execution Conventions
1717

1818
| **Convention** | **Default Value** | **Description** |
19-
| --- | --- | --- | --- |
19+
| :--- | :--- | :--- |
2020
| Default Event | `main.index` | The default event to execute when no event is specified |
2121
| Default Action | `index()` | The default action to execute in an event handler controller if none is specified |
2222
| Default Layout | `layouts/Main.cfm` | The default system layout to use |

hmvc/modules/layout-and-view-renderings/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The ColdBox rendering engine has been adapted to support module renderings and also to support multiple discovery algorithms when rendering module layouts and views. When you declare a module you can declare two of its public properties to determine how rendering overrides occur. These properties are:
44

55
| Property | Type | Required | Default | Description |
6-
| --- | --- | --- | --- | --- |
6+
| :--- | :--- | :--- | :--- | :--- |
77
| viewParentLookup | boolean | false | true | If true, coldbox checks for views in the parent overrides first, then in the module. If false, coldbox checks for views in the module first, then the parent. |
88
| layoutParentLookup | boolean | false | true | If true, coldbox checks for layouts in the parent overrides first, then in the module. If false, coldbox checks for layouts in the module first, then the parent. |
99

hmvc/modules/moduleconfig/public-module-properties-directives.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
First of all, we must define some public properties that can easily identify or provide directives for the module:
44

55
| Property | Type | Required | Default | Description |
6-
| --- | --- | --- | --- | --- |
6+
| :--- | :--- | :--- | :--- | :--- |
77
| title | string | false | --- | The title of the module |
88
| author | string | false | --- | The author of the module |
99
| webURL | string | false | --- | The web URL associated with this module. Maybe for documentation, blog, links, etc. |

hmvc/modules/moduleconfig/the-configure-method.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Once the public properties are set, we are now ready to configure our module. You will do this by creating a simple method called `configure()` and adding variables to the following configuration structures:
44

55
| Property | Type | Description |
6-
| --- | --- | --- |
6+
| :--- | :--- | :--- |
77
| parentSettings | struct | Settings that will be appended and override the host application settings |
88
| settings | struct | Custom module settings that will only be available to the module. If `parseParentSettings` is set to true \(default\), then settings from `config/Coldbox.cfc` for this module will be merged with these settings. \(Think of these as default settings in that case.\) Please see the retrieving settings section |
99
| conventions | struct | A structure that explains the layout of the handlers, plugins, layouts and views of this module. |

hmvc/modules/moduleconfig/the-decorated-variables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
At runtime, the configuration object will be created by ColdBox and decorated with the following private properties \(available in the `variables` scope\):
66

77
| Property | Description |
8-
| --- | --- |
8+
| :--- | :--- |
99
| appMapping | The `appMapping` setting of the current host application |
1010
| binder | The WireBox configuration binder object |
1111
| cachebox | A reference to CacheBox |

intro/introduction/upgrading-to-coldbox-4.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ box install cborm
197197
This module brings you all the ORM virtual services that are in ColdBox 3.x and replaces the `ORMService` Plugin, but note that the component paths have been updated. Instead of starting with `coldbox.system` they start with `cborm`.
198198

199199
| Old Path | New Path |
200-
| --- | --- |
200+
| :--- | :--- |
201201
| coldbox.system.orm.hibernate.VirtualEntityService | cborm.models.VirtualEntityService |
202202
| coldbox.system.orm.hibernate.ActiveEntity | cborm.models.ActiveEntity |
203203
| coldbox.system.orm.hibernate.BaseORMService | cborm.models.BaseORMService |
@@ -281,7 +281,7 @@ This module replaces the Security interceptor. The interceptor still exists, but
281281
Some of these were covered above, but for completeness, here is a comprehensive list of the WireBox DSL Namespaces that are removed.
282282

283283
| **Removed DSL** | **Replacement DSL** |
284-
| --- | --- |
284+
| :--- | :--- |
285285
| **ocm** | **cachebox:default** |
286286
| **ocm:{keyName}** | **cachebox:default:{keyName}** |
287287
| **coldbox:plugin:{pluginName}** | **model:{modelName@module}** |

intro/introduction/whats-new-with-4.0.0/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ We have altered the module services to now allow you to nest modules within modu
353353
The ''ModuleConfig.cfc'' has been updated with several new properties:
354354
355355
| Setting | Type | Required | Default | Description |
356-
| --- | --- | --- | --- | --- |
356+
| :--- | :--- | :--- | :--- | :--- |
357357
| **activate** | boolean | false | true | You can tell ColdBox to register the module but NOT to activate it. By default, all modules activate. |
358358
| **aliases** | array | false | \[\] | An array of names that can be used to execute the module instead of only the module folder name |
359359
| **autoMapModels** | boolean | false | true | Will automatically map all model objects under the **models** folder in WireBox using `@modulename` as part of the alias. |

the-basics/event-handlers/event-caching.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To enable event caching, you will need to set a setting in your `ColdBox.cfc` ca
2727
The way to set up an event for caching is on the function declaration with the following annotations:
2828

2929
| **Annotation** | **Type** | **Description** |
30-
| --- | --- | --- |
30+
| :--- | :--- | :--- |
3131
| `cache` | boolean | A true or false will let the framework know whether to cache this event or not. The default is FALSE. So setting to false makes no sense |
3232
| `cachetimeout` | numeric | The timeout of the event's output in minutes. This is an optional attribute and if it is not used, the framework defaults to the default object timeout in the cache settings. You can place a 0 in order to tell the framework to cache the event's output for the entire application timeout controlled by coldfusion, NOT GOOD. Always set a decent timeout for content. |
3333
| `cacheLastAccesstimeout` | numeric | The last access timeout of the event's output in minutes. This is an optional attribute and if it is not used, the framework defaults to the default last access object timeout in the cache settings. This tells the framework that if the object has not been accessed in X amount of minutes, then purge it. |

the-basics/event-handlers/interception-methods/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ There are several simple implicit [AOP](http://en.wikipedia.org/wiki/Aspect-orie
77
This is great for intercepting calls, pre/post processing, localized security, logging, RESTful conventions, and much more. Yes, you got that right, [Aspect Oriented Programming](http://en.wikipedia.org/wiki/Aspect-oriented_programming) just for you and without all the complicated setup involved! If you declared them, the framework will execute them.
88

99
| **Interceptor Method** | **Description** |
10-
| --- | --- |
10+
| :--- | :--- |
1111
| `preHandler()` | Executes **before** any requested action \(In the same handler CFC\) |
1212
| `pre{action}()` | Executes **before** the `{action}` requested ONLY |
1313
| `postHandler()` | Executes **after** any requested action \(In the same handler CFC\) |

the-basics/layouts-and-views/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Let's do a recap of our conventions for layouts and view locations:
2525
It is imperative to know who does the rendering in ColdBox and that is the **Renderer** class that you can see from our diagram above. As you can tell from the diagram, it includes your layouts and/or views into itself in order to render out content. So by this association and inheritance all layouts and views have some variables and methods at their disposal since they get absorbed into the object. You can visit the [API docs](http://apidocs.ortussolutions.com/coldbox/current) to learn about all the Renderer methods. All of the following property members exist in all layouts and views rendered by the **Renderer**:
2626

2727
| **Property** | **Description** |
28-
| --- | --- |
28+
| :--- | :--- |
2929
| `event` | A reference to the Request Context object |
3030
| `rc` | A reference to the request collection inside of the request context \(For convenience\) |
3131
| `prc` | A reference to the private request collection inside of the request context \(For convenience\) |

the-basics/layouts-and-views/layouts/layout-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
All rendered layouts have associated events that are announced whenever the layout is rendered via ColdBox Interceptors. These are great ways for you to be able to intercept when layouts are rendered and transform them, append to them, or even remove content from them in a completely decoupled approach. The way to listen for events in ColdBox is to write Interceptors, which are essential simple CFC's that by convention have a method that is the same name as the event they would like to listen to. Each event has the capability to receive a structure of information wich you can alter, append or remove from. Once you write these Interceptors you can either register them in your Configuration File or programmatically.
44

55
| Event | Data | Description |
6-
| --- | --- | --- |
6+
| :--- | :--- | :--- |
77
| `preLayoutRender` | layout - The name of the layout to render | Executed before any layout is rendered |
88
| `postLayoutRender` | All of the data above plus: | Executed after a layout was rendered |
99

0 commit comments

Comments
 (0)