public function MigrateSourceJSON::performRewind in Migrate 7.2
Implementation of MigrateSource::performRewind().
File
- plugins/
sources/ json.inc, line 544 - Support for migration from JSON sources.
Class
- MigrateSourceJSON
- Implementation of MigrateSource, to handle imports from stand-alone JSON files.
Code
public function performRewind() {
// Set the reader back to the beginning of the file (positioned to the
// first matching element), then apply our logic to make sure we have the
// first element fulfilling our logic (idlist/map/prepareRow()).
$active_url = variable_get('migrate_source_json_active_url', NULL);
if (isset($active_url)) {
$active_url--;
}
$this->activeUrl = $active_url;
if ($this->reader) {
$this->reader
->rewind();
$this->reader = NULL;
}
}