Re: Proposal: XML_Util
| From: | Martin Jansen | Date: | Fri, 01 Aug 2003 17:27:37 +0000 |
| Subject: | Re: Proposal: XML_Util | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19133@lists.php.net to get a copy of this message | ||
On Thu Jul 31, 2003 at 10:5834PM +0200, Stephan Schmidt wrote:
> Hi,
>
> > Why do you derive XML_Util from PEAR? That's absolutely not needed.
> I'd like to use XML_Util::raiseError() or is there a better way to
> return errors from the static methods.
Why don't you simply use PEAR::raiseError()? The problem with deriving a
class from PEAR is that it's quite expensive and thus one shouldn't do
that unless he want's to use emulated destructors or another feature
provided by the base class.
--
- Martin Martin Jansen
http://martinjansen.com/