You are here

abstract public function MigrateList::computeCount in Migrate 6.2

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

Implementors are expected to return a count of IDs available to be migrated.

Return value

int

3 methods override MigrateList::computeCount()
MigrateListFiles::computeCount in plugins/sources/files.inc
Return a count of all available IDs from the source listing.
MigrateListJSON::computeCount in plugins/sources/json.inc
Return a count of all available IDs from the source listing. The default implementation assumes the count of top-level elements reflects the number of IDs available - in many cases, you will need to override this to reflect your particular JSON structure.
MigrateListXML::computeCount in plugins/sources/xml.inc
Return a count of all available IDs from the source listing. The default implementation assumes the count of top-level elements reflects the number of IDs available - in many cases, you will need to override this to reflect your particular XML structure.

File

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

Class

MigrateList
Extend the MigrateList class to provide a means to obtain a list of IDs to be migrated from a given source (e.g., MigrateListXML extends MigrateList to obtain a list of IDs from an XML document).

Code

public abstract function computeCount();