PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/_assets/controllers/Verifies.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 36 lines | 28 code | 8 blank | 0 comment | 0 complexity | 708f49cbe600d88ca433f765ed3b2615 MD5 | raw file
 1<cfcomponent extends="Controller">
 2
 3	<cffunction name="init">
 4		<cfset verifies(only="actionGet", get="true")>
 5		<cfset verifies(only="actionPost", post="true")>
 6		<cfset verifies(only="actionPostWithRedirect", post="true", action="index", controller="somewhere", error="invalid")>
 7		<cfset verifies(only="actionPostWithTypesValid", post="true", params="userid,authorid", paramsTypes="integer,guid")>
 8		<cfset verifies(only="actionPostWithTypesInValid", post="true", params="userid,authorid", paramsTypes="integer,guid")>
 9		<cfset verifies(only="actionPostWithString", post="true", params="username,password", paramsTypes="string,blank")>
10	</cffunction>
11
12	<cffunction name="actionGet">
13		<cfset renderText("actionGet")>
14	</cffunction>
15
16	<cffunction name="actionPost">
17		<cfset renderText("actionPost")>
18	</cffunction>
19
20	<cffunction name="actionPostWithRedirect">
21		<cfset renderText("actionPostWithRedirect")>
22	</cffunction>
23
24	<cffunction name="actionPostWithTypesValid">
25		<cfset renderText("actionPostWithTypesValid")>
26	</cffunction>
27
28	<cffunction name="actionPostWithTypesInValid">
29		<cfset renderText("actionPostWithTypesInValid")>
30	</cffunction>
31
32	<cffunction name="actionPostWithString">
33		<cfset renderText("actionPostWithString")>
34	</cffunction>
35
36</cfcomponent>