PageRenderTime 18ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/events/onrequestend.cfm

http://cfwheels.googlecode.com/
ColdFusion | 21 lines | 20 code | 1 blank | 0 comment | 5 complexity | 5c1e3e097a28182c6256871818d4daf9 MD5 | raw file
 1<cffunction name="onRequestEnd" returntype="void" access="public" output="true">
 2	<cfargument name="targetpage" type="any" required="true">
 3	<cfscript>
 4		$simpleLock(execute="$runOnRequestEnd", executeArgs=arguments, name="wheelsReloadLock", type="readOnly", timeout=180);
 5		if (application.wheels.showDebugInformation && StructKeyExists(request.wheels, "showDebugInformation") && request.wheels.showDebugInformation)
 6		{
 7			$includeAndOutput(template="wheels/events/onrequestend/debug.cfm");
 8		}
 9	</cfscript>
10</cffunction>
11
12<cffunction name="$runOnRequestEnd" returntype="void" access="public" output="false">
13	<cfargument name="targetpage" type="any" required="true">
14	<cfscript>
15		if (application.wheels.showDebugInformation)
16			$debugPoint("requestEnd");
17		$include(template="#application.wheels.eventPath#/onrequestend.cfm");
18		if (application.wheels.showDebugInformation)
19			$debugPoint("requestEnd,total");
20	</cfscript>
21</cffunction>