public function MigrateDrupal5SourceSQL::__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
- d5/
node.inc, line 132 - Implementation of DrupalNodeMigration for Drupal 5 sources.
Class
- MigrateDrupal5SourceSQL
- 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);
}