Re: [PEPr] Comment on XML::XML_Feed_Parser
| From: | James Stewart | Date: | Fri, 23 Sep 2005 12:24:20 +0000 |
| Subject: | Re: [PEPr] Comment on XML::XML_Feed_Parser | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39919@lists.php.net to get a copy of this message | ||
On Sep 23, 2005, at 3:36 AM, Arnaud Limbourg wrote:
Arnaud Limbourg (http://pear.php.net/user/arnaud) has commented on the proposal for XML::XML_Feed_Parser. Comment: There is a problem running the example. The XML_Feed_Parser_Type class getCategory gets called and since it is declared protected the call fails. Changing it to public makes the code work.I've updated the example as I'd intended for it to use: $entry->category() rather than $entry->getCategory() At the moment all the get* functions are proxied through __call to allow for the abstraction between feed types and are kept protected to encourage use of that abstraction. James. -- James Stewart Play: http://james.anthropiccollective.org Work: http://jystewart.net