equal
deleted
inserted
replaced
14 * to license@zend.com so we can send you a copy immediately. |
14 * to license@zend.com so we can send you a copy immediately. |
15 * |
15 * |
16 * @category Zend |
16 * @category Zend |
17 * @package Zend_Service |
17 * @package Zend_Service |
18 * @subpackage Amazon |
18 * @subpackage Amazon |
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
21 * @version $Id: Accessories.php 20096 2010-01-06 02:05:09Z bkarwin $ |
21 * @version $Id: Accessories.php 24780 2012-05-08 19:34:59Z adamlundrigan $ |
22 */ |
22 */ |
23 |
23 |
24 |
24 |
25 /** |
25 /** |
26 * @category Zend |
26 * @category Zend |
27 * @package Zend_Service |
27 * @package Zend_Service |
28 * @subpackage Amazon |
28 * @subpackage Amazon |
29 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
29 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
30 * @license http://framework.zend.com/license/new-bsd New BSD License |
30 * @license http://framework.zend.com/license/new-bsd New BSD License |
31 */ |
31 */ |
32 class Zend_Service_Amazon_Accessories |
32 class Zend_Service_Amazon_Accessories |
33 { |
33 { |
34 /** |
34 /** |
48 * @return void |
48 * @return void |
49 */ |
49 */ |
50 public function __construct(DOMElement $dom) |
50 public function __construct(DOMElement $dom) |
51 { |
51 { |
52 $xpath = new DOMXPath($dom->ownerDocument); |
52 $xpath = new DOMXPath($dom->ownerDocument); |
53 $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05'); |
53 $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01'); |
54 foreach (array('ASIN', 'Title') as $el) { |
54 foreach (array('ASIN', 'Title') as $el) { |
55 $this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data; |
55 $this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data; |
56 } |
56 } |
57 } |
57 } |
58 } |
58 } |