root/coldbox/trunk/system/services/baseService.cfc @ 1790

Revision 1790, 1.8 kB (checked in by lmajano, 5 years ago)

More wonderful naming conventions. Man I should have done this waaaay long ago.

  • Property svn:executable set to *
Line 
1<!-----------------------------------------------------------------------
2********************************************************************************
3Copyright 2005-2008 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
4www.coldboxframework.com | www.luismajano.com | www.ortussolutions.com
5********************************************************************************
6
7Author      :   Luis Majano
8Date         :  August 25, 2007
9Description :
10        This is a base coldbox service. All services built for coldbox will
11        be based on this taxonomy.
12
13Modification History:
1408/25/2007 - Created
15----------------------------------------------------------------------->
16<cfcomponent name="baseService" hint="A ColdBox base internal service" output="false">
17
18<!------------------------------------------- CONSTRUCTOR ------------------------------------------->
19
20        <cfscript>
21                variables.instance = structnew();
22                variables.controller = structnew();
23                variables.util = CreateObject("component","coldbox.system.util.Util");
24        </cfscript>
25
26<!------------------------------------------- PUBLIC ------------------------------------------->
27
28        <cffunction name="getcontroller" access="package" output="false" returntype="any" hint="Get controller">
29                <cfreturn controller/>
30        </cffunction>
31       
32        <cffunction name="setcontroller" access="package" output="false" returntype="void" hint="Set controller">
33                <cfargument name="controller" type="any" required="true"/>
34                <cfset variables.controller = arguments.controller/>
35        </cffunction>   
36       
37<!------------------------------------------- PRIVATE ------------------------------------------->
38
39        <cffunction name="getUtil" access="private" output="false" returntype="coldbox.system.util.Util" hint="Create and return a util object">
40                <cfreturn variables.util/>
41        </cffunction>
42       
43</cfcomponent>
Note: See TracBrowser for help on using the browser.