Skip to content
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

GetLookupValues ( string $resource, string $lookup_name )

Gets an array of all lookup values for the given lookup name

Parameters

$resource - RETS Resource
$lookup_name - LookupName (from GetMetadataTable()) to get values for.

Return Value

Array

Array containing the possible values for the specified lookup. Returns FALSE if request for information failed.

Usage Examples
<?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
Related To

GetAllLookupValues