You are here

public function WordPressItemSource::__construct in WordPress Migrate 7

Same name and namespace in other branches
  1. 7.2 wordpress_item.inc \WordPressItemSource::__construct()

Simple initialization.

Overrides WordPressSource::__construct

1 call to WordPressItemSource::__construct()
WordPressAttachmentSource::__construct in ./wordpress_attachment.inc
Simple initialization.
1 method overrides WordPressItemSource::__construct()
WordPressAttachmentSource::__construct in ./wordpress_attachment.inc
Simple initialization.

File

./wordpress_item.inc, line 55
Support for migrating posts and pages from a WordPress blog into Drupal.

Class

WordPressItemSource
Implementation of MigrateSource, to handle migrating items from WordPress XML dumps.

Code

public function __construct($filename, $post_type) {
  parent::__construct($filename);
  $this->postType = $post_type;
  $this->xpath = '//channel/item';
}