Let me take a look at this ...

Adam Presley wrote:
In my current GAE project I have setup a BaseBean.cfc class that contains the following method:

---------------------------------------------------------------------------------
<cffunction name="toStruct" output="false">
<cfset var result = {} />
<cfset var key = "" />
<cfloop collection="#variables#" item="key">
<cfif NOT listFindNoCase("this,init,onmissingmethod,tostruct,tostring,googlewrite,googledelete,googlekey", key)>
<cfset result[key] = variables[key] />
<cfelseif lCase(key) EQ "googlekey">
<cfset result["__key__"] = googleKey(this).toString() />
</cfif>
</cfloop>
<cfreturn result />
</cffunction>
---------------------------------------------------------------------------------

--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to