Re: Mod 10 for Payment package?
| From: | Tomas V.V.Cox | Date: | Wed, 17 Sep 2003 10:55:17 +0000 |
| Subject: | Re: Mod 10 for Payment package? | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21630@lists.php.net to get a copy of this message | ||
On Wednesday, September 17, 2003 12:34, Stefan Neufeind wrote:
> Tomas, please have a look at:
>
> http://cvs.php.net/co.php/pear/Validate/Validate/Finance/IBAN.php?logi
> n=2&r=1.3
Took a look, the error constants names break the PEAR CS convention :-)
> There are already functions for retrieving errorMessage and
> errorCode. If you use validate::iban() you just get the usual true /
> false - since this is enough in most cases. And this is a common
> interface for all the basic Validate functions. But if you write an
> app that bothers about details you can easily use an object of
> Validate_Finance_IBAN and if it returns "false" you can query
> errorCode (if you want to translate it yourself to something useful)
> or errorMessage (if you want a complete string describing the error).
That's good too IMHO.
--
Tomas V.V.Cox mailto:cox@idecnet.com