summaryrefslogtreecommitdiff
path: root/tests/examplefiles/exampleTag.cfc
blob: 753bb8268c8574967fa5d7795bcb4bb4418cc890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<cfcomponent>
	
	<cffunction name="init" access="public" returntype="any">
		<cfargument name="arg1" type="any" required="true">
		<cfset this.myVariable = arguments.arg1>

		<cfreturn this>
	</cffunction>

	<cffunction name="testFunc" access="private" returntype="void">
		<cfargument name="arg1" type="any" required="false">
		
		<cfif structKeyExists(arguments, "arg1")>
			<cfset writeoutput("Argument exists")>
		</cfif>
	</cffunction>
	
</cfcomponent>