You are here

abstract class MigrateItem in Migrate 7.2

Same name and namespace in other branches
  1. 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

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

Namesort descending Modifiers Type Description Overrides
MigrateItem::getItem abstract public function Implementors are expected to return an object representing a source item. 3
MigrateItem::__construct public function 3