|
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 | ******************************************************************************** |
|---|
| 3 | Copyright 2005-2008 ColdBox Framework by Luis Majano and Ortus Solutions, Corp |
|---|
| 4 | www.coldboxframework.com | www.luismajano.com | www.ortussolutions.com |
|---|
| 5 | ******************************************************************************** |
|---|
| 6 | |
|---|
| 7 | Author : Luis Majano |
|---|
| 8 | Date : August 25, 2007 |
|---|
| 9 | Description : |
|---|
| 10 | This is a base coldbox service. All services built for coldbox will |
|---|
| 11 | be based on this taxonomy. |
|---|
| 12 | |
|---|
| 13 | Modification History: |
|---|
| 14 | 08/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> |
|---|