Re: cvs: pear /Validate Validate.php

From: Date: Mon, 17 Feb 2003 13:49:07 +0000
Subject: Re: cvs: pear /Validate Validate.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13410@lists.php.net to get a copy of this message
> mansion Mon Feb 17 05:55:15 2003 EDT > Modified files: > /pear/Validate Validate.php > Log: > Cosmetic changes, fix in phpdoc comments, changed global names. > @@ -169,16 +163,8 @@ > * http://hysteria.sk/prielom/prielom-12.html#3 > (Slovak language) > * > http://www.speech.cs.cmu.edu/~sburke/pub/luhn_lib.html (Perl lib) > * > - * Usage: > - * <?php > - * require_once 'Validate.php'; > - * if (Validate::creditCard('credit_card_number')) { > - * // Credit card number is OK > - * } > - * ?> > - * > * @param string $number number (only numeric chars will be considered) > - * @return bool true if number is valid, otherwise false > + * @return bool true if number is valid, otherwise false > * @author Ondrej Jombik <nepto@pobox.sk> > */ > function creditcard($creditcard) I do not see the point of striping all examples of usage out from source code. They are not neccessary for autogenerated documentation? Maybe I'm missing something. Method and functions names are in PHP case-insensitive. Thus I also do not see the point of naming method "creditcard" instead of original "creditCard". -- _/| Ondrej Jombik - nepto@php.net - http://www.nepto.sk - OJ812-RIPE <_ \ Platon SDG - open source software development - http://platon.sk `\| UNIX is user friendly. It's selective about who its friends are! '`

« previous php.pear.dev (#13410) next »