You are here

class WordPressPageCommentXMLReader in WordPress Migrate 7.2

Hierarchy

Expanded class hierarchy of WordPressPageCommentXMLReader

1 string reference to 'WordPressPageCommentXMLReader'
WordPressComment::__construct in ./wordpress_comment.inc
Set it up

File

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

View source
class WordPressPageCommentXMLReader extends WordPressCommentXMLReader {
  public function __construct($xml_url, $element_query, $id_query) {
    parent::__construct($xml_url, $element_query, $id_query);
    $this->postType = 'page';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateXMLReader::$attributeName protected property If the element query is filtering by an attribute name=value, the name of the attribute in question.
MigrateXMLReader::$attributeValue protected property If the element query is filtering by an attribute name=value, the value of the attribute in question.
MigrateXMLReader::$currentElement protected property Current element object when iterating.
MigrateXMLReader::$currentId protected property Value of the ID for the current element when iterating.
MigrateXMLReader::$currentPath protected property Array representing the path to the current element as we traverse the XML. For example, if in an XML string like '<file><article>...</article></file>' we are positioned within the article element, currentPath will…
MigrateXMLReader::$elementQuery public property Query string used to retrieve the elements from the XML file.
MigrateXMLReader::$elementsToMatch protected property Array of the element names from the query, 0-based from the first (root) element. For example, '//file/article' would be stored as array(0 => 'file', 1 => 'article').
MigrateXMLReader::$idQuery public property Xpath query string used to retrieve the primary key value from each element.
MigrateXMLReader::$prefixedName protected property When matching element names, whether to compare to the namespace-prefixed name, or the local name.
MigrateXMLReader::$reader public property The XMLReader we are encapsulating.
MigrateXMLReader::$url public property URL of the source XML file.
MigrateXMLReader::current public function Implementation of Iterator::current().
MigrateXMLReader::key public function Implementation of Iterator::key().
MigrateXMLReader::rewind public function Implementation of Iterator::rewind().
MigrateXMLReader::valid public function Implementation of Iterator::valid().
WordPressCommentXMLReader::$postId protected property The last post ID we've seen - saved so we can apply it to comments.
WordPressCommentXMLReader::next public function Implementation of Iterator::next(). We need to preserve the ID of the parent element. Overrides MigrateXMLReader::next
WordPressPageCommentXMLReader::__construct public function Prepares our extensions to the XMLReader object. Overrides MigrateXMLReader::__construct