public function MigrateItemsXML::getIdList in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/sources/xml.inc \MigrateItemsXML::getIdList()
Load the XML at the given URL, and return an array of the IDs found within it.
Return value
array
Overrides MigrateItems::getIdList
File
- plugins/
sources/ xml.inc, line 413 - 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 getIdList() {
migrate_instrument_start("Retrieve {$this->xmlUrl}");
$xml = $this
->xml();
migrate_instrument_stop("Retrieve {$this->xmlUrl}");
if ($xml !== FALSE) {
return $this
->getIDsFromXML($xml);
}
return NULL;
}