in reply to Class Questions, OOP, and mod_perl -- HELP
A more standard design for the kind of thing you seem to be doing would be to have your User class just model a user and the things that a user can do, with a separate class like UserManager that performs operations involving User objects. Registering a User should not change the basic identity of the User.
It sounds like you are kind of heading this way already. I would encourage to continue with that, and to read some stuff about OO modeling. In general, things that a user can do belong in the User class, while things your application can do with a user belong somewhere else.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Class Questions, OOP, and mod_perl -- HELP
by nmerriweather (Friar) on Apr 29, 2004 at 17:30 UTC | |
by perrin (Chancellor) on Apr 29, 2004 at 17:39 UTC | |
by nmerriweather (Friar) on Apr 29, 2004 at 18:01 UTC |