in reply to Re: desired: example of a user class for website
in thread desired: example of a user class for website

all the cpan modules i've looked through and used tend to have objects as datatypes

i'm looking for a more generalized user class, that would - for example, be for a user for a user of a messageboard. it would contain their profile, and perhaps handle their registration. perhaps a reply to a topic would be a subclass of the user.

is this making any sense?
  • Comment on Re: Re: desired: example of a user class for website

Replies are listed 'Best First'.
Re: Re: Re: desired: example of a user class for website
by Zaxo (Archbishop) on Sep 29, 2003 at 17:05 UTC
    ...perhaps a reply to a topic would be a subclass of the user.

    That's a flashing red light to your line of thought. A reply is not a user. Rethink the design you have cooking so that a Topic has a Reply, which has an Author, who is a User. That's fundamental OO design.

    After Compline,
    Zaxo