public function MigrateSourceList::performRewind in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/sources/list.inc \MigrateSourceList::performRewind()
Implementation of MigrateSource::performRewind().
Return value
void
File
- plugins/
sources/ list.inc, line 147 - 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 performRewind() {
// If there isn't a specific ID list passed in, get it from the list class.
if ($this->idList) {
$this->idsToProcess = $this->idList;
}
else {
$this->idsToProcess = $this->listClass
->getIdList();
}
$this->idIterator = $this->idsToProcess instanceof Iterator ? $this->idsToProcess : new ArrayIterator($this->idsToProcess);
$this->idIterator
->rewind();
}