import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -18,7 +18,7 @@
* @subpackage Amazon
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: SimilarProduct.php 8064 2008-02-16 10:58:39Z thomas $
* @version $Id: SimilarProduct.php 12667 2008-11-15 16:51:39Z beberlei $
*/
@ -31,6 +31,16 @@
*/
class Zend_Service_Amazon_SimilarProduct
{
/**
* @var string
*/
public $ASIN;
/**
* @var string
*/
public $Title;
/**
* Assigns values to properties relevant to SimilarProduct
*
@ -42,7 +52,10 @@ class Zend_Service_Amazon_SimilarProduct
$xpath = new DOMXPath($dom->ownerDocument);
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
foreach (array('ASIN', 'Title') as $el) {
$this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data;
$text = $xpath->query("./az:$el/text()", $dom)->item(0);
if($text instanceof DOMText) {
$this->$el = (string)$text->data;
}
}
}
}