You are here

abstract public function MigrateItems::getItem in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/multiitems.inc \MigrateItems::getItem()

Implementors are expected to return an object representing a source item.

Parameters

mixed $id:

Return value

stdClass

1 method overrides MigrateItems::getItem()
MigrateItemsXML::getItem in plugins/sources/xml.inc
Implementors are expected to return an object representing a source item. 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/multiitems.inc, line 49
Support for migration from sources where data spans multiple lines (ex. xml, json) and IDs for the items are part of each item and multiple items reside in a single file.

Class

MigrateItems
Extend the MigrateItems class to provide a means to obtain a list of IDs to be migrated from a given source (e.g., MigrateItemsXML extends MigrateItem to obtain a list of IDs from an XML document). This class also provides a means to obtain the data…

Code

public abstract function getItem($id);