Re: Re: Forum hacks
| From: | Bertrand Mansion | Date: | Wed, 17 Oct 2001 13:33:37 +0000 |
| Subject: | Re: Re: Forum hacks | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2327@lists.php.net to get a copy of this message | ||
le 17/10/01 16:11, Tomas V.V.Cox à cox@idecnet.com a écrit :
> In my pear/HTTP_Upload class I covered much of this stuff (error codes,
> text messages, translations). Text error messages is a good thing and
> the 99% of users will use them. Of course my system is limited in some
> areas (can not retrieve only the error code or can not pass args to
> error messages) but is easy to enhance. Also with the error stuff is
> only initialized when a error occurs speding up the app as you don't
> need to initialize/store a bunch of vars or constants.
Tomas,
(a bit off topic)
I think it would be best to divide your HTTP_Upload class in two different
classes, one for errors and the other for the rest, instead of having both
of them in the same file. So one could require only your error class if
needed.
Bertrand Mansion
Mamasam