public function MigrateListFiles::getIdList in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/sources/files.inc \MigrateListFiles::getIdList()
Retrieve a list of files based on parameters passed for the migration.
Overrides MigrateList::getIdList
1 call to MigrateListFiles::getIdList()
- MigrateListFiles::computeCount in plugins/
sources/ files.inc - Return a count of all available IDs from the source listing.
File
- plugins/
sources/ files.inc, line 117 - Support for migration from files sources.
Class
- MigrateListFiles
- Implementation of MigrateList, for retrieving a list of IDs to be migrated from a directory listing. Each item is a file, it's ID is the path.
Code
public function getIdList() {
$files = array();
foreach ($this->listDirs as $dir) {
migrate_instrument_start("Retrieve {$dir}");
$files = array_merge(file_scan_directory($dir, $this->fileMask, $this->directoryOptions), $files);
migrate_instrument_stop("Retrieve {$dir}");
}
if (isset($files)) {
return $this
->getIDsFromFiles($files);
}
Migration::displayMessage(t('Loading of !listuri failed:', array(
'!listuri' => $this->listUri,
)));
return NULL;
}