Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Think about Loose Coupling
 
PerlMonks  

Re: desired: example of a user class for website

by matthewb (Curate)
on Sep 29, 2003 at 05:31 UTC ( [id://294915]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

You're not getting any answers because your question is too vague. No one knows what sort of data you want to manipulate about your users.

If you don't know already, the place to find packages is CPAN where you'll be able to peek inside thousands of pre-built classes which will either solve your problem entirely or at least give you some good ideas.

MB
  • Comment on Re: desired: example of a user class for website

Replies are listed 'Best First'.
Re: Re: desired: example of a user class for website
by nmerriweather (Friar) on Sep 29, 2003 at 12:12 UTC
    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?
      ...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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://294915]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.