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: Image.php 20096 2010-01-06 02:05:09Z bkarwin $ |
21 * @version $Id: Image.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_Image |
32 class Zend_Service_Amazon_Image |
33 { |
33 { |
34 /** |
34 /** |
59 * @return void |
59 * @return void |
60 */ |
60 */ |
61 public function __construct(DOMElement $dom) |
61 public function __construct(DOMElement $dom) |
62 { |
62 { |
63 $xpath = new DOMXPath($dom->ownerDocument); |
63 $xpath = new DOMXPath($dom->ownerDocument); |
64 $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05'); |
64 $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01'); |
65 $this->Url = Zend_Uri::factory($xpath->query('./az:URL/text()', $dom)->item(0)->data); |
65 $this->Url = Zend_Uri::factory($xpath->query('./az:URL/text()', $dom)->item(0)->data); |
66 $this->Height = (int) $xpath->query('./az:Height/text()', $dom)->item(0)->data; |
66 $this->Height = (int) $xpath->query('./az:Height/text()', $dom)->item(0)->data; |
67 $this->Width = (int) $xpath->query('./az:Width/text()', $dom)->item(0)->data; |
67 $this->Width = (int) $xpath->query('./az:Width/text()', $dom)->item(0)->data; |
68 } |
68 } |
69 } |
69 } |