From: <ndi...@us...> - 2002-09-12 19:16:23
|
Update of /cvsroot/modus/org/bacfug/modus In directory usw-pr-cvs1:/tmp/cvs-serv27847/bacfug/modus Modified Files: basecontentobject.cfc Log Message: added a method for making a clone of the instance -- this is used right now in the caching, so we don't run into weirdness of the cache referring to instances the user is working with. Index: basecontentobject.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/basecontentobject.cfc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** basecontentobject.cfc 12 Sep 2002 19:15:24 -0000 1.11 --- basecontentobject.cfc 12 Sep 2002 19:16:20 -0000 1.12 *************** *** 235,239 **** </cfscript> </cffunction> ! <!--- --- 235,247 ---- </cfscript> </cffunction> ! <!--- a method for making a clone ---> ! <cffunction name="makeClone" access="public" output="no" returnType="org.bacfug.modus.baseContentObject" hint="creates an exact replica of this object instance"> ! <cfset var clone = createObject("component",getType())> ! <cfscript> ! //try this ! getPersister().contentObjectPopulateFromInstance(clone,this); ! </cfscript> ! <cfreturn clone> ! </cffunction> <!--- |