Re: a user class
| From: | Luc Saint-Elie | Date: | Mon, 08 Oct 2001 08:32:22 +0000 |
| Subject: | Re: a user class | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-366@lists.php.net to get a copy of this message | ||
En réponse à Martin Jansen <mail@martin-jansen.de>:
> There is no user class in PEAR. What are you referring to?
[...]
> This functions can't IMO be covered by a simple class: What you are
> talking about is something like a user handling application. The
> PEAR Auth e.g. class is only intended to handle authentication
> system. It is NOT intended to be a complete user handling system.
Hello Martin,
First important note, my message is not intended to be aggressive or anything
this way, but English is not my native language (Im French) so...
Im referring to auth.php class
I dont know if these functions cant be covered by a simple class, but they
are covered by a simple set of functions. I use them on a every day basis (I
PEARized the database access but Im unable (Im not a real developper) to
PEARize the whole thing) :
Have a look at :
http://www.phpbuilder.com/columns/tim20000505.php3
And at :
http://www.phpbuilder.com/annotate/message.php3?id=1007469
The first URL with the addition of the second, make a very powerful set of
functions, that does everything I noticed, is completely HTML independent, is
easily extensible, is independent of the number of items you want to store when
registering users, manage every thing from registration to change in the
registration, manage confirmation emails, log user IP and so on... and is no
more complex than the Auth.php authentication system.
What I wanted to say is that especially if PEAR includes complete applications
like PEAR forum it would be difficult to avoid such a layer in PEAR . I dont
know a lot of serious applications that dont manage users.
If PEAR user management is not standardized (in the sens that PEAR database
access is standardized) the "application" directory will become a YAH (Yet
Another HotScripts.com) directory
This kind of functionality is to the user what BD.php is to the database.
And a "normal" website has a database AND manages users...
Luc