Re: Should return "TRUE or PEAR_Error" ???

From: Date: Tue, 21 Jul 2009 13:56:48 +0000
Subject: Re: Should return "TRUE or PEAR_Error" ???
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-52446@lists.php.net to get a copy of this message
2009/7/21 Martin Jansen <martin@divbyzero.net>: > David Coallier wrote: >> access function name(name) >> { >>     throw new Mail_CheckUser_Exception('Something to tell your users..'); >> >>     return false; >> } That's an example :) Of course you can add some logic around the throwing. The whole thing is unecessary, it will give you a parsing error with "access" :) But yeah to rectify in this case the @return would be "void" since it'll ALWAYS throw something. -- Slan, David

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