public function MigrateItemsXML::computeCount in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/xml.inc \MigrateItemsXML::computeCount()
Return a count of all available IDs from the source listing.
Return value
int count of available IDs
Overrides MigrateItems::computeCount
File
- plugins/
sources/ xml.inc, line 690 - Support for migration from XML sources.
Class
- MigrateItemsXML
- Implementation of MigrateItems, for providing a list of IDs and for retrieving a parsed XML document given an ID from this list.
Code
public function computeCount() {
if (!isset($this->cacheIDs)) {
$this
->getIdList();
}
return count($this->cacheIDs);
}