You are here

public function MigrateListFiles::computeCount in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/files.inc \MigrateListFiles::computeCount()

Return a count of all available IDs from the source listing.

Overrides MigrateList::computeCount

File

plugins/sources/files.inc, line 157
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 computeCount() {
  $count = 0;
  $files = $this
    ->getIdList();
  if ($files) {
    $count = count($files);
  }
  return $count;
}