I'm a fairly new to CFCs (which seems cool). I have a little issue:
I have two CFCs, let's call them CFCmain and CFCdao. CFCmain extends
CFCdao, the former supplies the main interfaces, while the latter
provides the data access (SQL) functions.
I designed these to be unaware of any shared scopes. I set the dsn to
use using a property on CFCmain (it sets a default value when first
instatiated).
But, the property value on CFCmain (THIS.dsn), is not accessible at all
to CFCdao -- right? And there is no way to have this property on CFCdao,
and it is then inherited to CFCmain (since you are not allowed to use
the this scope on a "base" object, right?).
This means, in practice -- that the dsn string needs to be passed to any
of my CFCdao functions (where the dsn is needed).
Please let me know if my logic is correct, and if there is any
preferred/alternative way to design this!
Thanks,
Hugo
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 230460
UNEP GRID-Arendal Fax: +46 8 230441
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
-------------------------------------------------------------
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

