public function CRMCoreMigrateSQLMap::__construct in CRM Core 7
Constructor.
Parameters
string $machine_name: The unique reference to the migration that we are mapping.
array $source_key: The database schema for the source key.
array $destination_key: The database schema for the destination key.
string $connection_key: Optional - The connection used to create the mapping tables. By default this is the destination (Drupal). If it's not possible to make joins between the destination database and your source database you can specify a different connection to create the mapping tables on.
array $options: Optional - Options applied to this source.
Overrides MigrateSQLMap::__construct
File
- modules/
crm_core_data_import/ includes/ controllers/ CRMCoreMigrateSQLMap.inc, line 14 - Defines a CRMCore extention of MigrateSQLMap
Class
- CRMCoreMigrateSQLMap
- @file Defines a CRMCore extention of MigrateSQLMap
Code
public function __construct($machine_name, array $source_key, array $destination_key, $connection_key = 'default', $options = array()) {
if (!empty($options['importer']) && $options['importer'] instanceof CRMCoreDataImport) {
$this->importer = $options['importer'];
unset($options['importer']);
}
$this->options = $options;
parent::__construct($machine_name, $source_key, $destination_key, $connection_key, $options);
}