You are here

public function WordPressPageCommentXMLReader::__construct in WordPress Migrate 7.2

Prepares our extensions to the XMLReader object.

Parameters

string $xml_url: URL of the XML file to be parsed.

string $element_query: Query string in a restricted xpath format, for selecting elements to be

string $id_query: Query string to the unique identifier for an element, relative to the root of that element. This supports the full xpath syntax.

Overrides MigrateXMLReader::__construct

File

./wordpress_comment.inc, line 101
Support for migrating comments from a WordPress blog into Drupal.

Class

WordPressPageCommentXMLReader

Code

public function __construct($xml_url, $element_query, $id_query) {
  parent::__construct($xml_url, $element_query, $id_query);
  $this->postType = 'page';
}