public function WordPressMigration::__construct in WordPress Migrate 7
Same name and namespace in other branches
- 7.2 wordpress.inc \WordPressMigration::__construct()
Constructor - general setup for WordPress migrations.
Parameters
array $arguments: 'filename' => WXR file managed by this migration
Overrides DynamicMigration::__construct
5 calls to WordPressMigration::__construct()
- WordPressAttachment::__construct in ./
wordpress_attachment.inc - Set it up
- WordPressCategory::__construct in ./
wordpress_category.inc - Set it up
- WordPressComment::__construct in ./
wordpress_comment.inc - Set it up
- WordPressItemMigration::__construct in ./
wordpress_item.inc - Set it up
- WordPressTag::__construct in ./
wordpress_tag.inc - Set it up
5 methods override WordPressMigration::__construct()
- WordPressAttachment::__construct in ./
wordpress_attachment.inc - Set it up
- WordPressCategory::__construct in ./
wordpress_category.inc - Set it up
- WordPressComment::__construct in ./
wordpress_comment.inc - Set it up
- WordPressItemMigration::__construct in ./
wordpress_item.inc - Set it up
- WordPressTag::__construct in ./
wordpress_tag.inc - Set it up
File
- ./
wordpress.inc, line 23 - Implementation of migration from WordPress into Drupal
Class
- WordPressMigration
- @file Implementation of migration from WordPress into Drupal
Code
public function __construct(array $arguments) {
if (!isset($arguments['filename'])) {
throw new Exception(t('Filename is a required parameter for WordPress migrations'));
}
// Must be set before calling the parent constructor, which will call
// generateMachineName() below.
$filename = $arguments['filename'];
$this->wxrFile = $filename;
$this->blog = wordpress_migrate_blog($filename);
parent::__construct();
}