2
0

LocalResult.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Service_Yahoo_Result
  24. */
  25. require_once 'Zend/Service/Yahoo/Result.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage Yahoo
  30. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @license http://framework.zend.com/license/new-bsd New BSD License
  32. */
  33. class Zend_Service_Yahoo_LocalResult extends Zend_Service_Yahoo_Result
  34. {
  35. /**
  36. * Street address of the result
  37. *
  38. * @var string
  39. */
  40. public $Address;
  41. /**
  42. * City in which the result resides
  43. *
  44. * @var string
  45. */
  46. public $City;
  47. /**
  48. * State in which the result resides
  49. *
  50. * @var string
  51. */
  52. public $State;
  53. /**
  54. * Phone number for the result
  55. *
  56. * @var string
  57. */
  58. public $Phone;
  59. /**
  60. * User-submitted rating for the result
  61. *
  62. * @var string
  63. */
  64. public $Rating;
  65. /**
  66. * The distance to the result from your specified location
  67. *
  68. * @var string
  69. */
  70. public $Distance;
  71. /**
  72. * A URL of a map for the result
  73. *
  74. * @var string
  75. */
  76. public $MapUrl;
  77. /**
  78. * The URL for the business website, if known
  79. *
  80. * @var string
  81. */
  82. public $BusinessUrl;
  83. /**
  84. * The URL for linking to the business website, if known
  85. *
  86. * @var string
  87. */
  88. public $BusinessClickUrl;
  89. /**
  90. * Local result namespace
  91. *
  92. * @var string
  93. */
  94. protected $_namespace = 'urn:yahoo:lcl';
  95. /**
  96. * Initializes the local result
  97. *
  98. * @param DOMElement $result
  99. * @return void
  100. */
  101. public function __construct(DOMElement $result)
  102. {
  103. $this->_fields = array('Address','City', 'City', 'State', 'Phone', 'Rating', 'Distance', 'MapUrl',
  104. 'BusinessUrl', 'BusinessClickUrl');
  105. parent::__construct($result);
  106. }
  107. }