forked from Ortus-Solutions/ContentBox
/
Main.cfc
executable file
·101 lines (77 loc) · 3.08 KB
/
Main.cfc
1
2
<!--- /**********************************************************************************ContentBox - A Modular Content PlatformCopyright 2012 by Luis Majano and Ortus Solutions, Corpwww.gocontentbox.org | www.luismajano.com | www.ortussolutions.com********************************************************************************Apache License, Version 2.0Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.*********************************************************************************/---><cfcomponent output="false"><!------------------------------------------- GLOBAL IMPLICIT EVENTS ONLY ------------------------------------------>
<!--- In order for these events to fire, you must declare them in the coldbox.xml.cfm ---> <cffunction name="index" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> <cfset setNextEvent(getSetting('DefaultEvent'))> </cffunction> <cffunction name="onAppInit" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> </cffunction> <cffunction name="onRequestStart" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> </cffunction> <cffunction name="onRequestEnd" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> </cffunction> <cffunction name="onSessionStart" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> </cffunction> <cffunction name="onSessionEnd" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> <cfset var sessionScope = event.getValue("sessionReference")> <cfset var applicationScope = event.getValue("applicationReference")> </cffunction> <cffunction name="onException" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> <cfscript> //Grab Exception From request collection, placed by ColdBox var exceptionBean = event.getValue("ExceptionBean"); //Place exception handler below: </cfscript> </cffunction> <cffunction name="onMissingTemplate" returntype="void" output="false"> <cfargument name="event"> <cfargument name="rc"> <cfargument name="prc"> <cfscript> //Grab missingTemplate From request collection, placed by ColdBox var missingTemplate = event.getValue("missingTemplate"); </cfscript> </cffunction></cfcomponent>