class WordPressPageCommentXMLReader in WordPress Migrate 7.2
Hierarchy
- class \MigrateXMLReader implements \Iterator
- class \WordPressCommentXMLReader
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateXMLReader:: |
protected | property | If the element query is filtering by an attribute name=value, the name of the attribute in question. | |
MigrateXMLReader:: |
protected | property | If the element query is filtering by an attribute name=value, the value of the attribute in question. | |
MigrateXMLReader:: |
protected | property | Current element object when iterating. | |
MigrateXMLReader:: |
protected | property | Value of the ID for the current element when iterating. | |
MigrateXMLReader:: |
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:: |
public | property | Query string used to retrieve the elements from the XML file. | |
MigrateXMLReader:: |
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:: |
public | property | Xpath query string used to retrieve the primary key value from each element. | |
MigrateXMLReader:: |
protected | property | When matching element names, whether to compare to the namespace-prefixed name, or the local name. | |
MigrateXMLReader:: |
public | property | The XMLReader we are encapsulating. | |
MigrateXMLReader:: |
public | property | URL of the source XML file. | |
MigrateXMLReader:: |
public | function | Implementation of Iterator::current(). | |
MigrateXMLReader:: |
public | function | Implementation of Iterator::key(). | |
MigrateXMLReader:: |
public | function | Implementation of Iterator::rewind(). | |
MigrateXMLReader:: |
public | function | Implementation of Iterator::valid(). | |
WordPressCommentXMLReader:: |
protected | property | The last post ID we've seen - saved so we can apply it to comments. | |
WordPressCommentXMLReader:: |
public | function |
Implementation of Iterator::next(). We need to preserve the ID of
the parent element. Overrides MigrateXMLReader:: |
|
WordPressPageCommentXMLReader:: |
public | function |
Prepares our extensions to the XMLReader object. Overrides MigrateXMLReader:: |