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.

GetAllLookupValues

GetAllLookupValues ( string $resource )

Gets an array of all lookup values for the given Resource

Parameters

$resource - The RETS Resource to get all possible lookup values for

Return Value

Array

Array containing the lookup names and possible values for each. Returns FALSE if request for information failed.

Usage Examples
<?php
$lookups = $rets->GetAllLookupValues("Property");
foreach ($lookups as $looks) {
        echo "+ {$looks['Lookup']} has the following possible values:\n";
        foreach ($looks['Values'] as $val) {
                echo "   + {$val['Value']} means {$val['LongValue']}\n";
        }
}
+ Status has the following possible values:
   + 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

GetLookupValues