You are here

public function MigrateSourceList::__construct in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/list.inc \MigrateSourceList::__construct()

Simple initialization.

Overrides MigrateSource::__construct

File

plugins/sources/list.inc, line 97
Support for migration from sources with distinct means of listing items to import and obtaining the items themselves.

Class

MigrateSourceList
Implementation of MigrateSource, providing the semantics of iterating over IDs provided by a MigrateList and retrieving data from a MigrateItem.

Code

public function __construct(MigrateList $list_class, MigrateItem $item_class, $fields = array(), $options = array()) {
  parent::__construct($options);
  $this->listClass = $list_class;
  $this->itemClass = $item_class;
  $this->fields = $fields;
}