Re: PEAR.php / Log.php
| From: | Roko Roic | Date: | Thu, 14 Feb 2002 09:58:59 +0000 |
| Subject: | Re: PEAR.php / Log.php | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4700@lists.php.net to get a copy of this message | ||
Real man reply to themselves :)
OK, I read the PEAR.php one more time and I guess that I do not need to
extend PEAR nor to initialize it to use PEAR_Error with the automatic
method_callback.
If I guess correctly, I should only do this:
return new PEAR_Error("unknown error", 0, PEAR_ERROR_CALLBACK,
array($this,'_logError'), null);
The only thing I am wondering about is the definition of the error callback
method with an array() but I will test it out.
Still, feel free to enlighten me even more.
Cheers
Roko