Re: Auth_Enterprise

From: Date: Sun, 04 Jul 2004 16:02:02 +0000
Subject: Re: Auth_Enterprise
References: 1 2 3 4  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-1599@lists.php.net to get a copy of this message
Hrm, Ok, I've got the classes and files renamed. A few more questions about the exceptions. First, is it OK for me to keep the exceptions I have and simply make then extend the PEAR_Exception? FWIW, I do like what I see in PEAR _Exception...I will probably build an observer of my own to optionally log exceptions the Auth_Enterprise database. Also, you mentioned Error_Stack but I'm not sure how that fits in with PEAR_Exception. Feel free to send me a URL if this has been discussed somewhere else before. Thanks, --Tony Stephan Schmidt wrote:
Hi,
3) Are you implying then for example, AEClient should be, instead, called Auth_Enterprise_Client? If so, that will be a bit of work but something I can do. As for the file names, I wasn't clear what your were getting at...how should they be named?
The all must contain the package prefix: http://pear.php.net/manual/en/standards.naming.php And the classes should all be put in: Auth/Enterprise/... Auth_Enterprise_Client mus be located in the file: Ath/Enterprise/Client.php
4) You'll have to explain why using it's own exceptions doesn't make sense and please forward me on to where I can learn more about Error_Stack and PEAR_Exception. I assume these are new coding standards for PHP5 objects, right?
Greg is working on Error_Stack, which handles errors in PHP5 and PHP4 packages and Tomas is working on a common base class for all PEAR Exceptions, just take a look at the current source here: http://cvs.php.net/pear-core/PEAR/Exception.php Using base classes will help us providing similar error handling functionality (like observers) for the user. Stephan


« previous php.pear.qa (#1599) next »