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.

GetMetadataTable

GetMetadataTable ( string $resource, string $class )

Gets field information about the specified Class

Parameters

$resource - RETS Resource
$class - RETS Class

Return Value

Array

Each array item represents a field for the specific Class. Returns FALSE if request for information failed.

Usage Examples
<?php
$fields = $rets->GetMetadataTable("Property", "RES");
foreach ($fields as $field) {
        echo "+ Field {$field['SystemName']} is a {$field['DataType']} type\n";
}
+ Field Status is a Character type
+ Field Rooms is a Int type
+ Field ZipCode is a Character type
+ Field City is a Character type
+ Field ContractDate is a Date type
+ Field ClosePrice is a Int type
+ Field County is a Character type
+ Field YearBuilt is a Int type
+ Field Garage is a Int type
+ Field LivingArea is a Int type
+ Field StreetNumber is a Character type
+ Field StreetDirection is a Character type
+ Field Board is a Character type
+ Field ModificationTimestamp is a DateTime type
+ Field StreetName is a Character type
+ Field ListDate is a Date type
+ Field AgentID is a Int type
+ Field Unit is a Character type
+ Field State is a Character type
+ Field SqFt is a Decimal type
+ Field Bedrooms is a Int type
+ Field ListPrice is a Int type
+ Field ListingID is a Int type
+ Field Baths is a Int type
+ Field CloseDate is a Date type
Related To

GetMetadataResources, GetMetadataClasses