From: <ndi...@us...> - 2002-09-08 03:45:56
|
Update of /cvsroot/modus/org/bacfug/modus In directory usw-pr-cvs1:/tmp/cvs-serv10269/bacfug/modus Modified Files: basecontentobject.cfc Log Message: added an interface to getAllSorted() in the persister. At some point we will want to abstract out the sort function, so we could filter, then sort. Index: basecontentobject.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/basecontentobject.cfc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** basecontentobject.cfc 8 Sep 2002 02:35:42 -0000 1.5 --- basecontentobject.cfc 8 Sep 2002 03:45:53 -0000 1.6 *************** *** 69,72 **** --- 69,77 ---- <cfreturn instance.persister.getAll(getType())> </cffunction> + <!--- get all of this type sorted ---> + <cffunction name="getAllSorted" access="public" returnType="array" hint="get all of this type, sorted by some fields" output="no"> + <cfargument name="sortFields" required="yes" type="string"> + <cfreturn instance.persister.getAllSorted(sortFields,getType())> + </cffunction> <!--- |