PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 7.2.1
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v7.2.1
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 6.0.5 All 36 releases
mlsimport / enviroment / MlsgridResoClass.php

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

44 lines 1.2 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 * Owns MLS Grid identity and saved-token login behavior.
6 */
7 if ( ! defined( 'ABSPATH' ) ) {
8 // Block direct web access — only load when WordPress is bootstrapped.
9 exit; // Exit if accessed directly
10 }
11
12 /*
13 * To change this license header, choose License Headers in Project Properties.
14 * To change this template file, choose Tools | Templates
15 * and open the template in the editor.
16 */
17
18 /**
19 * MLS Grid Provider Family adapter.
20 *
21 * @author cretu
22 */
23 class MlsgridResoClass extends ResoBase {
24
25 /** @var string Stable provider type saved for MLS Grid. */
26 protected $provider_type = 'mlsgrid';
27
28 /** @var bool MLS Grid sends its saved bearer token unchanged. */
29 protected $direct_uses_stored_token = true;
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