root/coldbox/trunk/testharness/plugins/date.cfc @ 2103

Revision 2103, 0.9 kB (checked in by lmajano, 4 years ago)

First run of refactorings

  • Property svn:mime-type set to text/plain
Line 
1<cfcomponent name="date" output="false" extends="coldbox.system.Plugin" autowire="true">
2
3        <cffunction name="init" access="public" returntype="any" output="false">
4                <cfargument name="controller" type="coldbox.system.Controller">
5                <cfset super.Init(arguments.controller) />
6                <cfreturn this>
7        </cffunction>
8       
9        <cffunction name="getToday" access="public" returntype="string"  output="false">
10                <cfreturn dateFormat(now(),"MM/DD/YYYY")>
11        </cffunction>
12       
13       
14        <cffunction name="getmyDatasource" access="public" output="false" returntype="any" hint="Get myDatasource">
15                <cfreturn instance.myDatasource/>
16        </cffunction>
17       
18        <cffunction name="setmyDatasource" access="public" output="false" returntype="void" hint="Set myDatasource">
19                <cfargument name="myDatasource" type="any" required="true"/>
20                <cfset instance.myDatasource = arguments.myDatasource/>
21        </cffunction>
22
23</cfcomponent>
Note: See TracBrowser for help on using the browser.