>>  I'm not slamming or flaming this...just my thoughts.  Although it appears fast - I think I'd get a headache trying to call a setter for a getter  
 
Well you don't call the method setThis or getThat, you name it after the property.  Something like this.
 
 <cffunction name="section_id" returntype="any" output="false">
  <cfargument name="value" type="any" required="false">
  
  <cfif isDefined("arguments.value")>
   <cfset variables.section_id = arguments.value>
  <cfelse>
   <cfreturn variables.section_id>
  </cfif>
 </cffunction>
 
Then you just...
 
i = createobject("component", this.that.theOtherThing);
// Set the property value
i.section_id(4);
 
//Get the property value
value = i.section_id()
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]

Reply via email to