Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/Amazon/CustomerReview.php
Go to the documentation of this file.
00001 <?php
00002 
00032 class Zend_Service_Amazon_CustomerReview
00033 {
00037     public $Rating;
00038 
00042     public $HelpfulVotes;
00043 
00047     public $CustomerId;
00048 
00052     public $TotalVotes;
00053 
00057     public $Date;
00058 
00062     public $Summary;
00063 
00067     public $Content;
00068 
00075     public function __construct(DOMElement $dom)
00076     {
00077         $xpath = new DOMXPath($dom->ownerDocument);
00078         $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
00079         foreach (array('Rating', 'HelpfulVotes', 'CustomerId', 'TotalVotes', 'Date', 'Summary', 'Content') as $el) {
00080             $result = $xpath->query("./az:$el/text()", $dom);
00081             if ($result->length == 1) {
00082                 $this->$el = (string) $result->item(0)->data;
00083             }
00084         }
00085     }
00086 }
 All Data Structures Namespaces Files Functions Variables Enumerations