| 1 |
<?php |
| 2 |
/** |
| 3 |
* MLS provider adapter: Bridge (Bridge Data Output API, RESO 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. Bridge currently adds no |
| 9 |
* behaviour of its own beyond holding that reference. |
| 10 |
*/ |
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
// Block direct web access — only load when WordPress is bootstrapped. |
| 13 |
exit; // Exit if accessed directly |
| 14 |
} |
| 15 |
|
| 16 |
/* |
| 17 |
* To change this license header, choose License Headers in Project Properties. |
| 18 |
* To change this template file, choose Tools | Templates |
| 19 |
* and open the template in the editor. |
| 20 |
*/ |
| 21 |
|
| 22 |
/** |
| 23 |
* Description of BridgeResoClass |
| 24 |
* |
| 25 |
* @author cretu |
| 26 |
*/ |
| 27 |
class BridgeResoClass extends ResoBase { |
| 28 |
|
| 29 |
|
| 30 |
// Active theme adapter (e.g. ResidenceClass) this provider maps RESO fields through. |
| 31 |
public $theme_importer; |
| 32 |
|
| 33 |
/** |
| 34 |
* Store the theme importer so RESO-to-theme mapping can delegate to it. |
| 35 |
* |
| 36 |
* @param object $theme_importer The active theme adapter instance. |
| 37 |
*/ |
| 38 |
public function __construct( $theme_importer ) { |
| 39 |
// Keep the theme adapter reference for later field mapping. |
| 40 |
$this->theme_importer = $theme_importer; |
| 41 |
} |
| 42 |
} |
| 43 |
|