diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Amazon/CustomerReview.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Amazon/CustomerReview.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,86 @@ +ownerDocument); + $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05'); + foreach (array('Rating', 'HelpfulVotes', 'CustomerId', 'TotalVotes', 'Date', 'Summary', 'Content') as $el) { + $result = $xpath->query("./az:$el/text()", $dom); + if ($result->length == 1) { + $this->$el = (string) $result->item(0)->data; + } + } + } +}