简体   繁体   English

PHP RETS开放房屋属性

[英]PHP RETS Open Houses Propertys

Hello i want to find open houses property using PHP RETS script. 您好,我想使用PHP RETS脚本查找开放式房屋属性。 i have did below code in which i am able to find Open Houses Property details like MLS_Number,From-date,To time but i am not able to get based on MLS_Number find property other details like address,price,room No and other details. 我做了下面的代码,在其中我能够找到Open Houses物业详细信息,例如MLS_Number,从日期,到时间,但我无法基于MLS_Number找物业其他详细信息,例如地址,价格,房间号和其他详细信息。 what i have tried so far below is code. 我到目前为止在下面尝试过的是代码。

$retsFilters['IS_ACTIVE '] = true;
    $retsQuery = '';
    foreach ($retsFilters as $key => $value) $retsQuery .= ',('.$key.'='.$value.')';
    $retsQuery = trim($retsQuery, ',');     
    $result = $rets->SearchQuery("openhouse", "OpenHouse",$retsQuery,array('Format' => QUERY_FORMAT));

from above code returns only 从上面的代码仅返回

Array
(
    [AdvertOpenHouse] => 1
    [Agent_MUI] => 2871
    [Description] => 
    [FromDate] => 2016-09-01T00:00:00.000
    [FromTime] => 1400
    [InputDate] => 
    [IS_ACTIVE] => 1
    [IsDeleted] => 0
    [Listing_MUI] => 9985949
    [listing_type] => RE
    [matrix_unique_ID] => 10268565
    [mls_number] => 548766
    [ModificationTimestamp] => 2016-01-08T13:31:23.390
    [Open_House_Refreshments] => 
    [ToTime] => 1600
)

but i want also more property's details like address,streetName,city,price and other details. 但我还希望获得更多物业的详细信息,例如地址,街道名称,城市,价格和其他详细信息。

this is the my login url http://rets.saskmls.ca/rets/login.ashx 这是我的登录网址http://rets.saskmls.ca/rets/login.ashx

if any one have idea please help thanks in advance. 如果有任何想法,请提前帮助。

Well the Openhouse Resource and underlying classes would not contain this kind of information. 好吧,Openhouse资源和基础类将不包含此类信息。 There should be a Property Resource with many different kinds of property classes within (Residential, Commercial, Land, etc...) 内部应该有一个具有许多不同种类的财产类别的财产资源(住宅,商业,土地等)。

You need to examine the metadata from the RETS server, it will contain XML that describes all the available Resources, Classes and fields. 您需要检查来自RETS服务器的元数据,该元数据将包含描述所有可用资源,类和字段的XML。

Note the signature of the SearchQuery method: 请注意SearchQuery方法的签名:

SearchQuery ( string $resource, string $class, string $query [, array $options] )

Your resulting query would look something like this: 您产生的查询如下所示:

SearchQuery("Property", "RES", "(Status=|A)")

I am using Paragon as a MLS back-end provider. 我正在使用Paragon作为MLS后端提供程序。 When I get an "OpenHouse" resource, there's a field called 当我获得“ OpenHouse”资源时,有一个名为

L_DisplayId L_DisplayId

which is present in "Property" resources. 出现在“属性”资源中。

This field makes a relationship between the two resources. 该字段在两种资源之间建立关系。

Once you know L_DisplayId value from an open house, you can search for a property sending L_DisplayId as a search parameter. 从公开房得知L_DisplayId的值后,就可以搜索发送L_DisplayId作为搜索参数的属性。

Hope that can help you. 希望能对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM