PageRenderTime 34ms CodeModel.GetById 29ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/library/Zend/Service/Yahoo/InlinkDataResultSet.php

https://bitbucket.org/hamidrezas/melobit
PHP | 62 lines | 11 code | 8 blank | 43 comment | 0 complexity | 523be31c90ac799c3c77e90efea3c7b4 MD5 | raw file
Possible License(s): AGPL-1.0
 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-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: InlinkDataResultSet.php 24594 2012-01-05 21:27:01Z matthew $
21 */
22
23
24/**
25 * @see Zend_Service_Yahoo_ResultSet
26 */
27require_once 'Zend/Service/Yahoo/ResultSet.php';
28
29
30/**
31 * @see Zend_Service_Yahoo_WebResult
32 */
33require_once 'Zend/Service/Yahoo/InlinkDataResult.php';
34
35
36/**
37 * @category   Zend
38 * @package    Zend_Service
39 * @subpackage Yahoo
40 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
41 * @license    http://framework.zend.com/license/new-bsd     New BSD License
42 */
43class Zend_Service_Yahoo_InlinkDataResultSet 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_InlinkDataResult
57     */
58    public function current()
59    {
60        return new Zend_Service_Yahoo_InlinkDataResult($this->_results->item($this->_currentIndex));
61    }
62}