The only use for THIS in an OO-based component is to return THIS at
the end of the constructor. That returns the entire component for use
as an instance.

The properties will be in the VARIABLES scope; they can be used via
getter and setter methods. This is where the ARGUMENTS scope comes in
- the setter methods take an argument, check it for validity and then
set a value in the VARIABLES scope. The VARIABLES scope remains
between method calls, acting as storage within the instance.

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> What about the constructor function? Shouldn't I set the properties in
> the THIS scope when initializing a component?
>
> Also, what is the difference between the variables scope and the
> arguments scope withing a method? I have seen properties defined using
> the cfargument tag referenced in the method using both the arguments
> scope and the variables scope.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232664
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to