web/lib/Zend/Service/Amazon/ResultSet.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    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: ResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
    21  * @version    $Id: ResultSet.php 24780 2012-05-08 19:34:59Z adamlundrigan $
    22  */
    22  */
    23 
    23 
    24 
    24 
    25 /**
    25 /**
    26  * @see Zend_Service_Amazon_Item
    26  * @see Zend_Service_Amazon_Item
    30 
    30 
    31 /**
    31 /**
    32  * @category   Zend
    32  * @category   Zend
    33  * @package    Zend_Service
    33  * @package    Zend_Service
    34  * @subpackage Amazon
    34  * @subpackage Amazon
    35  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    35  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  */
    37  */
    38 class Zend_Service_Amazon_ResultSet implements SeekableIterator
    38 class Zend_Service_Amazon_ResultSet implements SeekableIterator
    39 {
    39 {
    40     /**
    40     /**
    73      */
    73      */
    74     public function __construct(DOMDocument $dom)
    74     public function __construct(DOMDocument $dom)
    75     {
    75     {
    76         $this->_dom = $dom;
    76         $this->_dom = $dom;
    77         $this->_xpath = new DOMXPath($dom);
    77         $this->_xpath = new DOMXPath($dom);
    78         $this->_xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
    78         $this->_xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
    79         $this->_results = $this->_xpath->query('//az:Item');
    79         $this->_results = $this->_xpath->query('//az:Item');
    80     }
    80     }
    81 
    81 
    82     /**
    82     /**
    83      * Total Number of results returned
    83      * Total Number of results returned