You are here

public function MigrateItemXML::__construct in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/xml.inc \MigrateItemXML::__construct()

Overrides MigrateItem::__construct

File

plugins/sources/xml.inc, line 120
Support for migration from XML sources.

Class

MigrateItemXML
Implementation of MigrateItem, for retrieving a parsed XML document given an ID provided by a MigrateList class.

Code

public function __construct($item_url) {
  parent::__construct();
  $this->itemUrl = $item_url;

  // Suppress errors during parsing, so we can pick them up after
  libxml_use_internal_errors(TRUE);
}