Class HashMap
Methods summary
public static
array|boolean
|
|
public static
|
|
public static
mixed
|
#
getLowCase( $hashMap )
Storing hashmaps with lowercase values in a static variable to avoid using array_map('strtolower', $hashMap) This improves speed almost twice. |
public static
|
|
public static
|
Properties summary
public static
array
|
$filters
Map of old filers to new ones |
#
array(
'mls' => 'market',
'property_type' => 'listingType',
'property_subtype' => 'propertyType',
'agent_id' => 'agentId',
'list_office_id' => 'officeId',
'beds_total' => 'beds',
'baths_total' => 'baths',
'listing_id' => 'id',
'price' => 'listPrice',
'lease_price' => 'listPrice',
'living_area' => 'size',
'city' => 'city',
'state_province' => 'state',
'county' => 'county',
'school_district' => 'schoolDistrict',
'school_elementary' => 'elementarySchool',
'school_high' => 'highSchool',
'school_middle_junior' => 'middleSchool',
'school' => 'school',
'building_size' => 'size',
'lot_size_acres' => 'lotSize',
'status' => 'status',
'postal_code' => 'zip',
'property_description' => 'description',
'state_province' => 'state',
'subdivision' => 'subdivision',
'area' => 'area',
'year_built' => 'yearBuilt',
'sale_type' => 'distressed',
'dom' => 'daysOnMarket',
'daysonhji' => 'daysOnHJI',
'distressed' => 'distressed',
'open_house_date' => 'openHouse',
'keyword' => 'keyword',
'sortby' => 'sortField',
'order' => 'sortOrder',
'limit' => 'pageSize',
)
|
public static
array
|
$fields
|
#
array(
'property_type' => 'listingType',
'property_subtype' => 'propertyType',
'agent_id' => 'listingAgent_id',
'agent_name' => 'listingAgent_name',
'agent_phone' => 'listingAgent_phone',
'agent_email' => 'listingAgent_email',
'beds_total' => 'beds',
'baths_total' => 'baths_total',
'full_baths' => 'baths_full',
'half_baths' => 'baths_half',
'listing_id' => 'id',
'price' => 'listPrice',
'lease_price' => 'listPrice',
'listPrice' => 'listPrice',
'salePrice' => 'salePrice',
'lease_length' => 'lease_length', // ?
'living_area' => 'size',
'city' => 'address_city',
'state_province' => 'address_state',
'county' => 'address_county',
'school_district' => 'school_district',
'school_elementary' => 'school_elementary',
'school_high' => 'school_high',
'school_middle_junior' => 'school_middle',
'school' => 'school',
'latitude' => 'coordinates_latitude',
'longitude' => 'coordinates_longitude',
'list_office_id' => 'listingOffice_id',
'list_office_name' => 'listingOffice_name',
'list_office_phone' => 'listingOffice_phone',
'building_size' => 'size',
'building_name' => 'buildingName',
'lot_size_acres' => 'lotSize_acres',
'lot_size_sq_ft' => 'lotSize_sqft',
'status' => 'status',
'photos' => 'images',
'postal_code' => 'address_zip',
'property_description' => 'description',
'state_province' => 'state',
'unit_cnt' => 'units',
'subdivision' => 'subdivision',
'area' => 'area',
'address' => 'address',
'year_built' => 'yearBuilt',
'sale_type' => 'distressed',
'dom' => 'daysOnHJI',
'distressed' => 'distressed',
'virtual_tour_url' => 'tourURL',
'open_house_date' => 'openHouse_date',
'open_house_times' => 'openHouse_time',
'openhouse' => 'openHouse',
'last_updated' => 'lastUpdated',
'keyword' => 'keyword',
'sortby' => 'sortField',
)
|