abstract class MigrateItem in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/list.inc \MigrateItem
Extend the MigrateItem class to provide a means to obtain the data for a given migratable item given its ID as provided by the MigrateList class.
Hierarchy
- class \MigrateItem
Expanded class hierarchy of MigrateItem
File
- plugins/
sources/ list.inc, line 51 - Support for migration from sources with distinct means of listing items to import and obtaining the items themselves.
View source
abstract class MigrateItem {
public function __construct() {
}
/**
* Implementors are expected to return an object representing a source item.
*
* @param mixed $id
*
* @return stdClass
*/
public abstract function getItem($id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateItem:: |
abstract public | function | Implementors are expected to return an object representing a source item. | 3 |
MigrateItem:: |
public | function | 3 |