PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 7.0.4
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v7.0.4
7.2.2 7.2.1 7.2 7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 All 37 releases
mlsimport / enviroment / MlsgridResoClass.php

MlsgridResoClass.php in MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings 7.0.4, at enviroment/MlsgridResoClass.php

44 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * MLS provider adapter: MLS Grid (RESO Web API standard).
4 *
5 * One of the per-provider adapters in enviroment/ that sit between an MLS data
6 * source and the active theme importer. This class is a thin subtype of
7 * ResoBase; it holds a reference to the theme importer so provider-specific
8 * mapping can delegate to the theme adapter. MLS Grid currently adds no
9 * behaviour of its own beyond holding that reference. (The class docblock
10 * below reads "BridgeResoClass" — an unchanged copy-paste from that adapter.)
11 */
12 if ( ! defined( 'ABSPATH' ) ) {
13 // Block direct web access — only load when WordPress is bootstrapped.
14 exit; // Exit if accessed directly
15 }
16
17 /*
18 * To change this license header, choose License Headers in Project Properties.
19 * To change this template file, choose Tools | Templates
20 * and open the template in the editor.
21 */
22
23 /**
24 * Description of BridgeResoClass
25 *
26 * @author cretu
27 */
28 class MlsgridResoClass extends ResoBase {
29
30
31 // Active theme adapter (e.g. ResidenceClass) this provider maps RESO fields through.
32 public $theme_importer;
33
34 /**
35 * Store the theme importer so RESO-to-theme mapping can delegate to it.
36 *
37 * @param object $theme_importer The active theme adapter instance.
38 */
39 public function __construct( $theme_importer ) {
40 // Keep the theme adapter reference for later field mapping.
41 $this->theme_importer = $theme_importer;
42 }
43 }
44