|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Service |
|
17 * @subpackage Yahoo |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: PageDataResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 |
|
24 /** |
|
25 * @see Zend_Service_Yahoo_ResultSet |
|
26 */ |
|
27 require_once 'Zend/Service/Yahoo/ResultSet.php'; |
|
28 |
|
29 |
|
30 /** |
|
31 * @see Zend_Service_Yahoo_WebResult |
|
32 */ |
|
33 require_once 'Zend/Service/Yahoo/PageDataResult.php'; |
|
34 |
|
35 |
|
36 /** |
|
37 * @category Zend |
|
38 * @package Zend_Service |
|
39 * @subpackage Yahoo |
|
40 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
41 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
42 */ |
|
43 class Zend_Service_Yahoo_PageDataResultSet extends Zend_Service_Yahoo_ResultSet |
|
44 { |
|
45 /** |
|
46 * Web result set namespace |
|
47 * |
|
48 * @var string |
|
49 */ |
|
50 protected $_namespace = 'urn:yahoo:srch'; |
|
51 |
|
52 |
|
53 /** |
|
54 * Overrides Zend_Service_Yahoo_ResultSet::current() |
|
55 * |
|
56 * @return Zend_Service_Yahoo_WebResult |
|
57 */ |
|
58 public function current() |
|
59 { |
|
60 return new Zend_Service_Yahoo_PageDataResult($this->_results->item($this->_currentIndex)); |
|
61 } |
|
62 } |