Re: Validation functions

From: Date: Mon, 24 Jun 2002 06:38:47 +0000
Subject: Re: Validation functions
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7319@lists.php.net to get a copy of this message
Hello, Just to be sure what is discussed here :). Using pear error handler is a must for error management is a must, we are all right :). Do you want Validate return/raise a pear error on a non valid data ? => $val = new MyValidation ; $val->validateMe(false); // prints the message Have I understood what you said ? Usage has been thinked like : if (Validate::validateMe(false)){... Same for the Validate::multiple for a group of elements to validate, except the result of the argument is set into an array. Error are raised if a validation method was not found. Just to help me to understand your needs :). pa

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