You are here

protected property MigrateItemsXML::$cache_items in Migrate 6.2

Given an XML object, parse out the items for processing and return them as an array. The location of the items in the XML are based on the item xpath set in the constructor. Items are cached. The list of items are returned from the cache except when this is the first call (ie, cache is NULL) OR the refresh parameter is TRUE.

Items are cached as an array of key=ID and value=stdclass object with attribute xml containing the xml SimpleXMLElement object of the item.

File

plugins/sources/xml.inc, line 501
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

protected $cache_items = NULL;