PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/_assets/models/TagWithDataCallbacks.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 20 lines | 16 code | 4 blank | 0 comment | 0 complexity | 9eb76bf97572c14bfbbed08e601dcbfe MD5 | raw file
 1<cfcomponent extends="Model">
 2
 3	<cffunction name="init">
 4		<cfset table("tags")>
 5		<cfset afterCreate("createWelcomePost")>
 6	</cffunction>
 7
 8	<cffunction name="createWelcomePost">
 9		<cfset var objPost = model("Post").create(authorId=1, title="Welcome", body="This is my first post", views=0)>
10		<cfif IsObject(objPost)>
11			<cfreturn true>
12		</cfif>
13		<cfreturn false>
14	</cffunction>
15	
16	<cffunction name="crashMe">
17		<cfset var foo = 1 / 0>
18	</cffunction>
19
20</cfcomponent>