Changeset 2222

Show
Ignore:
Timestamp:
04/22/09 07:21:23 (4 years ago)
Author:
lmajano
Message:

#707
Convenience methods to retireve context and rc from plugins

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/system/Plugin.cfc

    r2181 r2222  
    9090        </cffunction> 
    9191 
     92<!------------------------------------------- PRIVATE METHODS -------------------------------------------> 
     93 
     94        <!--- Get Context ---> 
     95        <cffunction name="getContext" access="private" returntype="coldbox.system.beans.RequestContext" hint="Retrieve the request context object" output="false" > 
     96                <cfreturn controller.getRequestService().getContext()> 
     97        </cffunction> 
     98         
     99        <!--- Get RC ---> 
     100        <cffunction name="getRC" access="private" returntype="struct" hint="Get a reference to the request collection" output="false" > 
     101                <cfreturn getContext().getCollection()> 
     102        </cffunction> 
     103 
    92104</cfcomponent>