<cffunction
name="Save"
access="public"
returntype="any"
output="false"
hint="I take a photo gallery object and persist it (using a database transaction).">
<cfargument
name="Gallery"
type="any"
required="true"
hint="I am the photo gallery object to be persisted."
/>
<cfset var LOCAL = {} />
<cfif StructCount( THIS.Validate( ARGUMENTS.Gallery ) )>
<cfthrow
type="OOPhoto.InvalidData"
message="The selected photo gallery contains invalid data."
detail="The photo gallery with ID #ARGUMENTS.Gallery.GetID()# contains invalid data for persisting."
/>
</cfif>
......CODE........
</cffunction>