File indexing completed on 2024-05-26 06:03:30

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Service
0017  * @subpackage Yahoo
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id$
0021  */
0022 
0023 
0024 /**
0025  * @see Zend_Service_Yahoo_ResultSet
0026  */
0027 // require_once 'Zend/Service/Yahoo/ResultSet.php';
0028 
0029 
0030 /**
0031  * @see Zend_Service_Yahoo_WebResult
0032  */
0033 // require_once 'Zend/Service/Yahoo/PageDataResult.php';
0034 
0035 
0036 /**
0037  * @category   Zend
0038  * @package    Zend_Service
0039  * @subpackage Yahoo
0040  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0041  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0042  */
0043 class Zend_Service_Yahoo_PageDataResultSet extends Zend_Service_Yahoo_ResultSet
0044 {
0045     /**
0046      * Web result set namespace
0047      *
0048      * @var string
0049      */
0050     protected $_namespace = 'urn:yahoo:srch';
0051 
0052 
0053     /**
0054      * Overrides Zend_Service_Yahoo_ResultSet::current()
0055      *
0056      * @return Zend_Service_Yahoo_WebResult
0057      */
0058     public function current()
0059     {
0060         return new Zend_Service_Yahoo_PageDataResult($this->_results->item($this->_currentIndex));
0061     }
0062 }