Property Base

PB_SECURITYTOKEN,
“fields” => “name;pba__ListingPrice_pb__c;pba__PropertyType__c;pba__Bedrooms_pb__c;pba__TotalArea_pb__c;pba__Description_pb__c”,
“itemsperpage” => “6”,
“pba__Status__c” => “Active”,
“page” => $page ,
“id” => $_GET[‘id’],
“orderby” => “pba__ListingPrice_pb__c;ASC”,
“recordtypes” => “Sale”,
“debugmode” => “true”
);

if (!empty($reference)) $reqArray[“name”] = ‘%’ . $reference . ‘%’;
if (!empty($priceParam)) $reqArray[“pba__ListingPrice_pb__c”] = $priceParam;
if (!empty($size_from)) $reqArray[“pba__TotalArea_pb__c”] = $sizeParam;
if (!empty($default_bedrooms_from)) $reqArray[“pba__Bedrooms_pb__c”] = $bedsParam;

$query = http_build_query($reqArray,”,’&’);
//echo $query;

$xmlResult = simplexml_load_file(PB_WEBSERVICEENDPOINT . “?” . $query);

if (!empty($xmlResult->Error)) {
$errorMessage = $xmlResult->Error;
} else {
$previousPage = $page > 0 ? $page – 1 : null;
$nextPage = ($xmlResult->listingsPerPage * ($page+1) < $xmlResult->numberOfListings) ? $page + 1 : null;
}

?>




 

 
 
 

listings->listing) == 0)): ?>

no listings found:

    • Price: $data->pba__listingprice_pb__c); ?>
    • Beds: data->pba__bedrooms_pb__c; ?>
    • Type: data->pba__propertytype__c; ?>
    • Sqm: data->pba__totalarea_pb__c); ?>
    • data->pba__description_pb__c,0,400);
      if( strlen($item->data->pba__description_pb__c)>400) echo '...' ; ?>
















 

 


0 20 39

querying fields name,pba__listingprice_pb__c
no filter on recordtypes
order by: CreatedDate DESC
getImages: true
getVideos: false
getDocuments: false
using default for itemsPerPage: 20
using default for page: 0
websiteImages: true
exposeImages: null
portalImages: null

85000.00 Hacienda Punta Vista F- 20





200000.00 Laguna Vista





175000.00 Loma Cactacea





224000.00 Las Quintas Villa 5-B





199000.00 cabo del Mar





470000.00 Casa Camille





329000.00 Las Quintas





600000.00 Casa Leon





735000.00 Casa Besos





12750000.00 Lote Corredor Hotel Site





575000.00 Casa de Alma





3700000.00 Hacienda Punta Vista





2150000.00 Casa Simona





695000.00 Casa Francesca





250000.00 La Cima Residencial





140000.00 Casa 16 Villa 1





475000.00 Palmilla Canyon #6





230000.00 Gezo international





425000.00 Historic Building #3





109000.00 Casa Cason