You are here

public function MigrateDrupal6SourceSQL::__construct in Drupal-to-Drupal data migration 7.2

Simple initialization.

Parameters

SelectQueryInterface $query: The query we are iterating over.

array $fields: Optional - keys are field names, values are descriptions. Use to override the default descriptions, or to add additional source fields which the migration will add via other means (e.g., prepareRow()).

SelectQueryInterface $count_query: Optional - an explicit count query, primarily used when counting the primary query is slow.

boolean $options: Options applied to this source.

Overrides MigrateSourceSQL::__construct

File

d6/node.inc, line 218
Implementation of DrupalNodeMigration for Drupal 6 sources.

Class

MigrateDrupal6SourceSQL
We override the default SQL source class just so we can clean up subfield names for the UI.

Code

public function __construct(SelectQueryInterface $query, array $fields = array(), SelectQueryInterface $count_query = NULL, array $options = array()) {
  $this->fixFieldNames = $options['fix_field_names'];
  parent::__construct($query, $fields, $count_query, $options);
}