You are here

public function MigrateItemsXML::__toString in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/xml.inc \MigrateItemsXML::__toString()

Our public face is the URL list we're getting items from.

Overrides MigrateItems::__toString

File

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

Class

MigrateItemsXML
Implementation of MigrateItems, for providing a list of IDs and for retrieving a parsed XML document given an ID from this list.

Code

public function __toString() {
  $urls = implode('</li><li>', $this->urls);

  // Prepare a list of urls.
  $output = '<b>urls</b> = <ul><li>' . $urls . '</li></ul>';
  $output .= '<br />';

  // Add selection rules to the end.
  $output .= '<b>item xpath</b> = ' . $this->itemXpath . ' | ';
  $output .= '<b>item ID xpath</b> = ' . $this->itemIDXpath;
  return $output;
}