[PEPr] Comment on Web Services::SharedBook
| From: | Adam Harvey | Date: | Tue, 10 Jul 2007 13:09:52 +0000 |
| Subject: | [PEPr] Comment on Web Services::SharedBook | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47380@lists.php.net to get a copy of this message | ||
Adam Harvey (http://pear.php.net/user/aharvey) has commented on the proposal for Web
Services::SharedBook.
Comment:
Generally looks good. A few minor nits:
- Exceptions in PEAR packages need to extend from PEAR_Exception, not
Exception, per the coding standards. That should just be a matter of
changing the extends clause in Services_SharedBook_Exception from extending
Exception.
- You can access SimpleXML attributes more simply than you are as array
elements: for example, $apiAnswer->attributes()->status could be replaced
with $apiAnswer['status'].
- At present, your tarball isn't installable. If you change the package
name to Services_SharedBook in package.xml, it'll work.
Beyond that, I can't test it as I'm not a member of SharedBook at present,
but it looks solid. Just a shame about the HTTP_Client situation at
present.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=498
--
Sent by PEPr, the automatic proposal system at http://pear.php.net