| 1 |
<?php |
| 2 |
/** |
| 3 |
* Standalone (theme_id 990) property field sections. |
| 4 |
* |
| 5 |
* Groups the imported RESO fields into named sections (Interior, Exterior, |
| 6 |
* Financial, ...) for the single-property page. One function resolves a |
| 7 |
* section's rows; the nine section render fns are thin callers. |
| 8 |
* |
| 9 |
* @package Mlsimport |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
/** |
| 17 |
* Resolves a RESO field to the property-page section it belongs to. |
| 18 |
*/ |
| 19 |
class Mlsimport_Property_Field_Sections { |
| 20 |
|
| 21 |
/** |
| 22 |
* RESO field => [ section slug, RESO display label, RESO type ]. Generated |
| 23 |
* from RESO Data Dictionary 2.0. Fields absent here — every MLS's proprietary |
| 24 |
* fields — fall through to 'other' and are treated as plain strings. |
| 25 |
*/ |
| 26 |
private const MAP = array( |
| 27 |
'AboveGradeFinishedArea' => array( 'interior', 'Above Grade Finished Area', 'Number' ), |
| 28 |
'AboveGradeFinishedAreaSource' => array( 'interior', 'Above Grade Finished Area Source', 'String List, Single' ), |
| 29 |
'AboveGradeFinishedAreaUnits' => array( 'interior', 'Above Grade Finished Area Units', 'String List, Single' ), |
| 30 |
'AboveGradeUnfinishedArea' => array( 'interior', 'Above Grade Unfinished Area', 'Number' ), |
| 31 |
'AboveGradeUnfinishedAreaSource' => array( 'interior', 'Above Grade Unfinished Area Source', 'String List, Single' ), |
| 32 |
'AboveGradeUnfinishedAreaUnits' => array( 'interior', 'Above Grade Unfinished Area Units', 'String List, Single' ), |
| 33 |
'AccessCode' => array( 'listing_info', 'Access Code', 'String' ), |
| 34 |
'AccessibilityFeatures' => array( 'interior', 'Accessibility Features', 'String List, Multi' ), |
| 35 |
'ActivationDate' => array( 'listing_info', 'Activation Date', 'Date' ), |
| 36 |
'AdditionalParcelsDescription' => array( 'financial', 'Additional Parcels Description', 'String' ), |
| 37 |
'AdditionalParcelsYN' => array( 'financial', 'Additional Parcels Yes/No', 'Boolean' ), |
| 38 |
'AnchorsCoTenants' => array( 'location', 'Anchors & Cotenants', 'String' ), |
| 39 |
'Appliances' => array( 'interior', 'Appliances', 'String List, Multi' ), |
| 40 |
'ArchitecturalStyle' => array( 'structure', 'Architectural Style', 'String List, Multi' ), |
| 41 |
'AssociationAmenities' => array( 'financial', 'Association Amenities', 'String List, Multi' ), |
| 42 |
'AssociationFee' => array( 'financial', 'Association Fee', 'Number' ), |
| 43 |
'AssociationFee2' => array( 'financial', 'Association Fee 2', 'Number' ), |
| 44 |
'AssociationFee2Frequency' => array( 'financial', 'Association Fee 2 Frequency', 'String List, Single' ), |
| 45 |
'AssociationFeeFrequency' => array( 'financial', 'Association Fee Frequency', 'String List, Single' ), |
| 46 |
'AssociationFeeIncludes' => array( 'financial', 'Association Fee Includes', 'String List, Multi' ), |
| 47 |
'AssociationName' => array( 'financial', 'Association Name', 'String' ), |
| 48 |
'AssociationName2' => array( 'financial', 'Association Name 2', 'String' ), |
| 49 |
'AssociationPhone' => array( 'financial', 'Association Phone', 'String' ), |
| 50 |
'AssociationPhone2' => array( 'financial', 'Association Phone 2', 'String' ), |
| 51 |
'AssociationYN' => array( 'financial', 'Association Yes/No', 'Boolean' ), |
| 52 |
'AttachedGarageYN' => array( 'exterior', 'Attached Garage Yes/No', 'Boolean' ), |
| 53 |
'AttributionContact' => array( 'listing_info', 'Attribution Contact', 'String' ), |
| 54 |
'AvailabilityDate' => array( 'listing_info', 'Availability Date', 'Date' ), |
| 55 |
'AvailableLeaseType' => array( 'financial', 'Available Lease Type', 'String List, Multi' ), |
| 56 |
'BackOnMarketDate' => array( 'listing_info', 'Back on Market Date', 'Date' ), |
| 57 |
'Basement' => array( 'interior', 'Basement', 'String List, Multi' ), |
| 58 |
'BasementYN' => array( 'interior', 'Basement Yes/No', 'Boolean' ), |
| 59 |
'BathroomsFull' => array( 'interior', 'Bathrooms Full', 'Number' ), |
| 60 |
'BathroomsHalf' => array( 'interior', 'Bathrooms Half', 'Number' ), |
| 61 |
'BathroomsOneQuarter' => array( 'interior', 'Bathrooms One Quarter', 'Number' ), |
| 62 |
'BathroomsPartial' => array( 'interior', 'Bathrooms Partial', 'Number' ), |
| 63 |
'BathroomsThreeQuarter' => array( 'interior', 'Bathrooms Three Quarter', 'Number' ), |
| 64 |
'BathroomsTotalInteger' => array( 'interior', 'Bathrooms Total Integer', 'Number' ), |
| 65 |
'BedroomsPossible' => array( 'interior', 'Bedrooms Possible', 'Number' ), |
| 66 |
'BedroomsTotal' => array( 'interior', 'Bedrooms Total', 'Number' ), |
| 67 |
'BelowGradeFinishedArea' => array( 'interior', 'Below Grade Finished Area', 'Number' ), |
| 68 |
'BelowGradeFinishedAreaSource' => array( 'interior', 'Below Grade Finished Area Source', 'String List, Single' ), |
| 69 |
'BelowGradeFinishedAreaUnits' => array( 'interior', 'Below Grade Finished Area Units', 'String List, Single' ), |
| 70 |
'BelowGradeUnfinishedArea' => array( 'interior', 'Below Grade Unfinished Area', 'Number' ), |
| 71 |
'BelowGradeUnfinishedAreaSource' => array( 'interior', 'Below Grade Unfinished Area Source', 'String List, Single' ), |
| 72 |
'BelowGradeUnfinishedAreaUnits' => array( 'interior', 'Below Grade Unfinished Area Units', 'String List, Single' ), |
| 73 |
'BodyType' => array( 'structure', 'Body Type', 'String List, Multi' ), |
| 74 |
'BuilderModel' => array( 'structure', 'Builder Model', 'String' ), |
| 75 |
'BuilderName' => array( 'structure', 'Builder Name', 'String' ), |
| 76 |
'BuildingAreaSource' => array( 'structure', 'Building Area Source', 'String List, Single' ), |
| 77 |
'BuildingAreaTotal' => array( 'structure', 'Building Area Total', 'Number' ), |
| 78 |
'BuildingAreaUnits' => array( 'structure', 'Building Area Units', 'String List, Single' ), |
| 79 |
'BuildingFeatures' => array( 'structure', 'Building Features', 'String List, Multi' ), |
| 80 |
'BuildingName' => array( 'structure', 'Building Name', 'String' ), |
| 81 |
'BusinessName' => array( 'listing_info', 'Business Name', 'String' ), |
| 82 |
'BusinessType' => array( 'listing_info', 'Business Type', 'String List, Multi' ), |
| 83 |
'BuyerAgentAOR' => array( 'listing_info', 'Buyer Agent AOR', 'String List, Single' ), |
| 84 |
'BuyerAgentDesignation' => array( 'listing_info', 'Buyer Agent Designation', 'String List, Multi' ), |
| 85 |
'BuyerAgentDirectPhone' => array( 'listing_info', 'Buyer Agent Direct Phone', 'String' ), |
| 86 |
'BuyerAgentEmail' => array( 'listing_info', 'Buyer Agent Email', 'String' ), |
| 87 |
'BuyerAgentFax' => array( 'listing_info', 'Buyer Agent Fax', 'String' ), |
| 88 |
'BuyerAgentFirstName' => array( 'listing_info', 'Buyer Agent First Name', 'String' ), |
| 89 |
'BuyerAgentFullName' => array( 'listing_info', 'Buyer Agent Full Name', 'String' ), |
| 90 |
'BuyerAgentHomePhone' => array( 'listing_info', 'Buyer Agent Home Phone', 'String' ), |
| 91 |
'BuyerAgentKey' => array( 'listing_info', 'Buyer Agent Key', 'String' ), |
| 92 |
'BuyerAgentLastName' => array( 'listing_info', 'Buyer Agent Last Name', 'String' ), |
| 93 |
'BuyerAgentMiddleName' => array( 'listing_info', 'Buyer Agent Middle Name', 'String' ), |
| 94 |
'BuyerAgentMlsId' => array( 'listing_info', 'Buyer Agent MLS ID', 'String' ), |
| 95 |
'BuyerAgentMobilePhone' => array( 'listing_info', 'Buyer Agent Mobile Phone', 'String' ), |
| 96 |
'BuyerAgentNamePrefix' => array( 'listing_info', 'Buyer Agent Name Prefix', 'String' ), |
| 97 |
'BuyerAgentNameSuffix' => array( 'listing_info', 'Buyer Agent Name Suffix', 'String' ), |
| 98 |
'BuyerAgentNationalAssociationId' => array( 'listing_info', 'Buyer Agent National Association ID', 'String' ), |
| 99 |
'BuyerAgentOfficePhone' => array( 'listing_info', 'Buyer Agent Office Phone', 'String' ), |
| 100 |
'BuyerAgentOfficePhoneExt' => array( 'listing_info', 'Buyer Agent Office Phone Ext', 'String' ), |
| 101 |
'BuyerAgentPager' => array( 'listing_info', 'Buyer Agent Pager', 'String' ), |
| 102 |
'BuyerAgentPreferredPhone' => array( 'listing_info', 'Buyer Agent Preferred Phone', 'String' ), |
| 103 |
'BuyerAgentPreferredPhoneExt' => array( 'listing_info', 'Buyer Agent Preferred Phone Ext', 'String' ), |
| 104 |
'BuyerAgentStateLicense' => array( 'listing_info', 'Buyer Agent State License', 'String' ), |
| 105 |
'BuyerAgentTollFreePhone' => array( 'listing_info', 'Buyer Agent Toll Free Phone', 'String' ), |
| 106 |
'BuyerAgentURL' => array( 'listing_info', 'Buyer Agent URL', 'String' ), |
| 107 |
'BuyerAgentVoiceMail' => array( 'listing_info', 'Buyer Agent Voice Mail', 'String' ), |
| 108 |
'BuyerAgentVoiceMailExt' => array( 'listing_info', 'Buyer Agent Voice Mail Ext', 'String' ), |
| 109 |
'BuyerBrokerageCompensation' => array( 'listing_info', 'Buyer Brokerage Compensation', 'String' ), |
| 110 |
'BuyerBrokerageCompensationType' => array( 'listing_info', 'Buyer Brokerage Compensation Type', 'String List, Single' ), |
| 111 |
'BuyerFinancing' => array( 'listing_info', 'Buyer Financing', 'String List, Multi' ), |
| 112 |
'BuyerOfficeAOR' => array( 'listing_info', 'Buyer Office AOR', 'String List, Single' ), |
| 113 |
'BuyerOfficeEmail' => array( 'listing_info', 'Buyer Office Email', 'String' ), |
| 114 |
'BuyerOfficeFax' => array( 'listing_info', 'Buyer Office Fax', 'String' ), |
| 115 |
'BuyerOfficeKey' => array( 'listing_info', 'Buyer Office Key', 'String' ), |
| 116 |
'BuyerOfficeMlsId' => array( 'listing_info', 'Buyer Office MLS ID', 'String' ), |
| 117 |
'BuyerOfficeName' => array( 'listing_info', 'Buyer Office Name', 'String' ), |
| 118 |
'BuyerOfficeNationalAssociationId' => array( 'listing_info', 'Buyer Office National Association ID', 'String' ), |
| 119 |
'BuyerOfficePhone' => array( 'listing_info', 'Buyer Office Phone', 'String' ), |
| 120 |
'BuyerOfficePhoneExt' => array( 'listing_info', 'Buyer Office Phone Ext', 'String' ), |
| 121 |
'BuyerOfficeURL' => array( 'listing_info', 'Buyer Office URL', 'String' ), |
| 122 |
'BuyerTeamKey' => array( 'listing_info', 'Buyer Team Key', 'String' ), |
| 123 |
'BuyerTeamName' => array( 'listing_info', 'Buyer Team Name', 'String' ), |
| 124 |
'CableTvExpense' => array( 'financial', 'Cable TV Expense', 'Number' ), |
| 125 |
'CancellationDate' => array( 'listing_info', 'Cancellation Date', 'Date' ), |
| 126 |
'CapRate' => array( 'financial', 'Cap Rate', 'Number' ), |
| 127 |
'CarportSpaces' => array( 'exterior', 'Carport Spaces', 'Number' ), |
| 128 |
'CarportYN' => array( 'exterior', 'Carport Yes/No', 'Boolean' ), |
| 129 |
'CarrierRoute' => array( 'location', 'Carrier Route', 'String' ), |
| 130 |
'City' => array( 'location', 'City', 'String List, Single' ), |
| 131 |
'CityRegion' => array( 'location', 'City Region', 'String' ), |
| 132 |
'CloseDate' => array( 'listing_info', 'Close Date', 'Date' ), |
| 133 |
'ClosePrice' => array( 'listing_info', 'Close Price', 'Number' ), |
| 134 |
'CoBuyerAgentAOR' => array( 'listing_info', 'Co-Buyer Agent AOR', 'String List, Single' ), |
| 135 |
'CoBuyerAgentDesignation' => array( 'listing_info', 'Co-Buyer Agent Designation', 'String List, Multi' ), |
| 136 |
'CoBuyerAgentDirectPhone' => array( 'listing_info', 'Co-Buyer Agent Direct Phone', 'String' ), |
| 137 |
'CoBuyerAgentEmail' => array( 'listing_info', 'Co-Buyer Agent Email', 'String' ), |
| 138 |
'CoBuyerAgentFax' => array( 'listing_info', 'Co-Buyer Agent Fax', 'String' ), |
| 139 |
'CoBuyerAgentFirstName' => array( 'listing_info', 'Co-Buyer Agent First Name', 'String' ), |
| 140 |
'CoBuyerAgentFullName' => array( 'listing_info', 'Co-Buyer Agent Full Name', 'String' ), |
| 141 |
'CoBuyerAgentHomePhone' => array( 'listing_info', 'Co-Buyer Agent Home Phone', 'String' ), |
| 142 |
'CoBuyerAgentKey' => array( 'listing_info', 'Co-Buyer Agent Key', 'String' ), |
| 143 |
'CoBuyerAgentLastName' => array( 'listing_info', 'Co-Buyer Agent Last Name', 'String' ), |
| 144 |
'CoBuyerAgentMiddleName' => array( 'listing_info', 'Co-Buyer Agent Middle Name', 'String' ), |
| 145 |
'CoBuyerAgentMlsId' => array( 'listing_info', 'Co-Buyer Agent MLS ID', 'String' ), |
| 146 |
'CoBuyerAgentMobilePhone' => array( 'listing_info', 'Co-Buyer Agent Mobile Phone', 'String' ), |
| 147 |
'CoBuyerAgentNamePrefix' => array( 'listing_info', 'Co-Buyer Agent Name Prefix', 'String' ), |
| 148 |
'CoBuyerAgentNameSuffix' => array( 'listing_info', 'Co-Buyer Agent Name Suffix', 'String' ), |
| 149 |
'CoBuyerAgentNationalAssociationId' => array( 'listing_info', 'Co-Buyer Agent National Association ID', 'String' ), |
| 150 |
'CoBuyerAgentOfficePhone' => array( 'listing_info', 'Co-Buyer Agent Office Phone', 'String' ), |
| 151 |
'CoBuyerAgentOfficePhoneExt' => array( 'listing_info', 'Co-Buyer Agent Office Phone Ext', 'String' ), |
| 152 |
'CoBuyerAgentPager' => array( 'listing_info', 'Co-Buyer Agent Pager', 'String' ), |
| 153 |
'CoBuyerAgentPreferredPhone' => array( 'listing_info', 'Co-Buyer Agent Preferred Phone', 'String' ), |
| 154 |
'CoBuyerAgentPreferredPhoneExt' => array( 'listing_info', 'Co-Buyer Agent Preferred Phone Ext', 'String' ), |
| 155 |
'CoBuyerAgentStateLicense' => array( 'listing_info', 'Co-Buyer Agent State License', 'String' ), |
| 156 |
'CoBuyerAgentTollFreePhone' => array( 'listing_info', 'Co-Buyer Agent Toll Free Phone', 'String' ), |
| 157 |
'CoBuyerAgentURL' => array( 'listing_info', 'Co-Buyer Agent URL', 'String' ), |
| 158 |
'CoBuyerAgentVoiceMail' => array( 'listing_info', 'Co-Buyer Agent Voice Mail', 'String' ), |
| 159 |
'CoBuyerAgentVoiceMailExt' => array( 'listing_info', 'Co-Buyer Agent Voice Mail Ext', 'String' ), |
| 160 |
'CoBuyerOfficeAOR' => array( 'listing_info', 'Co-Buyer Office AOR', 'String List, Single' ), |
| 161 |
'CoBuyerOfficeEmail' => array( 'listing_info', 'Co-Buyer Office Email', 'String' ), |
| 162 |
'CoBuyerOfficeFax' => array( 'listing_info', 'Co-Buyer Office Fax', 'String' ), |
| 163 |
'CoBuyerOfficeKey' => array( 'listing_info', 'Co-Buyer Office Key', 'String' ), |
| 164 |
'CoBuyerOfficeMlsId' => array( 'listing_info', 'Co-Buyer Office MLS ID', 'String' ), |
| 165 |
'CoBuyerOfficeName' => array( 'listing_info', 'Co-Buyer Office Name', 'String' ), |
| 166 |
'CoBuyerOfficeNationalAssociationId' => array( 'listing_info', 'Co-Buyer Office National Association ID', 'String' ), |
| 167 |
'CoBuyerOfficePhone' => array( 'listing_info', 'Co-Buyer Office Phone', 'String' ), |
| 168 |
'CoBuyerOfficePhoneExt' => array( 'listing_info', 'Co-Buyer Office Phone Ext', 'String' ), |
| 169 |
'CoBuyerOfficeURL' => array( 'listing_info', 'Co-Buyer Office URL', 'String' ), |
| 170 |
'CoListAgentAOR' => array( 'listing_info', 'Co-List Agent AOR', 'String List, Single' ), |
| 171 |
'CoListAgentDesignation' => array( 'listing_info', 'Co-List Agent Designation', 'String List, Multi' ), |
| 172 |
'CoListAgentDirectPhone' => array( 'listing_info', 'Co-List Agent Direct Phone', 'String' ), |
| 173 |
'CoListAgentEmail' => array( 'listing_info', 'Co-List Agent Email', 'String' ), |
| 174 |
'CoListAgentFax' => array( 'listing_info', 'Co-List Agent Fax', 'String' ), |
| 175 |
'CoListAgentFirstName' => array( 'listing_info', 'Co-List Agent First Name', 'String' ), |
| 176 |
'CoListAgentFullName' => array( 'listing_info', 'Co-List Agent Full Name', 'String' ), |
| 177 |
'CoListAgentHomePhone' => array( 'listing_info', 'Co-List Agent Home Phone', 'String' ), |
| 178 |
'CoListAgentKey' => array( 'listing_info', 'Co-List Agent Key', 'String' ), |
| 179 |
'CoListAgentLastName' => array( 'listing_info', 'Co-List Agent Last Name', 'String' ), |
| 180 |
'CoListAgentMiddleName' => array( 'listing_info', 'Co-List Agent Middle Name', 'String' ), |
| 181 |
'CoListAgentMlsId' => array( 'listing_info', 'Co-List Agent MLS ID', 'String' ), |
| 182 |
'CoListAgentMobilePhone' => array( 'listing_info', 'Co-List Agent Mobile Phone', 'String' ), |
| 183 |
'CoListAgentNamePrefix' => array( 'listing_info', 'Co-List Agent Name Prefix', 'String' ), |
| 184 |
'CoListAgentNameSuffix' => array( 'listing_info', 'Co-List Agent Name Suffix', 'String' ), |
| 185 |
'CoListAgentNationalAssociationId' => array( 'listing_info', 'Co-List Agent National Association ID', 'String' ), |
| 186 |
'CoListAgentOfficePhone' => array( 'listing_info', 'Co-List Agent Office Phone', 'String' ), |
| 187 |
'CoListAgentOfficePhoneExt' => array( 'listing_info', 'Co-List Agent Office Phone Ext', 'String' ), |
| 188 |
'CoListAgentPager' => array( 'listing_info', 'Co-List Agent Pager', 'String' ), |
| 189 |
'CoListAgentPreferredPhone' => array( 'listing_info', 'Co-List Agent Preferred Phone', 'String' ), |
| 190 |
'CoListAgentPreferredPhoneExt' => array( 'listing_info', 'Co-List Agent Preferred Phone Ext', 'String' ), |
| 191 |
'CoListAgentStateLicense' => array( 'listing_info', 'Co-List Agent State License', 'String' ), |
| 192 |
'CoListAgentTollFreePhone' => array( 'listing_info', 'Co-List Agent Toll Free Phone', 'String' ), |
| 193 |
'CoListAgentURL' => array( 'listing_info', 'Co-List Agent URL', 'String' ), |
| 194 |
'CoListAgentVoiceMail' => array( 'listing_info', 'Co-List Agent Voice Mail', 'String' ), |
| 195 |
'CoListAgentVoiceMailExt' => array( 'listing_info', 'Co-List Agent Voice Mail Ext', 'String' ), |
| 196 |
'CoListOfficeAOR' => array( 'listing_info', 'Co-List Office AOR', 'String List, Single' ), |
| 197 |
'CoListOfficeEmail' => array( 'listing_info', 'Co-List Office Email', 'String' ), |
| 198 |
'CoListOfficeFax' => array( 'listing_info', 'Co-List Office Fax', 'String' ), |
| 199 |
'CoListOfficeKey' => array( 'listing_info', 'Co-List Office Key', 'String' ), |
| 200 |
'CoListOfficeMlsId' => array( 'listing_info', 'Co-List Office MLS ID', 'String' ), |
| 201 |
'CoListOfficeName' => array( 'listing_info', 'Co-List Office Name', 'String' ), |
| 202 |
'CoListOfficeNationalAssociationId' => array( 'listing_info', 'Co-List Office National Association ID', 'String' ), |
| 203 |
'CoListOfficePhone' => array( 'listing_info', 'Co-List Office Phone', 'String' ), |
| 204 |
'CoListOfficePhoneExt' => array( 'listing_info', 'Co-List Office Phone Ext', 'String' ), |
| 205 |
'CoListOfficeURL' => array( 'listing_info', 'Co-List Office URL', 'String' ), |
| 206 |
'CommonInterest' => array( 'listing_info', 'Common Interest', 'String List, Single' ), |
| 207 |
'CommonWalls' => array( 'structure', 'Common Walls', 'String List, Multi' ), |
| 208 |
'CommunityFeatures' => array( 'location', 'Community Features', 'String List, Multi' ), |
| 209 |
'CompSaleYN' => array( 'listing_info', 'Comp Sale Yes/No', 'Boolean' ), |
| 210 |
'CompensationComments' => array( 'listing_info', 'Compensation Comments', 'String' ), |
| 211 |
'Concessions' => array( 'listing_info', 'Concessions', 'String List, Single' ), |
| 212 |
'ConcessionsAmount' => array( 'listing_info', 'Concessions Amount', 'Number' ), |
| 213 |
'ConcessionsComments' => array( 'listing_info', 'Concessions Comments', 'String' ), |
| 214 |
'ConstructionMaterials' => array( 'structure', 'Construction Materials', 'String List, Multi' ), |
| 215 |
'ContinentRegion' => array( 'location', 'Continent Region', 'String' ), |
| 216 |
'Contingency' => array( 'listing_info', 'Contingency', 'String' ), |
| 217 |
'ContingentDate' => array( 'listing_info', 'Contingent Date', 'Date' ), |
| 218 |
'ContractStatusChangeDate' => array( 'listing_info', 'Contract Status Change Date', 'Date' ), |
| 219 |
'Cooling' => array( 'interior', 'Cooling', 'String List, Multi' ), |
| 220 |
'CoolingYN' => array( 'interior', 'Cooling Yes/No', 'Boolean' ), |
| 221 |
'CopyrightNotice' => array( 'listing_info', 'Copyright Notice', 'String' ), |
| 222 |
'Country' => array( 'location', 'Country', 'String List, Single' ), |
| 223 |
'CountryRegion' => array( 'location', 'Country Region', 'String' ), |
| 224 |
'CountyOrParish' => array( 'location', 'County Or Parish', 'String List, Single' ), |
| 225 |
'CoveredSpaces' => array( 'exterior', 'Covered Spaces', 'Number' ), |
| 226 |
'CropsIncludedYN' => array( 'exterior', 'Crops Included Yes/No', 'Boolean' ), |
| 227 |
'CrossStreet' => array( 'location', 'Cross Street', 'String' ), |
| 228 |
'CultivatedArea' => array( 'exterior', 'Cultivated Area', 'Number' ), |
| 229 |
'CumulativeDaysOnMarket' => array( 'listing_info', 'Cumulative Days On Market', 'Number' ), |
| 230 |
'CurrentFinancing' => array( 'listing_info', 'Current Financing', 'String List, Multi' ), |
| 231 |
'CurrentUse' => array( 'structure', 'Current Use', 'String List, Multi' ), |
| 232 |
'DOH1' => array( 'structure', 'DOH 1', 'String' ), |
| 233 |
'DOH2' => array( 'structure', 'DOH 2', 'String' ), |
| 234 |
'DOH3' => array( 'structure', 'DOH 3', 'String' ), |
| 235 |
'DaysInMls' => array( 'listing_info', 'Days in MLS', 'Number' ), |
| 236 |
'DaysOnMarket' => array( 'listing_info', 'Days On Market', 'Number' ), |
| 237 |
'DaysOnSite' => array( 'listing_info', 'Days on Site', 'Number' ), |
| 238 |
'DevelopmentStatus' => array( 'structure', 'Development Status', 'String List, Multi' ), |
| 239 |
'DirectionFaces' => array( 'exterior', 'Direction Faces', 'String List, Single' ), |
| 240 |
'Directions' => array( 'location', 'Directions', 'String' ), |
| 241 |
'Disclaimer' => array( 'listing_info', 'Disclaimer', 'String' ), |
| 242 |
'Disclosures' => array( 'listing_info', 'Disclosures', 'String List, Multi' ), |
| 243 |
'DistanceToBusComments' => array( 'location', 'Distance To Bus Comments', 'String' ), |
| 244 |
'DistanceToBusNumeric' => array( 'location', 'Distance To Bus Numeric', 'Number' ), |
| 245 |
'DistanceToBusUnits' => array( 'location', 'Distance To Bus Units', 'String List, Single' ), |
| 246 |
'DistanceToElectricComments' => array( 'utilities', 'Distance To Electric Comments', 'String' ), |
| 247 |
'DistanceToElectricNumeric' => array( 'utilities', 'Distance To Electric Numeric', 'Number' ), |
| 248 |
'DistanceToElectricUnits' => array( 'utilities', 'Distance To Electric Units', 'String List, Single' ), |
| 249 |
'DistanceToFreewayComments' => array( 'location', 'Distance To Freeway Comments', 'String' ), |
| 250 |
'DistanceToFreewayNumeric' => array( 'location', 'Distance To Freeway Numeric', 'Number' ), |
| 251 |
'DistanceToFreewayUnits' => array( 'location', 'Distance To Freeway Units', 'String List, Single' ), |
| 252 |
'DistanceToGasComments' => array( 'utilities', 'Distance To Gas Comments', 'String' ), |
| 253 |
'DistanceToGasNumeric' => array( 'utilities', 'Distance To Gas Numeric', 'Number' ), |
| 254 |
'DistanceToGasUnits' => array( 'utilities', 'Distance To Gas Units', 'String List, Single' ), |
| 255 |
'DistanceToPhoneServiceComments' => array( 'utilities', 'Distance To Phone Service Comments', 'String' ), |
| 256 |
'DistanceToPhoneServiceNumeric' => array( 'utilities', 'Distance To Phone Service Numeric', 'Number' ), |
| 257 |
'DistanceToPhoneServiceUnits' => array( 'utilities', 'Distance To Phone Service Units', 'String List, Single' ), |
| 258 |
'DistanceToPlaceofWorshipComments' => array( 'location', 'Distance To Placeof Worship Comments', 'String' ), |
| 259 |
'DistanceToPlaceofWorshipNumeric' => array( 'location', 'Distance To Placeof Worship Numeric', 'Number' ), |
| 260 |
'DistanceToPlaceofWorshipUnits' => array( 'location', 'Distance To Placeof Worship Units', 'String List, Single' ), |
| 261 |
'DistanceToSchoolBusComments' => array( 'location', 'Distance To School Bus Comments', 'String' ), |
| 262 |
'DistanceToSchoolBusNumeric' => array( 'location', 'Distance To School Bus Numeric', 'Number' ), |
| 263 |
'DistanceToSchoolBusUnits' => array( 'location', 'Distance To School Bus Units', 'String List, Single' ), |
| 264 |
'DistanceToSchoolsComments' => array( 'location', 'Distance To Schools Comments', 'String' ), |
| 265 |
'DistanceToSchoolsNumeric' => array( 'location', 'Distance To Schools Numeric', 'Number' ), |
| 266 |
'DistanceToSchoolsUnits' => array( 'location', 'Distance To Schools Units', 'String List, Single' ), |
| 267 |
'DistanceToSewerComments' => array( 'utilities', 'Distance To Sewer Comments', 'String' ), |
| 268 |
'DistanceToSewerNumeric' => array( 'utilities', 'Distance To Sewer Numeric', 'Number' ), |
| 269 |
'DistanceToSewerUnits' => array( 'utilities', 'Distance To Sewer Units', 'String List, Single' ), |
| 270 |
'DistanceToShoppingComments' => array( 'location', 'Distance To Shopping Comments', 'String' ), |
| 271 |
'DistanceToShoppingNumeric' => array( 'location', 'Distance To Shopping Numeric', 'Number' ), |
| 272 |
'DistanceToShoppingUnits' => array( 'location', 'Distance To Shopping Units', 'String List, Single' ), |
| 273 |
'DistanceToStreetComments' => array( 'location', 'Distance To Street Comments', 'String' ), |
| 274 |
'DistanceToStreetNumeric' => array( 'location', 'Distance To Street Numeric', 'Number' ), |
| 275 |
'DistanceToStreetUnits' => array( 'location', 'Distance To Street Units', 'String List, Single' ), |
| 276 |
'DistanceToWaterComments' => array( 'utilities', 'Distance To Water Comments', 'String' ), |
| 277 |
'DistanceToWaterNumeric' => array( 'utilities', 'Distance To Water Numeric', 'Number' ), |
| 278 |
'DistanceToWaterUnits' => array( 'utilities', 'Distance To Water Units', 'String List, Single' ), |
| 279 |
'DocumentStatus' => array( 'listing_info', 'Document Status', 'String List, Single' ), |
| 280 |
'DocumentsAvailable' => array( 'listing_info', 'Documents Available', 'String List, Multi' ), |
| 281 |
'DocumentsChangeTimestamp' => array( 'listing_info', 'Documents Change Timestamp', 'Timestamp' ), |
| 282 |
'DocumentsCount' => array( 'listing_info', 'Documents Count', 'Number' ), |
| 283 |
'DoorFeatures' => array( 'interior', 'Door Features', 'String List, Multi' ), |
| 284 |
'DualOrVariableRateCommissionYN' => array( 'listing_info', 'Dual or Variable Rate Commission Yes/No', 'Boolean' ), |
| 285 |
'Electric' => array( 'utilities', 'Electric', 'String List, Multi' ), |
| 286 |
'ElectricExpense' => array( 'financial', 'Electric Expense', 'Number' ), |
| 287 |
'ElectricOnPropertyYN' => array( 'utilities', 'Electric On Property Yes/No', 'Boolean' ), |
| 288 |
'ElementarySchool' => array( 'schools', 'Elementary School', 'String List, Single' ), |
| 289 |
'ElementarySchoolDistrict' => array( 'schools', 'Elementary School District', 'String List, Single' ), |
| 290 |
'Elevation' => array( 'location', 'Elevation', 'Number' ), |
| 291 |
'ElevationUnits' => array( 'location', 'Elevation Units', 'String List, Single' ), |
| 292 |
'EntryLevel' => array( 'interior', 'Entry Level', 'Number' ), |
| 293 |
'EntryLocation' => array( 'interior', 'Entry Location', 'String' ), |
| 294 |
'Exclusions' => array( 'listing_info', 'Exclusions', 'String' ), |
| 295 |
'ExistingLeaseType' => array( 'financial', 'Existing Lease Type', 'String List, Multi' ), |
| 296 |
'ExpirationDate' => array( 'listing_info', 'Expiration Date', 'Date' ), |
| 297 |
'ExteriorFeatures' => array( 'exterior', 'Exterior Features', 'String List, Multi' ), |
| 298 |
'FarmCreditServiceInclYN' => array( 'exterior', 'Farm Credit Service Incl Yes/No', 'Boolean' ), |
| 299 |
'FarmLandAreaSource' => array( 'exterior', 'Farm Land Area Source', 'String List, Single' ), |
| 300 |
'FarmLandAreaUnits' => array( 'exterior', 'Farm Land Area Units', 'String List, Single' ), |
| 301 |
'Fencing' => array( 'exterior', 'Fencing', 'String List, Multi' ), |
| 302 |
'FhaEligibility' => array( 'listing_info', 'FHA Eligibility', 'String List, Single' ), |
| 303 |
'FinancialDataSource' => array( 'financial', 'Financial Data Source', 'String List, Multi' ), |
| 304 |
'FireplaceFeatures' => array( 'interior', 'Fireplace Features', 'String List, Multi' ), |
| 305 |
'FireplaceYN' => array( 'interior', 'Fireplace Yes/No', 'Boolean' ), |
| 306 |
'FireplacesTotal' => array( 'interior', 'Fireplaces Total', 'Number' ), |
| 307 |
'Flooring' => array( 'interior', 'Flooring', 'String List, Multi' ), |
| 308 |
'FoundationArea' => array( 'structure', 'Foundation Area', 'Number' ), |
| 309 |
'FoundationDetails' => array( 'structure', 'Foundation Details', 'String List, Multi' ), |
| 310 |
'FrontageLength' => array( 'exterior', 'Frontage Length', 'String' ), |
| 311 |
'FrontageType' => array( 'exterior', 'Frontage Type', 'String List, Multi' ), |
| 312 |
'FuelExpense' => array( 'financial', 'Fuel Expense', 'Number' ), |
| 313 |
'Furnished' => array( 'interior', 'Furnished', 'String List, Single' ), |
| 314 |
'FurnitureReplacementExpense' => array( 'financial', 'Furniture Replacement Expense', 'Number' ), |
| 315 |
'GarageSpaces' => array( 'exterior', 'Garage Spaces', 'Number' ), |
| 316 |
'GarageYN' => array( 'exterior', 'Garage Yes/No', 'Boolean' ), |
| 317 |
'GardenerExpense' => array( 'financial', 'Gardener Expense', 'Number' ), |
| 318 |
'GrazingPermitsBlmYN' => array( 'exterior', 'Grazing Permits BLM Yes/No', 'Boolean' ), |
| 319 |
'GrazingPermitsForestServiceYN' => array( 'exterior', 'Grazing Permits Forest Service Yes/No', 'Boolean' ), |
| 320 |
'GrazingPermitsPrivateYN' => array( 'exterior', 'Grazing Permits Private Yes/No', 'Boolean' ), |
| 321 |
'GreenBuildingVerificationType' => array( 'utilities', 'Green Building Verification Type', 'String List, Multi' ), |
| 322 |
'GreenEnergyEfficient' => array( 'utilities', 'Green Energy Efficient', 'String List, Multi' ), |
| 323 |
'GreenEnergyGeneration' => array( 'utilities', 'Green Energy Generation', 'String List, Multi' ), |
| 324 |
'GreenIndoorAirQuality' => array( 'utilities', 'Green Indoor Air Quality', 'String List, Multi' ), |
| 325 |
'GreenLocation' => array( 'utilities', 'Green Location', 'String List, Multi' ), |
| 326 |
'GreenSustainability' => array( 'utilities', 'Green Sustainability', 'String List, Multi' ), |
| 327 |
'GreenVerificationYN' => array( 'utilities', 'Green Verification Yes/No', 'Boolean' ), |
| 328 |
'GreenWaterConservation' => array( 'utilities', 'Green Water Conservation', 'String List, Multi' ), |
| 329 |
'GrossIncome' => array( 'financial', 'Gross Income', 'Number' ), |
| 330 |
'GrossLivingAreaAnsi' => array( 'interior', 'Gross Living Area ANSI', 'Number' ), |
| 331 |
'GrossScheduledIncome' => array( 'financial', 'Gross Scheduled Income', 'Number' ), |
| 332 |
'HabitableResidenceYN' => array( 'structure', 'Habitable Residence Yes/No', 'Boolean' ), |
| 333 |
'Heating' => array( 'interior', 'Heating', 'String List, Multi' ), |
| 334 |
'HeatingYN' => array( 'interior', 'Heating Yes/No', 'Boolean' ), |
| 335 |
'HighSchool' => array( 'schools', 'High School', 'String List, Single' ), |
| 336 |
'HighSchoolDistrict' => array( 'schools', 'High School District', 'String List, Single' ), |
| 337 |
'HomeWarrantyYN' => array( 'listing_info', 'Home Warranty Yes/No', 'Boolean' ), |
| 338 |
'HorseAmenities' => array( 'exterior', 'Horse Amenities', 'String List, Multi' ), |
| 339 |
'HorseYN' => array( 'exterior', 'Horse Yes/No', 'Boolean' ), |
| 340 |
'HoursDaysOfOperation' => array( 'listing_info', 'Hours/Days Of Operation', 'String List, Multi' ), |
| 341 |
'HoursDaysOfOperationDescription' => array( 'listing_info', 'Hours/Days Of Operation Description', 'String' ), |
| 342 |
'Inclusions' => array( 'listing_info', 'Inclusions', 'String' ), |
| 343 |
'IncomeIncludes' => array( 'financial', 'Income Includes', 'String List, Multi' ), |
| 344 |
'InsuranceExpense' => array( 'financial', 'Insurance Expense', 'Number' ), |
| 345 |
'InteriorFeatures' => array( 'interior', 'Interior Features', 'String List, Multi' ), |
| 346 |
'InternetAddressDisplayYN' => array( 'listing_info', 'Internet Address Display Yes/No', 'Boolean' ), |
| 347 |
'InternetAutomatedValuationDisplayYN' => array( 'listing_info', 'Internet Automated Valuation Display Yes/No', 'Boolean' ), |
| 348 |
'InternetConsumerCommentYN' => array( 'listing_info', 'Internet Consumer Comment Yes/No', 'Boolean' ), |
| 349 |
'InternetEntireListingDisplayYN' => array( 'listing_info', 'Internet Entire Listing Display Yes/No', 'Boolean' ), |
| 350 |
'IrrigationSource' => array( 'utilities', 'Irrigation Source', 'String List, Multi' ), |
| 351 |
'IrrigationWaterRightsAcres' => array( 'utilities', 'Irrigation Water Rights Acres', 'Number' ), |
| 352 |
'IrrigationWaterRightsYN' => array( 'utilities', 'Irrigation Water Rights Yes/No', 'Boolean' ), |
| 353 |
'LaborInformation' => array( 'listing_info', 'Labor Information', 'String List, Multi' ), |
| 354 |
'LandLeaseAmount' => array( 'financial', 'Land Lease Amount', 'Number' ), |
| 355 |
'LandLeaseAmountFrequency' => array( 'financial', 'Land Lease Amount Frequency', 'String List, Single' ), |
| 356 |
'LandLeaseExpirationDate' => array( 'financial', 'Land Lease Expiration Date', 'Date' ), |
| 357 |
'LandLeaseYN' => array( 'financial', 'Land Lease Yes/No', 'Boolean' ), |
| 358 |
'Latitude' => array( 'location', 'Latitude', 'Number' ), |
| 359 |
'LaundryFeatures' => array( 'interior', 'Laundry Features', 'String List, Multi' ), |
| 360 |
'LeasableArea' => array( 'structure', 'Leasable Area', 'Number' ), |
| 361 |
'LeasableAreaUnits' => array( 'structure', 'Leasable Area Units', 'String List, Single' ), |
| 362 |
'LeaseAmount' => array( 'listing_info', 'Lease Amount', 'Number' ), |
| 363 |
'LeaseAmountFrequency' => array( 'listing_info', 'Lease Amount Frequency', 'String List, Single' ), |
| 364 |
'LeaseAssignableYN' => array( 'listing_info', 'Lease Assignable Yes/No', 'Boolean' ), |
| 365 |
'LeaseConsideredYN' => array( 'listing_info', 'Lease Considered Yes/No', 'Boolean' ), |
| 366 |
'LeaseExpiration' => array( 'listing_info', 'Lease Expiration', 'Date' ), |
| 367 |
'LeaseRenewalCompensation' => array( 'listing_info', 'Lease Renewal Compensation', 'String List, Multi' ), |
| 368 |
'LeaseRenewalOptionYN' => array( 'listing_info', 'Lease Renewal Option Yes/No', 'Boolean' ), |
| 369 |
'LeaseTerm' => array( 'financial', 'Lease Term', 'String List, Single' ), |
| 370 |
'Levels' => array( 'interior', 'Levels', 'String List, Multi' ), |
| 371 |
'License1' => array( 'structure', 'License 1', 'String' ), |
| 372 |
'License2' => array( 'structure', 'License 2', 'String' ), |
| 373 |
'License3' => array( 'structure', 'License 3', 'String' ), |
| 374 |
'LicensesExpense' => array( 'financial', 'Licenses Expense', 'Number' ), |
| 375 |
'ListAOR' => array( 'listing_info', 'List AOR', 'String List, Single' ), |
| 376 |
'ListAgentAOR' => array( 'listing_info', 'List Agent AOR', 'String List, Single' ), |
| 377 |
'ListAgentDesignation' => array( 'listing_info', 'List Agent Designation', 'String List, Multi' ), |
| 378 |
'ListAgentDirectPhone' => array( 'listing_info', 'List Agent Direct Phone', 'String' ), |
| 379 |
'ListAgentEmail' => array( 'listing_info', 'List Agent Email', 'String' ), |
| 380 |
'ListAgentFax' => array( 'listing_info', 'List Agent Fax', 'String' ), |
| 381 |
'ListAgentFirstName' => array( 'listing_info', 'List Agent First Name', 'String' ), |
| 382 |
'ListAgentFullName' => array( 'listing_info', 'List Agent Full Name', 'String' ), |
| 383 |
'ListAgentHomePhone' => array( 'listing_info', 'List Agent Home Phone', 'String' ), |
| 384 |
'ListAgentKey' => array( 'listing_info', 'List Agent Key', 'String' ), |
| 385 |
'ListAgentLastName' => array( 'listing_info', 'List Agent Last Name', 'String' ), |
| 386 |
'ListAgentMiddleName' => array( 'listing_info', 'List Agent Middle Name', 'String' ), |
| 387 |
'ListAgentMlsId' => array( 'listing_info', 'List Agent MLS ID', 'String' ), |
| 388 |
'ListAgentMobilePhone' => array( 'listing_info', 'List Agent Mobile Phone', 'String' ), |
| 389 |
'ListAgentNamePrefix' => array( 'listing_info', 'List Agent Name Prefix', 'String' ), |
| 390 |
'ListAgentNameSuffix' => array( 'listing_info', 'List Agent Name Suffix', 'String' ), |
| 391 |
'ListAgentNationalAssociationId' => array( 'listing_info', 'List Agent National Association ID', 'String' ), |
| 392 |
'ListAgentOfficePhone' => array( 'listing_info', 'List Agent Office Phone', 'String' ), |
| 393 |
'ListAgentOfficePhoneExt' => array( 'listing_info', 'List Agent Office Phone Ext', 'String' ), |
| 394 |
'ListAgentPager' => array( 'listing_info', 'List Agent Pager', 'String' ), |
| 395 |
'ListAgentPreferredPhone' => array( 'listing_info', 'List Agent Preferred Phone', 'String' ), |
| 396 |
'ListAgentPreferredPhoneExt' => array( 'listing_info', 'List Agent Preferred Phone Ext', 'String' ), |
| 397 |
'ListAgentStateLicense' => array( 'listing_info', 'List Agent State License', 'String' ), |
| 398 |
'ListAgentTollFreePhone' => array( 'listing_info', 'List Agent Toll Free Phone', 'String' ), |
| 399 |
'ListAgentURL' => array( 'listing_info', 'List Agent URL', 'String' ), |
| 400 |
'ListAgentVoiceMail' => array( 'listing_info', 'List Agent Voice Mail', 'String' ), |
| 401 |
'ListAgentVoiceMailExt' => array( 'listing_info', 'List Agent Voice Mail Ext', 'String' ), |
| 402 |
'ListOfficeAOR' => array( 'listing_info', 'List Office AOR', 'String List, Single' ), |
| 403 |
'ListOfficeEmail' => array( 'listing_info', 'List Office Email', 'String' ), |
| 404 |
'ListOfficeFax' => array( 'listing_info', 'List Office Fax', 'String' ), |
| 405 |
'ListOfficeKey' => array( 'listing_info', 'List Office Key', 'String' ), |
| 406 |
'ListOfficeMlsId' => array( 'listing_info', 'List Office MLS ID', 'String' ), |
| 407 |
'ListOfficeName' => array( 'listing_info', 'List Office Name', 'String' ), |
| 408 |
'ListOfficeNationalAssociationId' => array( 'listing_info', 'List Office National Association ID', 'String' ), |
| 409 |
'ListOfficePhone' => array( 'listing_info', 'List Office Phone', 'String' ), |
| 410 |
'ListOfficePhoneExt' => array( 'listing_info', 'List Office Phone Ext', 'String' ), |
| 411 |
'ListOfficeURL' => array( 'listing_info', 'List Office URL', 'String' ), |
| 412 |
'ListPrice' => array( 'listing_info', 'List Price', 'Number' ), |
| 413 |
'ListPriceLow' => array( 'listing_info', 'List Price Low', 'Number' ), |
| 414 |
'ListTeamKey' => array( 'listing_info', 'List Team Key', 'String' ), |
| 415 |
'ListTeamName' => array( 'listing_info', 'List Team Name', 'String' ), |
| 416 |
'ListingAgreement' => array( 'listing_info', 'Listing Agreement', 'String List, Single' ), |
| 417 |
'ListingContractDate' => array( 'listing_info', 'Listing Contract Date', 'Date' ), |
| 418 |
'ListingId' => array( 'listing_info', 'Listing ID', 'String' ), |
| 419 |
'ListingKey' => array( 'listing_info', 'Listing Key', 'String' ), |
| 420 |
'ListingService' => array( 'listing_info', 'Listing Service', 'String List, Single' ), |
| 421 |
'ListingTerms' => array( 'listing_info', 'Listing Terms', 'String List, Multi' ), |
| 422 |
'ListingURL' => array( 'listing_info', 'Listing URL', 'String' ), |
| 423 |
'ListingURLDescription' => array( 'listing_info', 'Listing URL Description', 'String List, Single' ), |
| 424 |
'LivingArea' => array( 'interior', 'Living Area', 'Number' ), |
| 425 |
'LivingAreaSource' => array( 'interior', 'Living Area Source', 'String List, Single' ), |
| 426 |
'LivingAreaUnits' => array( 'interior', 'Living Area Units', 'String List, Single' ), |
| 427 |
'LockBoxLocation' => array( 'listing_info', 'Lock Box Location', 'String' ), |
| 428 |
'LockBoxSerialNumber' => array( 'listing_info', 'Lock Box Serial Number', 'String' ), |
| 429 |
'LockBoxType' => array( 'listing_info', 'Lock Box Type', 'String List, Multi' ), |
| 430 |
'Longitude' => array( 'location', 'Longitude', 'Number' ), |
| 431 |
'LotDimensionsSource' => array( 'exterior', 'Lot Dimensions Source', 'String List, Single' ), |
| 432 |
'LotFeatures' => array( 'exterior', 'Lot Features', 'String List, Multi' ), |
| 433 |
'LotSizeAcres' => array( 'exterior', 'Lot Size Acres', 'Number' ), |
| 434 |
'LotSizeArea' => array( 'exterior', 'Lot Size Area', 'Number' ), |
| 435 |
'LotSizeDimensions' => array( 'exterior', 'Lot Size Dimensions', 'String' ), |
| 436 |
'LotSizeSource' => array( 'exterior', 'Lot Size Source', 'String List, Single' ), |
| 437 |
'LotSizeSquareFeet' => array( 'exterior', 'Lot Size Square Feet', 'Number' ), |
| 438 |
'LotSizeUnits' => array( 'exterior', 'Lot Size Units', 'String List, Single' ), |
| 439 |
'MLSAreaMajor' => array( 'location', 'MLS Area Major', 'String List, Single' ), |
| 440 |
'MLSAreaMinor' => array( 'location', 'MLS Area Minor', 'String List, Single' ), |
| 441 |
'MainLevelBathrooms' => array( 'interior', 'Main Level Bathrooms', 'Number' ), |
| 442 |
'MainLevelBedrooms' => array( 'interior', 'Main Level Bedrooms', 'Number' ), |
| 443 |
'MaintenanceExpense' => array( 'financial', 'Maintenance Expense', 'Number' ), |
| 444 |
'MajorChangeTimestamp' => array( 'listing_info', 'Major Change Timestamp', 'Timestamp' ), |
| 445 |
'MajorChangeType' => array( 'listing_info', 'Major Change Type', 'String List, Single' ), |
| 446 |
'Make' => array( 'structure', 'Make', 'String' ), |
| 447 |
'ManagerExpense' => array( 'financial', 'Manager Expense', 'Number' ), |
| 448 |
'MapCoordinate' => array( 'location', 'Map Coordinate', 'String' ), |
| 449 |
'MapCoordinateSource' => array( 'location', 'Map Coordinate Source', 'String' ), |
| 450 |
'MapURL' => array( 'location', 'Map URL', 'String' ), |
| 451 |
'MiddleOrJuniorSchool' => array( 'schools', 'Middle Or Junior School', 'String List, Single' ), |
| 452 |
'MiddleOrJuniorSchoolDistrict' => array( 'schools', 'Middle Or Junior School District', 'String List, Single' ), |
| 453 |
'MlsStatus' => array( 'listing_info', 'MLS Status', 'String List, Single' ), |
| 454 |
'MobileDimUnits' => array( 'structure', 'Mobile Dimensions Units', 'String List, Single' ), |
| 455 |
'MobileHomeRemainsYN' => array( 'structure', 'Mobile Home Remains Yes/No', 'Boolean' ), |
| 456 |
'MobileLength' => array( 'structure', 'Mobile Length', 'Number' ), |
| 457 |
'MobileWidth' => array( 'structure', 'Mobile Width', 'Number' ), |
| 458 |
'Model' => array( 'structure', 'Model', 'String' ), |
| 459 |
'ModificationTimestamp' => array( 'listing_info', 'Modification Timestamp', 'Timestamp' ), |
| 460 |
'NetOperatingIncome' => array( 'financial', 'Net Operating Income', 'Number' ), |
| 461 |
'NewConstructionYN' => array( 'structure', 'New Construction Yes/No', 'Boolean' ), |
| 462 |
'NewTaxesExpense' => array( 'financial', 'New Taxes Expense', 'Number' ), |
| 463 |
'NumberOfBuildings' => array( 'structure', 'Number Of Buildings', 'Number' ), |
| 464 |
'NumberOfFullTimeEmployees' => array( 'listing_info', 'Number Of Full Time Employees', 'Number' ), |
| 465 |
'NumberOfLots' => array( 'structure', 'Number Of Lots', 'Number' ), |
| 466 |
'NumberOfPads' => array( 'structure', 'Number Of Pads', 'Number' ), |
| 467 |
'NumberOfPartTimeEmployees' => array( 'listing_info', 'Number Of Part Time Employees', 'Number' ), |
| 468 |
'NumberOfSeparateElectricMeters' => array( 'utilities', 'Number Of Separate Electric Meters', 'Number' ), |
| 469 |
'NumberOfSeparateGasMeters' => array( 'utilities', 'Number Of Separate Gas Meters', 'Number' ), |
| 470 |
'NumberOfSeparateWaterMeters' => array( 'utilities', 'Number Of Separate Water Meters', 'Number' ), |
| 471 |
'NumberOfUnitsInCommunity' => array( 'location', 'Number Of Units In Community', 'Number' ), |
| 472 |
'NumberOfUnitsLeased' => array( 'financial', 'Number Of Units Leased', 'Number' ), |
| 473 |
'NumberOfUnitsMoMo' => array( 'financial', 'Number Of Units Month To Month', 'Number' ), |
| 474 |
'NumberOfUnitsTotal' => array( 'structure', 'Number Of Units Total', 'Number' ), |
| 475 |
'NumberOfUnitsVacant' => array( 'financial', 'Number Of Units Vacant', 'Number' ), |
| 476 |
'OccupantName' => array( 'listing_info', 'Occupant Name', 'String' ), |
| 477 |
'OccupantPhone' => array( 'listing_info', 'Occupant Phone', 'String' ), |
| 478 |
'OccupantType' => array( 'listing_info', 'Occupant Type', 'String List, Single' ), |
| 479 |
'OffMarketDate' => array( 'listing_info', 'Off Market Date', 'Date' ), |
| 480 |
'OffMarketTimestamp' => array( 'listing_info', 'Off Market Timestamp', 'Timestamp' ), |
| 481 |
'OnMarketDate' => array( 'listing_info', 'On Market Date', 'Date' ), |
| 482 |
'OnMarketTimestamp' => array( 'listing_info', 'On Market Timestamp', 'Timestamp' ), |
| 483 |
'OpenHouseModificationTimestamp' => array( 'listing_info', 'Open House Modification Timestamp', 'Timestamp' ), |
| 484 |
'OpenParkingSpaces' => array( 'exterior', 'Open Parking Spaces', 'Number' ), |
| 485 |
'OpenParkingYN' => array( 'exterior', 'Open Parking Yes/No', 'Boolean' ), |
| 486 |
'OperatingExpense' => array( 'financial', 'Operating Expense', 'Number' ), |
| 487 |
'OperatingExpenseIncludes' => array( 'financial', 'Operating Expense Includes', 'String List, Multi' ), |
| 488 |
'OriginalEntryTimestamp' => array( 'listing_info', 'Original Entry Timestamp', 'Timestamp' ), |
| 489 |
'OriginalListPrice' => array( 'listing_info', 'Original List Price', 'Number' ), |
| 490 |
'OriginatingSystemID' => array( 'listing_info', 'Originating System ID', 'String' ), |
| 491 |
'OriginatingSystemKey' => array( 'listing_info', 'Originating System Key', 'String' ), |
| 492 |
'OriginatingSystemName' => array( 'listing_info', 'Originating System Name', 'String' ), |
| 493 |
'OtherEquipment' => array( 'interior', 'Other Equipment', 'String List, Multi' ), |
| 494 |
'OtherExpense' => array( 'financial', 'Other Expense', 'Number' ), |
| 495 |
'OtherParking' => array( 'exterior', 'Other Parking', 'String' ), |
| 496 |
'OtherStructures' => array( 'exterior', 'Other Structures', 'String List, Multi' ), |
| 497 |
'OwnerName' => array( 'listing_info', 'Owner Name', 'String' ), |
| 498 |
'OwnerPays' => array( 'financial', 'Owner Pays', 'String List, Multi' ), |
| 499 |
'OwnerPhone' => array( 'listing_info', 'Owner Phone', 'String' ), |
| 500 |
'Ownership' => array( 'listing_info', 'Ownership', 'String' ), |
| 501 |
'OwnershipType' => array( 'listing_info', 'Ownership Type', 'String List, Single' ), |
| 502 |
'ParcelNumber' => array( 'financial', 'Parcel Number', 'String' ), |
| 503 |
'ParkManagerName' => array( 'location', 'Park Manager Name', 'String' ), |
| 504 |
'ParkManagerPhone' => array( 'location', 'Park Manager Phone', 'String' ), |
| 505 |
'ParkName' => array( 'location', 'Park Name', 'String' ), |
| 506 |
'ParkingFeatures' => array( 'exterior', 'Parking Features', 'String List, Multi' ), |
| 507 |
'ParkingTotal' => array( 'exterior', 'Parking Total', 'Number' ), |
| 508 |
'PastureArea' => array( 'exterior', 'Pasture Area', 'Number' ), |
| 509 |
'PatioAndPorchFeatures' => array( 'exterior', 'Patio And Porch Features', 'String List, Multi' ), |
| 510 |
'PendingTimestamp' => array( 'listing_info', 'Pending Timestamp', 'Timestamp' ), |
| 511 |
'PestControlExpense' => array( 'financial', 'Pest Control Expense', 'Number' ), |
| 512 |
'PetsAllowed' => array( 'financial', 'Pets Allowed', 'String List, Multi' ), |
| 513 |
'PhotosChangeTimestamp' => array( 'listing_info', 'Photos Change Timestamp', 'Timestamp' ), |
| 514 |
'PhotosCount' => array( 'listing_info', 'Photos Count', 'Number' ), |
| 515 |
'PoolExpense' => array( 'financial', 'Pool Expense', 'Number' ), |
| 516 |
'PoolFeatures' => array( 'exterior', 'Pool Features', 'String List, Multi' ), |
| 517 |
'PoolPrivateYN' => array( 'exterior', 'Pool Private Yes/No', 'Boolean' ), |
| 518 |
'Possession' => array( 'listing_info', 'Possession', 'String List, Multi' ), |
| 519 |
'PossibleUse' => array( 'structure', 'Possible Use', 'String List, Multi' ), |
| 520 |
'PostalCity' => array( 'location', 'Postal City', 'String List, Single' ), |
| 521 |
'PostalCode' => array( 'location', 'Postal Code', 'String' ), |
| 522 |
'PostalCodePlus4' => array( 'location', 'Postal Code Plus4', 'String' ), |
| 523 |
'PowerProductionType' => array( 'utilities', 'Power Production Type', 'String List, Multi' ), |
| 524 |
'PowerProductionYN' => array( 'utilities', 'Power Production Yes/No', 'Boolean' ), |
| 525 |
'PreviousListPrice' => array( 'listing_info', 'Previous List Price', 'Number' ), |
| 526 |
'PriceChangeTimestamp' => array( 'listing_info', 'Price Change Timestamp', 'Timestamp' ), |
| 527 |
'PrivateOfficeRemarks' => array( 'listing_info', 'Private Office Remarks', 'String' ), |
| 528 |
'PrivateRemarks' => array( 'listing_info', 'Private Remarks', 'String' ), |
| 529 |
'ProfessionalManagementExpense' => array( 'financial', 'Professional Management Expense', 'Number' ), |
| 530 |
'PropertyAttachedYN' => array( 'structure', 'Property Attached Yes/No', 'Boolean' ), |
| 531 |
'PropertyCondition' => array( 'structure', 'Property Condition', 'String List, Multi' ), |
| 532 |
'PropertySubType' => array( 'listing_info', 'Property Sub Type', 'String List, Single' ), |
| 533 |
'PropertyTimeZoneName' => array( 'listing_info', 'Property Time Zone Name', 'String List, Single' ), |
| 534 |
'PropertyTimeZoneObservesDstYN' => array( 'listing_info', 'Property Time Zone Observes DST Yes/No', 'Boolean' ), |
| 535 |
'PropertyTimeZoneStandardOffset' => array( 'listing_info', 'Property Time Zone Standard Offset', 'Number' ), |
| 536 |
'PropertyType' => array( 'listing_info', 'Property Type', 'String List, Single' ), |
| 537 |
'PublicRemarks' => array( 'listing_info', 'Public Remarks', 'String' ), |
| 538 |
'PublicSurveyRange' => array( 'financial', 'Public Survey Range', 'String' ), |
| 539 |
'PublicSurveySection' => array( 'financial', 'Public Survey Section', 'String' ), |
| 540 |
'PublicSurveyTownship' => array( 'financial', 'Public Survey Township', 'String' ), |
| 541 |
'PurchaseContractDate' => array( 'listing_info', 'Purchase Contract Date', 'Date' ), |
| 542 |
'RVParkingDimensions' => array( 'exterior', 'RV Parking Dimensions', 'String' ), |
| 543 |
'RangeArea' => array( 'exterior', 'Range Area', 'Number' ), |
| 544 |
'RentControlYN' => array( 'financial', 'Rent Control Yes/No', 'Boolean' ), |
| 545 |
'RentIncludes' => array( 'financial', 'Rent Includes', 'String List, Multi' ), |
| 546 |
'RoadFrontageType' => array( 'exterior', 'Road Frontage Type', 'String List, Multi' ), |
| 547 |
'RoadResponsibility' => array( 'exterior', 'Road Responsibility', 'String List, Multi' ), |
| 548 |
'RoadSurfaceType' => array( 'exterior', 'Road Surface Type', 'String List, Multi' ), |
| 549 |
'Roof' => array( 'exterior', 'Roof', 'String List, Multi' ), |
| 550 |
'RoomType' => array( 'interior', 'Room Type', 'String List, Multi' ), |
| 551 |
'RoomsTotal' => array( 'interior', 'Rooms Total', 'Number' ), |
| 552 |
'SeatingCapacity' => array( 'listing_info', 'Seating Capacity', 'Number' ), |
| 553 |
'SecurityFeatures' => array( 'interior', 'Security Features', 'String List, Multi' ), |
| 554 |
'SeniorCommunityYN' => array( 'location', 'Senior Community Yes/No', 'Boolean' ), |
| 555 |
'SerialU' => array( 'structure', 'Serial U', 'String' ), |
| 556 |
'SerialX' => array( 'structure', 'Serial X', 'String' ), |
| 557 |
'SerialXX' => array( 'structure', 'Serial XX', 'String' ), |
| 558 |
'Sewer' => array( 'utilities', 'Sewer', 'String List, Multi' ), |
| 559 |
'ShowingAdvanceNotice' => array( 'listing_info', 'Showing Advance Notice', 'Number' ), |
| 560 |
'ShowingAttendedYN' => array( 'listing_info', 'Showing Attended Yes/No', 'Boolean' ), |
| 561 |
'ShowingConsiderations' => array( 'listing_info', 'Showing Considerations', 'String List, Multi' ), |
| 562 |
'ShowingContactName' => array( 'listing_info', 'Showing Contact Name', 'String' ), |
| 563 |
'ShowingContactPhone' => array( 'listing_info', 'Showing Contact Phone', 'String' ), |
| 564 |
'ShowingContactPhoneExt' => array( 'listing_info', 'Showing Contact Phone Ext', 'String' ), |
| 565 |
'ShowingContactType' => array( 'listing_info', 'Showing Contact Type', 'String List, Multi' ), |
| 566 |
'ShowingDays' => array( 'listing_info', 'Showing Days', 'String List, Multi' ), |
| 567 |
'ShowingEndTime' => array( 'listing_info', 'Showing End Time', 'Timestamp' ), |
| 568 |
'ShowingInstructions' => array( 'listing_info', 'Showing Instructions', 'String' ), |
| 569 |
'ShowingRequirements' => array( 'listing_info', 'Showing Requirements', 'String List, Multi' ), |
| 570 |
'ShowingServiceName' => array( 'listing_info', 'Showing Service Name', 'String List, Single' ), |
| 571 |
'ShowingStartTime' => array( 'listing_info', 'Showing Start Time', 'Timestamp' ), |
| 572 |
'SignOnPropertyYN' => array( 'listing_info', 'Sign On Property Yes/No', 'Boolean' ), |
| 573 |
'SimpleDaysOnMarket' => array( 'listing_info', 'Simple Days on Market', 'Number' ), |
| 574 |
'Skirt' => array( 'structure', 'Skirt', 'String List, Multi' ), |
| 575 |
'SourceSystemID' => array( 'listing_info', 'Source System ID', 'String' ), |
| 576 |
'SourceSystemKey' => array( 'listing_info', 'Source System Key', 'String' ), |
| 577 |
'SourceSystemName' => array( 'listing_info', 'Source System Name', 'String' ), |
| 578 |
'SpaFeatures' => array( 'interior', 'Spa Features', 'String List, Multi' ), |
| 579 |
'SpaYN' => array( 'interior', 'Spa Yes/No', 'Boolean' ), |
| 580 |
'SpecialLicenses' => array( 'listing_info', 'Special Licenses', 'String List, Multi' ), |
| 581 |
'SpecialListingConditions' => array( 'listing_info', 'Special Listing Conditions', 'String List, Multi' ), |
| 582 |
'StandardStatus' => array( 'listing_info', 'Standard Status', 'String List, Single' ), |
| 583 |
'StartShowingDate' => array( 'listing_info', 'Start Showing Date', 'Date' ), |
| 584 |
'StateOrProvince' => array( 'location', 'State Or Province', 'String List, Single' ), |
| 585 |
'StateRegion' => array( 'location', 'State Region', 'String' ), |
| 586 |
'StatusChangeTimestamp' => array( 'listing_info', 'Status Change Timestamp', 'Timestamp' ), |
| 587 |
'Stories' => array( 'structure', 'Stories', 'Number' ), |
| 588 |
'StoriesTotal' => array( 'structure', 'Stories Total', 'Number' ), |
| 589 |
'StreetAdditionalInfo' => array( 'location', 'Street Additional Info', 'String' ), |
| 590 |
'StreetDirPrefix' => array( 'location', 'Street Direction Prefix', 'String List, Single' ), |
| 591 |
'StreetDirSuffix' => array( 'location', 'Street Direction Suffix', 'String List, Single' ), |
| 592 |
'StreetName' => array( 'location', 'Street Name', 'String' ), |
| 593 |
'StreetNumber' => array( 'location', 'Street Number', 'String' ), |
| 594 |
'StreetNumberNumeric' => array( 'location', 'Street Number Numeric', 'Number' ), |
| 595 |
'StreetSuffix' => array( 'location', 'Street Suffix', 'String List, Single' ), |
| 596 |
'StreetSuffixModifier' => array( 'location', 'Street Suffix Modifier', 'String' ), |
| 597 |
'StructureType' => array( 'structure', 'Structure Type', 'String List, Multi' ), |
| 598 |
'SubAgencyCompensation' => array( 'listing_info', 'Sub Agency Compensation', 'String' ), |
| 599 |
'SubAgencyCompensationType' => array( 'listing_info', 'Sub Agency Compensation Type', 'String List, Single' ), |
| 600 |
'SubdivisionName' => array( 'location', 'Subdivision Name', 'String' ), |
| 601 |
'SuppliesExpense' => array( 'financial', 'Supplies Expense', 'Number' ), |
| 602 |
'SyndicateTo' => array( 'listing_info', 'Syndicate To', 'String List, Multi' ), |
| 603 |
'SyndicationRemarks' => array( 'listing_info', 'Syndication Remarks', 'String' ), |
| 604 |
'TaxAnnualAmount' => array( 'financial', 'Tax Annual Amount', 'Number' ), |
| 605 |
'TaxAnnualAmountPerLivingAreaUnit' => array( 'financial', 'Tax Annual Amount Per Living Area Unit', 'Number' ), |
| 606 |
'TaxAnnualAmountPerSquareFoot' => array( 'financial', 'Tax Annual Amount Per Square Foot', 'Number' ), |
| 607 |
'TaxAssessedValue' => array( 'financial', 'Tax Assessed Value', 'Number' ), |
| 608 |
'TaxBlock' => array( 'financial', 'Tax Block', 'String' ), |
| 609 |
'TaxBookNumber' => array( 'financial', 'Tax Book Number', 'String' ), |
| 610 |
'TaxLegalDescription' => array( 'financial', 'Tax Legal Description', 'String' ), |
| 611 |
'TaxLot' => array( 'financial', 'Tax Lot', 'String' ), |
| 612 |
'TaxMapNumber' => array( 'financial', 'Tax Map Number', 'String' ), |
| 613 |
'TaxOtherAnnualAssessmentAmount' => array( 'financial', 'Tax Other Annual Assessment Amount', 'Number' ), |
| 614 |
'TaxParcelLetter' => array( 'financial', 'Tax Parcel Letter', 'String' ), |
| 615 |
'TaxStatusCurrent' => array( 'financial', 'Tax Status Current', 'String List, Multi' ), |
| 616 |
'TaxTract' => array( 'financial', 'Tax Tract', 'String' ), |
| 617 |
'TaxYear' => array( 'financial', 'Tax Year', 'Number' ), |
| 618 |
'TenantPays' => array( 'financial', 'Tenant Pays', 'String List, Multi' ), |
| 619 |
'Topography' => array( 'exterior', 'Topography', 'String' ), |
| 620 |
'TotalActualRent' => array( 'financial', 'Total Actual Rent', 'Number' ), |
| 621 |
'Township' => array( 'location', 'Township', 'String' ), |
| 622 |
'TransactionBrokerCompensation' => array( 'listing_info', 'Transaction Broker Compensation', 'String' ), |
| 623 |
'TransactionBrokerCompensationType' => array( 'listing_info', 'Transaction Broker Compensation Type', 'String List, Single' ), |
| 624 |
'TrashExpense' => array( 'financial', 'Trash Expense', 'Number' ), |
| 625 |
'UnitNumber' => array( 'location', 'Unit Number', 'String' ), |
| 626 |
'UnitTypeType' => array( 'structure', 'Unit Type Type', 'String List, Multi' ), |
| 627 |
'UnitsFurnished' => array( 'interior', 'Units Furnished', 'String List, Single' ), |
| 628 |
'UniversalPropertyId' => array( 'listing_info', 'Universal Property ID', 'String' ), |
| 629 |
'UniversalPropertySubId' => array( 'listing_info', 'Universal Property Sub ID', 'String' ), |
| 630 |
'UnparsedAddress' => array( 'location', 'Unparsed Address', 'String' ), |
| 631 |
'Utilities' => array( 'utilities', 'Utilities', 'String List, Multi' ), |
| 632 |
'VacancyAllowance' => array( 'financial', 'Vacancy Allowance', 'Number' ), |
| 633 |
'VacancyAllowanceRate' => array( 'financial', 'Vacancy Allowance Rate', 'Number' ), |
| 634 |
'Vegetation' => array( 'exterior', 'Vegetation', 'String List, Multi' ), |
| 635 |
'VideosChangeTimestamp' => array( 'listing_info', 'Videos Change Timestamp', 'Timestamp' ), |
| 636 |
'VideosCount' => array( 'listing_info', 'Videos Count', 'Number' ), |
| 637 |
'View' => array( 'exterior', 'View', 'String List, Multi' ), |
| 638 |
'ViewYN' => array( 'exterior', 'View Yes/No', 'Boolean' ), |
| 639 |
'VirtualTourURLBranded' => array( 'listing_info', 'Virtual Tour URL Branded', 'String' ), |
| 640 |
'VirtualTourURLUnbranded' => array( 'listing_info', 'Virtual Tour URL Unbranded', 'String' ), |
| 641 |
'WalkScore' => array( 'utilities', 'Walk Score', 'Number' ), |
| 642 |
'WaterBodyName' => array( 'exterior', 'Water Body Name', 'String' ), |
| 643 |
'WaterSewerExpense' => array( 'financial', 'Water Sewer Expense', 'Number' ), |
| 644 |
'WaterSource' => array( 'utilities', 'Water Source', 'String List, Multi' ), |
| 645 |
'WaterfrontFeatures' => array( 'exterior', 'Waterfront Features', 'String List, Multi' ), |
| 646 |
'WaterfrontYN' => array( 'exterior', 'Waterfront Yes/No', 'Boolean' ), |
| 647 |
'WindowFeatures' => array( 'interior', 'Window Features', 'String List, Multi' ), |
| 648 |
'WithdrawnDate' => array( 'listing_info', 'Withdrawn Date', 'Date' ), |
| 649 |
'WoodedArea' => array( 'exterior', 'Wooded Area', 'Number' ), |
| 650 |
'WorkmansCompensationExpense' => array( 'financial', 'Workmans Compensation Expense', 'Number' ), |
| 651 |
'YearBuilt' => array( 'structure', 'Year Built', 'Number' ), |
| 652 |
'YearBuiltDetails' => array( 'structure', 'Year Built Details', 'String' ), |
| 653 |
'YearBuiltEffective' => array( 'structure', 'Year Built Effective', 'Number' ), |
| 654 |
'YearBuiltSource' => array( 'structure', 'Year Built Source', 'String List, Single' ), |
| 655 |
'YearEstablished' => array( 'listing_info', 'Year Established', 'Number' ), |
| 656 |
'YearsCurrentOwner' => array( 'listing_info', 'Years Current Owner', 'Number' ), |
| 657 |
'Zoning' => array( 'financial', 'Zoning', 'String' ), |
| 658 |
'ZoningDescription' => array( 'financial', 'Zoning Description', 'String' ), |
| 659 |
); |
| 660 |
|
| 661 |
/** |
| 662 |
* A RESO field's type, or '' when the field is not in the dictionary. |
| 663 |
* |
| 664 |
* @param string $field RESO field key. |
| 665 |
* @return string |
| 666 |
*/ |
| 667 |
public static function type_of( string $field ): string { |
| 668 |
return isset( self::MAP[ $field ] ) ? self::MAP[ $field ][2] : ''; |
| 669 |
} |
| 670 |
|
| 671 |
/** |
| 672 |
* Every mapped RESO field, in map order — the curated order the field |
| 673 |
* selector's drag order is seeded from. |
| 674 |
* |
| 675 |
* @return string[] |
| 676 |
*/ |
| 677 |
public static function fields_in_map_order(): array { |
| 678 |
return array_keys( self::MAP ); |
| 679 |
} |
| 680 |
|
| 681 |
/** |
| 682 |
* Whether a field is plumbing: imported because the plugin needs it (sync, |
| 683 |
* mapping, display rules), but meaningless to a visitor as a label-value row. |
| 684 |
* |
| 685 |
* Drives only the admin-only DEFAULT on a fresh install — never a hard rule. |
| 686 |
* A site owner can make any of these public by un-ticking the box. |
| 687 |
* |
| 688 |
* @param string $field RESO field key. |
| 689 |
* @return bool |
| 690 |
*/ |
| 691 |
public static function is_plumbing( string $field ): bool { |
| 692 |
// Record keys: "Listing Key: 3yd-MFRMLSFL-A4512345" tells a buyer nothing. |
| 693 |
if ( 'Key' === substr( $field, -3 ) || 'KeyNumeric' === substr( $field, -10 ) ) { |
| 694 |
return true; |
| 695 |
} |
| 696 |
// Sync bookkeeping — the property page shows "Updated" from the view model. |
| 697 |
if ( 'Timestamp' === self::type_of( $field ) ) { |
| 698 |
return true; |
| 699 |
} |
| 700 |
// Raw URLs; the tour/agent sections render these properly. |
| 701 |
if ( false !== strpos( $field, 'URL' ) ) { |
| 702 |
return true; |
| 703 |
} |
| 704 |
// IDX display-permission flags, and the map/media plumbing. |
| 705 |
if ( 0 === strpos( $field, 'Internet' ) && 'YN' === substr( $field, -2 ) ) { |
| 706 |
return true; |
| 707 |
} |
| 708 |
|
| 709 |
return in_array( |
| 710 |
$field, |
| 711 |
array( |
| 712 |
'Latitude', |
| 713 |
'Longitude', |
| 714 |
'PhotosCount', |
| 715 |
'DocumentsCount', |
| 716 |
'SourceSystemID', |
| 717 |
'SourceSystemName', |
| 718 |
'OriginatingSystemID', |
| 719 |
'OriginatingSystemName', |
| 720 |
), |
| 721 |
true |
| 722 |
); |
| 723 |
} |
| 724 |
|
| 725 |
/** |
| 726 |
* The section a RESO field belongs to. |
| 727 |
* |
| 728 |
* @param string $field RESO field key. |
| 729 |
* @return string Section slug; 'other' for fields outside the dictionary. |
| 730 |
*/ |
| 731 |
public static function section_of( string $field ): string { |
| 732 |
// Look the field up in the dictionary; unmapped (proprietary) fields fall back to 'other'. |
| 733 |
$section = isset( self::MAP[ $field ] ) ? self::MAP[ $field ][0] : 'other'; |
| 734 |
|
| 735 |
/** Filter the section a RESO field belongs to — the one way to move an MLS's proprietary fields out of Other Details. @since 6.4 */ |
| 736 |
return (string) apply_filters( 'mlsimport_property_field_section', $section, $field ); |
| 737 |
} |
| 738 |
|
| 739 |
/** |
| 740 |
* A RESO field's official display label, or '' when the field is not in the |
| 741 |
* dictionary. |
| 742 |
* |
| 743 |
* @param string $field RESO field key. |
| 744 |
* @return string |
| 745 |
*/ |
| 746 |
public static function label_of( string $field ): string { |
| 747 |
if ( ! isset( self::MAP[ $field ] ) ) { |
| 748 |
return ''; |
| 749 |
} |
| 750 |
|
| 751 |
// RESO labels every flag "<Thing> Yes/No" (all 44 Booleans, exactly). We only |
| 752 |
// ever print a flag when it is true, so the suffix is dead weight: "Spa: Yes", |
| 753 |
// not "Spa Yes/No: Yes". |
| 754 |
$label = self::MAP[ $field ][1]; |
| 755 |
$suffix = ' Yes/No'; |
| 756 |
if ( substr( $label, -strlen( $suffix ) ) === $suffix ) { |
| 757 |
$label = substr( $label, 0, -strlen( $suffix ) ); |
| 758 |
} |
| 759 |
|
| 760 |
return $label; |
| 761 |
} |
| 762 |
} |
| 763 |
|
| 764 |
/** |
| 765 |
* A RESO field key as a human label — the fallback for proprietary fields, which |
| 766 |
* are not in the dictionary and so have no official label. Splits PascalCase on |
| 767 |
* the lower->upper and acronym->word boundaries, so ViewYN stays "View YN" and |
| 768 |
* MLSAreaMajor becomes "MLS Area Major". |
| 769 |
* |
| 770 |
* @param string $field_key RESO field key. |
| 771 |
* @return string |
| 772 |
*/ |
| 773 |
function mlsimport_humanize_field_key( string $field_key ): string { |
| 774 |
$spaced = preg_replace( '/(?<=[a-z0-9])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/', ' ', $field_key ); |
| 775 |
return trim( (string) $spaced ); |
| 776 |
} |
| 777 |
|
| 778 |
/** |
| 779 |
* A field's public label: the user's "Front End Label" when set, else RESO's |
| 780 |
* official label, else the humanized key. |
| 781 |
* |
| 782 |
* @param string $field RESO field key. |
| 783 |
* @param array $labels The mls-fields-label option array. |
| 784 |
* @return string |
| 785 |
*/ |
| 786 |
function mlsimport_property_field_label( string $field, array $labels ): string { |
| 787 |
// 1) The operator's own "Front End Label" override, when set, wins. |
| 788 |
$user = isset( $labels[ $field ] ) ? trim( (string) $labels[ $field ] ) : ''; |
| 789 |
if ( '' !== $user ) { |
| 790 |
return $user; |
| 791 |
} |
| 792 |
|
| 793 |
// 2) Else RESO's official label; 3) else the humanized field key. |
| 794 |
$reso = Mlsimport_Property_Field_Sections::label_of( $field ); |
| 795 |
return '' !== $reso ? $reso : mlsimport_humanize_field_key( $field ); |
| 796 |
} |
| 797 |
|
| 798 |
/** |
| 799 |
* One section's rows as [label, value] pairs. |
| 800 |
* |
| 801 |
* A field appears when it is ticked for import, not marked admin-only, and has |
| 802 |
* a value — the one rule that governs every section. |
| 803 |
* |
| 804 |
* @param int $id Property post ID. |
| 805 |
* @param string $section Section slug. |
| 806 |
* @return array<int,array{0:string,1:string}> |
| 807 |
*/ |
| 808 |
function mlsimport_property_section_fields( int $id, string $section ): array { |
| 809 |
$options = mlsimport_active_field_configuration(); |
| 810 |
if ( ! is_array( $options ) || empty( $options['mls-fields'] ) || ! is_array( $options['mls-fields'] ) ) { |
| 811 |
return array(); |
| 812 |
} |
| 813 |
|
| 814 |
$labels = isset( $options['mls-fields-label'] ) && is_array( $options['mls-fields-label'] ) ? $options['mls-fields-label'] : array(); |
| 815 |
$hidden = isset( $options['mls-fields-admin'] ) && is_array( $options['mls-fields-admin'] ) ? $options['mls-fields-admin'] : array(); |
| 816 |
$rows = array(); |
| 817 |
|
| 818 |
$fields = mlsimport_property_fields_in_order( $options ); |
| 819 |
|
| 820 |
foreach ( $fields as $field => $is_imported ) { |
| 821 |
if ( 1 !== (int) $is_imported || ! empty( $hidden[ $field ] ) ) { |
| 822 |
continue; |
| 823 |
} |
| 824 |
if ( Mlsimport_Property_Field_Sections::section_of( $field ) !== $section ) { |
| 825 |
continue; |
| 826 |
} |
| 827 |
|
| 828 |
$value = mlsimport_property_field_value( $id, $field ); |
| 829 |
if ( '' === $value ) { |
| 830 |
continue; |
| 831 |
} |
| 832 |
|
| 833 |
$value = mlsimport_property_field_display( $field, $value ); |
| 834 |
if ( '' === $value ) { |
| 835 |
continue; // A false flag: suppressed rather than printed as "No". |
| 836 |
} |
| 837 |
|
| 838 |
$rows[] = array( mlsimport_property_field_label( $field, $labels ), $value ); |
| 839 |
} |
| 840 |
|
| 841 |
return $rows; |
| 842 |
} |
| 843 |
|
| 844 |
/** |
| 845 |
* Seed the field selector's defaults from the section map, once — the drag order, |
| 846 |
* and which fields are hidden from visitors. |
| 847 |
* |
| 848 |
* Order: the MLS's own field order is arbitrary (BrightMLS opens with Location, |
| 849 |
* BuyerAgentMlsId, BuyerAgentCellPhone), so an unseeded install would print |
| 850 |
* Interior with flooring before bedrooms. The seed groups fields by section and |
| 851 |
* orders them within it, putting proprietary fields last (they render in Other |
| 852 |
* Details anyway). |
| 853 |
* |
| 854 |
* Visibility: the plumbing fields (keys, timestamps, coordinates, URLs, display |
| 855 |
* flags) are ticked for import because the plugin needs them, but they are |
| 856 |
* gibberish in a details grid — "Listing Key: 3yd-MFRMLSFL-A4512345". They start |
| 857 |
* admin-only so a new client never has to think about them. This is a default, |
| 858 |
* not a rule: un-tick the box and the field is public. |
| 859 |
* |
| 860 |
* Runs only on the first save, when there is no order yet. A configured site is |
| 861 |
* never rewritten — not by a later, better map, and not over a field the user |
| 862 |
* deliberately made public. |
| 863 |
* |
| 864 |
* @param array $options The mlsimport_admin_fields_select option. |
| 865 |
* @return array The option, seeded when it had not been before. |
| 866 |
*/ |
| 867 |
function mlsimport_seed_field_defaults( array $options ): array { |
| 868 |
if ( ! empty( $options['field_order'] ) || empty( $options['mls-fields'] ) || ! is_array( $options['mls-fields'] ) ) { |
| 869 |
return $options; |
| 870 |
} |
| 871 |
|
| 872 |
$admin = isset( $options['mls-fields-admin'] ) && is_array( $options['mls-fields-admin'] ) ? $options['mls-fields-admin'] : array(); |
| 873 |
foreach ( array_keys( $options['mls-fields'] ) as $field ) { |
| 874 |
$admin[ $field ] = Mlsimport_Property_Field_Sections::is_plumbing( (string) $field ) ? 1 : 0; |
| 875 |
} |
| 876 |
$options['mls-fields-admin'] = $admin; |
| 877 |
|
| 878 |
$sections = array_keys( mlsimport_property_field_section_titles() ); |
| 879 |
$known = Mlsimport_Property_Field_Sections::fields_in_map_order(); |
| 880 |
|
| 881 |
$ranked = array(); |
| 882 |
foreach ( array_keys( $options['mls-fields'] ) as $field ) { |
| 883 |
$section = Mlsimport_Property_Field_Sections::section_of( (string) $field ); |
| 884 |
$bucket = array_search( $section, $sections, true ); |
| 885 |
$within = array_search( $field, $known, true ); |
| 886 |
|
| 887 |
// A proprietary field is in no section and no map: it sorts to the very end. |
| 888 |
$ranked[ $field ] = array( |
| 889 |
false === $bucket ? PHP_INT_MAX : $bucket, |
| 890 |
false === $within ? PHP_INT_MAX : $within, |
| 891 |
); |
| 892 |
} |
| 893 |
|
| 894 |
uasort( |
| 895 |
$ranked, |
| 896 |
static function ( $a, $b ) { |
| 897 |
return $a[0] === $b[0] ? $a[1] <=> $b[1] : $a[0] <=> $b[0]; |
| 898 |
} |
| 899 |
); |
| 900 |
|
| 901 |
$options['field_order'] = array_combine( |
| 902 |
array_keys( $ranked ), |
| 903 |
range( 0, count( $ranked ) - 1 ) |
| 904 |
); |
| 905 |
|
| 906 |
return $options; |
| 907 |
} |
| 908 |
|
| 909 |
/** |
| 910 |
* The selected fields in display order — the field selector's drag order, which |
| 911 |
* the user owns. Fields the user never dragged keep their existing position, |
| 912 |
* after the ones they did. |
| 913 |
* |
| 914 |
* @param array $options The mlsimport_admin_fields_select option. |
| 915 |
* @return array<string,mixed> field => imported flag, in display order. |
| 916 |
*/ |
| 917 |
function mlsimport_property_fields_in_order( array $options ): array { |
| 918 |
$fields = $options['mls-fields']; |
| 919 |
// No saved drag order yet: return the fields in their stored order untouched. |
| 920 |
if ( empty( $options['field_order'] ) || ! is_array( $options['field_order'] ) ) { |
| 921 |
return $fields; |
| 922 |
} |
| 923 |
|
| 924 |
// Sort the field => position map by position (ascending) to get drag order. |
| 925 |
$order = $options['field_order']; |
| 926 |
asort( $order ); |
| 927 |
|
| 928 |
// Emit the ordered fields first, keeping only those still selected for import. |
| 929 |
$sorted = array(); |
| 930 |
foreach ( $order as $field => $index ) { |
| 931 |
if ( isset( $fields[ $field ] ) ) { |
| 932 |
$sorted[ $field ] = $fields[ $field ]; |
| 933 |
} |
| 934 |
} |
| 935 |
|
| 936 |
// Union appends any never-dragged field after the ordered ones (first key wins). |
| 937 |
return $sorted + $fields; |
| 938 |
} |
| 939 |
|
| 940 |
/** |
| 941 |
* Whether a stored RESO boolean reads as true. MLSes serve these as 1, "true", |
| 942 |
* "Y" or "Yes"; anything else is false. |
| 943 |
* |
| 944 |
* @param string $value Stored value. |
| 945 |
* @return bool |
| 946 |
*/ |
| 947 |
function mlsimport_property_field_is_true( string $value ): bool { |
| 948 |
return in_array( strtolower( trim( $value ) ), array( '1', 'true', 'y', 'yes' ), true ); |
| 949 |
} |
| 950 |
|
| 951 |
/** |
| 952 |
* A stored RESO value as it reads on the page, formatted by its type. |
| 953 |
* |
| 954 |
* Returns '' for a false flag — the caller drops the row, because "Has Spa: No" |
| 955 |
* is noise. Multi-value lists arrive already comma-joined by the importer, and |
| 956 |
* proprietary fields (no type) print as they were stored. |
| 957 |
* |
| 958 |
* @param string $field RESO field key. |
| 959 |
* @param string $value Stored value. |
| 960 |
* @return string Display value, or '' when the field earns no row. |
| 961 |
*/ |
| 962 |
function mlsimport_property_field_display( string $field, string $value ): string { |
| 963 |
switch ( Mlsimport_Property_Field_Sections::type_of( $field ) ) { |
| 964 |
case 'Boolean': |
| 965 |
return mlsimport_property_field_is_true( $value ) ? __( 'Yes', 'mlsimport' ) : ''; |
| 966 |
|
| 967 |
case 'Number': |
| 968 |
if ( ! is_numeric( $value ) ) { |
| 969 |
return $value; |
| 970 |
} |
| 971 |
// A year is a label, not a quantity: 1998, never 1,998. |
| 972 |
if ( false !== strpos( $field, 'Year' ) ) { |
| 973 |
return $value; |
| 974 |
} |
| 975 |
return number_format_i18n( (float) $value + 0 ); |
| 976 |
|
| 977 |
case 'Date': |
| 978 |
case 'Timestamp': |
| 979 |
$stamp = strtotime( $value ); |
| 980 |
return $stamp ? date_i18n( (string) get_option( 'date_format' ), $stamp ) : $value; |
| 981 |
} |
| 982 |
|
| 983 |
return $value; |
| 984 |
} |
| 985 |
|
| 986 |
/** |
| 987 |
* A RESO field's stored value for one property. |
| 988 |
* |
| 989 |
* Code-mapped fields land in mlsimport_<Field>; fields the routing map does not |
| 990 |
* recognise pass through to mlsimport_x_<Field>. One lookup covers both. |
| 991 |
* |
| 992 |
* @param int $id Property post ID. |
| 993 |
* @param string $field RESO field key. |
| 994 |
* @return string |
| 995 |
*/ |
| 996 |
function mlsimport_property_field_value( int $id, string $field ): string { |
| 997 |
$value = (string) get_post_meta( $id, 'mlsimport_' . $field, true ); |
| 998 |
if ( '' === $value ) { |
| 999 |
$value = (string) get_post_meta( $id, 'mlsimport_x_' . $field, true ); |
| 1000 |
} |
| 1001 |
return $value; |
| 1002 |
} |
| 1003 |
|