public function MigrateItemXML::__construct in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/xml.inc \MigrateItemXML::__construct()
Overrides MigrateItem::__construct
File
- plugins/
sources/ xml.inc, line 181 - 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, array $namespaces = array()) {
parent::__construct();
$this->itemUrl = $item_url;
$this->namespaces = $namespaces;
// Suppress errors during parsing, so we can pick them up after.
libxml_use_internal_errors(TRUE);
}