It sounds like creating some sort of 'collection' component may solve your
problem. So, instead of having an array of objects available to the
application at large, you have a collection object that contains the array
as a private property plus a method for returning a read only form of those
objects (such as a query).

I've only skimmed the answers here so apologies if this is way off.

HTH

Dominic

On 6 October 2010 17:47, Judah McAuley <[email protected]> wrote:

>
> Thank you Dave, that was very succinct and helpful.
>
> Cheers,
> Judah
>
> On Wed, Oct 6, 2010 at 9:03 AM, Dave Watts <[email protected]> wrote:
> >
> >> Matt, do you know of a good rundown on the difference between This and
> >> Variables scope in a CFC? I have a basic understanding of it but it is
> >> always been something I wanted to make sure I understood the fine
> >> distinctions in, kind of like the difference between var scoped
> >> variables and the local scope in CF9.
> >
> > The "this" scope makes variables public, and they can be read and
> > written directly from outside the component, which breaks any
> > validation that you might have to control their values within the
> > component.
> >
> > The "variables" scope does not make them public.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337933
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to