You are here

public function MigrateSource::__construct in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/source.inc \MigrateSource::__construct()

Class constructor.

Parameters

array $options: Optional array of options.

11 calls to MigrateSource::__construct()
MigrateSourceCSV::__construct in plugins/sources/csv.inc
Simple initialization.
MigrateSourceDB2::__construct in plugins/sources/db2.inc
Simple initialization.
MigrateSourceJSON::__construct in plugins/sources/json.inc
Source constructor.
MigrateSourceList::__construct in plugins/sources/list.inc
Simple initialization.
MigrateSourceMongoDB::__construct in plugins/sources/mongodb.inc
Simple initialization.

... See full list

11 methods override MigrateSource::__construct()
MigrateSourceCSV::__construct in plugins/sources/csv.inc
Simple initialization.
MigrateSourceDB2::__construct in plugins/sources/db2.inc
Simple initialization.
MigrateSourceJSON::__construct in plugins/sources/json.inc
Source constructor.
MigrateSourceList::__construct in plugins/sources/list.inc
Simple initialization.
MigrateSourceMongoDB::__construct in plugins/sources/mongodb.inc
Simple initialization.

... See full list

File

includes/source.inc, line 205
Define base for migration sources.

Class

MigrateSource
Abstract base class for source handling.

Code

public function __construct($options = array()) {
  if (!empty($options['cache_counts'])) {
    $this->cacheCounts = TRUE;
  }
  if (!empty($options['skip_count'])) {
    $this->skipCount = TRUE;
  }
  if (!empty($options['cache_key'])) {
    $this->cacheKey = $options['cache_key'];
  }
  if (!empty($options['track_changes'])) {
    $this->trackChanges = $options['track_changes'];
  }
}