Re: Validation functions

From: Date: Sat, 22 Jun 2002 15:53:15 +0000
Subject: Re: Validation functions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7289@lists.php.net to get a copy of this message
Michael Dransfield wrote:
                return new PEAR_Error('unable to validate - no function', 2,PEAR_ERROR_TRIGGER,  E_USER_NOTICE);
            return new PEAR_Error('Unable to validate - no file',  1, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
If you change this to PEAR::raiseError( ... and using constants for the errorcode (VALIDATE_UK_ERROR_*) i would be inspred! :-)

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