0
- <!--- Set up chainable callback handlers --->
0
- <cffunction name="setEnterCallback" access="public" output="false">
0
- <cfargument name="method" type="string" required="true" />
0
- <cfset instance.callbacks.enter = arguments.method />
0
- <cffunction name="setAfterCallback" access="public" output="false">
0
- <cfargument name="method" type="string" required="true" />
0
- <cfset instance.callbacks.after = arguments.method />
0
- <cffunction name="setExitCallback" access="public" output="false">
0
- <cfargument name="method" type="string" required="true" />
0
- <cfset instance.callbacks.exit = arguments.method />
0
<cffunction name="getName" returntype="string" access="public" output="false">
0
<cfreturn instance.name />
0
- <cffunction name="
entering" returntype="void" access="public" output="false">
0
+ <cffunction name="
before" returntype="boolean" access="public" output="false">
0
<cfargument name="obj" required="true" />
0
- <cf
set invokeCallback('#getName()#EnteringAction', arguments.obj) />
0
+ <cf
return invokeCallback('before#getName()#Action', arguments.obj) />
0
- <cffunction name="
entered" returntype="void" access="public" output="false">
0
+ <cffunction name="
after" returntype="void" access="public" output="false">
0
<cfargument name="obj" required="true" />
0
- <cfset invokeCallback('
#getName()#AfterAction', arguments.obj) />
0
+ <cfset invokeCallback('
after#getName()#Action', arguments.obj) />
0
- <cffunction name="exit
ed" returntype="void" access="public" output="false">
0
+ <cffunction name="exit
" returntype="void" access="public" output="false">
0
<cfargument name="obj" required="true" />
0
- <cfset invokeCallback('
#getName()#ExitAction', arguments.obj) />
0
+ <cfset invokeCallback('
exit#getName()#Action', arguments.obj) />
0
- <cffunction name="invokeCallback" returntype="
void" access="public" output="false">
0
+ <cffunction name="invokeCallback" returntype="
boolean" access="public" output="false">
0
<cfargument name="callback" type="string" required="true" />
0
- <cfargument name="obj" required="true" />
0
+ <cfargument name="obj" required="true" />
0
<cfif structKeyExists(arguments.obj, arguments.callback)>
0
- <cfinvoke component="#arguments.obj#" method="#arguments.callback#" />
0
+ <cfinvoke component="#arguments.obj#" method="#arguments.callback#" returnvariable="result" />
0
+ <cfif isDefined('result') and isBoolean(result)>
0
\ No newline at end of file