File indexing completed on 2024-12-22 05:37:06
0001 <?php 0002 0003 /** 0004 * Zend Framework 0005 * 0006 * LICENSE 0007 * 0008 * This source file is subject to the new BSD license that is bundled 0009 * with this package in the file LICENSE.txt. 0010 * It is also available through the world-wide-web at this URL: 0011 * http://framework.zend.com/license/new-bsd 0012 * If you did not receive a copy of the license and are unable to 0013 * obtain it through the world-wide-web, please send an email 0014 * to license@zend.com so we can send you a copy immediately. 0015 * 0016 * @category Zend 0017 * @package Zend_Service 0018 * @subpackage Yahoo 0019 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0020 * @license http://framework.zend.com/license/new-bsd New BSD License 0021 * @version $Id$ 0022 */ 0023 0024 0025 /** 0026 * @see Zend_Service_Yahoo_Result 0027 */ 0028 // require_once 'Zend/Service/Yahoo/Result.php'; 0029 0030 0031 /** 0032 * @category Zend 0033 * @package Zend_Service 0034 * @subpackage Yahoo 0035 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0036 * @license http://framework.zend.com/license/new-bsd New BSD License 0037 */ 0038 class Zend_Service_Yahoo_LocalResult extends Zend_Service_Yahoo_Result 0039 { 0040 /** 0041 * Street address of the result 0042 * 0043 * @var string 0044 */ 0045 public $Address; 0046 0047 /** 0048 * City in which the result resides 0049 * 0050 * @var string 0051 */ 0052 public $City; 0053 0054 /** 0055 * State in which the result resides 0056 * 0057 * @var string 0058 */ 0059 public $State; 0060 0061 /** 0062 * Phone number for the result 0063 * 0064 * @var string 0065 */ 0066 public $Phone; 0067 0068 /** 0069 * User-submitted rating for the result 0070 * 0071 * @var string 0072 */ 0073 public $Rating; 0074 0075 /** 0076 * The distance to the result from your specified location 0077 * 0078 * @var string 0079 */ 0080 public $Distance; 0081 0082 /** 0083 * A URL of a map for the result 0084 * 0085 * @var string 0086 */ 0087 public $MapUrl; 0088 0089 /** 0090 * The URL for the business website, if known 0091 * 0092 * @var string 0093 */ 0094 public $BusinessUrl; 0095 0096 /** 0097 * The URL for linking to the business website, if known 0098 * 0099 * @var string 0100 */ 0101 public $BusinessClickUrl; 0102 0103 /** 0104 * Local result namespace 0105 * 0106 * @var string 0107 */ 0108 protected $_namespace = 'urn:yahoo:lcl'; 0109 0110 0111 /** 0112 * Initializes the local result 0113 * 0114 * @param DOMElement $result 0115 * @return void 0116 */ 0117 public function __construct(DOMElement $result) 0118 { 0119 $this->_fields = array('Address','City', 'City', 'State', 'Phone', 'Rating', 'Distance', 'MapUrl', 0120 'BusinessUrl', 'BusinessClickUrl'); 0121 0122 parent::__construct($result); 0123 } 0124 }