coding recommendations
| From: | Krystof Slaby | Date: | Sun, 26 Jan 2003 00:51:04 +0000 |
| Subject: | coding recommendations | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-12752@lists.php.net to get a copy of this message | ||
Hello,
I'm newbie to pear (though I'm not newbie to php) and I have some questions:
1)
why is recommended to use "$this->PEAR()" instead of "parent::PEAR()" in
constructor of "class Foo extends PEAR" ?
2)
why there's no recommendation for constructor to return error code (pear error)
based on successfullness of initialization ?
thanks in andvance for your answers
krysot