You can only extend a single CFC one time, right? Would you then extend
the first CFC (User) with the second CFC; then extend the second CFC
with a third; and then the third with a fourth?
I haven't yet tried it, but I can't conceptually see how CF would
consider this an "array". Maybe I'm wrong in the implementation, but it
seems this is what I would need to do.
Can you dummy it up just a bit for me? (I'd really appreciate it!)
Thanks
_____
From: Sean Corfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 5:18 PM
To: CF-Talk
Subject: Re: CFC Design for Multiple Person Roles
> Currently, I have a single CFC that wraps all three user roles
in one.
> I don't really care for that method, but I haven't seen a
solution, good
> or bad, that lets me break up the different roles into
separate objects.
The "classic" solution is to have a Role CFC that is extended as
Employee, Faculty and Student (three CFCs) and then User "has a"
array
of Role objects.
So:
Employee is-a Role
Faculty is-a Role
Student is-a Role
and
User has-a Role array
--
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

