/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

  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. * @see Zend_Service_Yahoo_ResultSet
  24. */
  25. require_once 'Zend/Service/Yahoo/ResultSet.php';
  26. /**
  27. * @see Zend_Service_Yahoo_WebResult
  28. */
  29. require_once 'Zend/Service/Yahoo/InlinkDataResult.php';
  30. /**
  31. * @category Zend
  32. * @package Zend_Service
  33. * @subpackage Yahoo
  34. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  35. * @license http://framework.zend.com/license/new-bsd New BSD License
  36. */
  37. class Zend_Service_Yahoo_InlinkDataResultSet extends Zend_Service_Yahoo_ResultSet
  38. {
  39. /**
  40. * Web result set namespace
  41. *
  42. * @var string
  43. */
  44. protected $_namespace = 'urn:yahoo:srch';
  45. /**
  46. * Overrides Zend_Service_Yahoo_ResultSet::current()
  47. *
  48. * @return Zend_Service_Yahoo_InlinkDataResult
  49. */
  50. public function current()
  51. {
  52. return new Zend_Service_Yahoo_InlinkDataResult($this->_results->item($this->_currentIndex));
  53. }
  54. }