-
Notifications
You must be signed in to change notification settings - Fork 237
GetLookupValues
Troy Davisson edited this page Mar 5, 2016
·
2 revisions
Note: This page documents capabilities available in the older 1.x version. Please see this repository's README file for the new 2.x version documentation.
GetLookupValues ( string $resource, string $lookup_name )
Gets an array of all lookup values for the given lookup name
$resource
- RETS Resource
$lookup_name
- LookupName (from GetMetadataTable()) to get values for.
Array
Array containing the possible values for the specified lookup. Returns FALSE if request for information failed.
<?php
$values = $rets->GetLookupValues("Property", "Status");
foreach ($values as $val) {
echo " + {$val['Value']} means {$val['LongValue']}\n";
}
+ S means Sold
+ O means Off Market
+ A means Active
+ W means Withdrawn
+ U means Under Contract
+ C means Closed
+ T means Temp Off Market
+ P means Pending
+ L means Leased
+ X means Expired