Here is bascially the same snippet with the types set for typeahead:
<cffunction name="get$${Variable}" access="public" output="false"
returntype="$${Return
Type:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid}">
<cfreturn variables.instance.$${Variable} />
</cffunction>
<cffunction name="set$${Variable}" access="public" output="false"
returntype="void">
<cfargument name="$${Variable}"
type="$${Type:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid}"
required="true" />
<cfset variables.instance.$${Variable} = arguments.$${Variable} />
</cffunction>
On Thu, Feb 25, 2010 at 10:36 AM, Jared Rypka-Hauer <[email protected]
> wrote:
> Sure, np:
>
> <cffunction name="set$${name}" access="public" returntype="void"
> output="false">
> <cfargument name="$${argument name}" type="$${type}"
> required="$${required:true|false}">
> <cfset variables.$${argument name} = arguments.$${argument name} >
> </cffunction>
> <cffunction name="get$${name}" access="public" returntype="$${type}"
> output="false">
> <cfreturn variables.$${argument name} />
> </cffunction>
>
> J
>
> On Feb 25, 2010, at 9:19 AM 2/25/10, Nando . wrote:
>
> Jared,
>
> Would you mind posting that snippet?
>
> Nando
>
> On Thu, Feb 25, 2010 at 3:29 PM, Jared Rypka-Hauer <
> [email protected]> wrote:
>
>> Heh, thanks!
>>
>> Yeah, for my snippet I type gs-ctrl-j, the stem of the methods (i.e. the
>> name without the get/set part), the output attribute (which defaults to
>> false) and the type (string, query, etc). I hit enter and I have a get/set
>> pair all done. w00t! ...
>
> --
> You received this message because you are subscribed to the Google Groups
> "CFCDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<cfcdev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cfcdev?hl=en.
>
--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”
Guillaume Apollinaire quotes
--
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en.