Previous Next


A Validation Class

Table of Contents


RSValidation extends PEAR::Validate. It was initially written for use with RSDEngine. A lot of the methods defined in RSValidation are just a wrapper for the corresponding PEAR::Validate method. Often the order of the arguments have been changed to to somthing more reasonable (and for easier use with RSDEngine). RSValidate is a static class and all methods return the boolean values true or false.


Just require RSValidation.php and use the static class!

1 <?php
2 require_once('RSValidation/RSValidation.php');
3 //$bool will be true if $str is at least 2 characters long - but not longer than 16
4 $bool = RSValidation::isString($str, 2, 16);
5 ?>

Previous Next

Documentation generated on Mon, 8 Dec 2003 13:10:24 +0100 by phpDocumentor 1.2.3