You are here

class MigrateSimpleContentParser in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/files.inc \MigrateSimpleContentParser

Simple parser that doesn't actually parse anything - it just returns the whole file as a single chunk. This is the default parser used and is primarily for when your HTML files map one-to-one to nodes.

Hierarchy

Expanded class hierarchy of MigrateSimpleContentParser

File

plugins/sources/files.inc, line 42
Support for migration from files sources.

View source
class MigrateSimpleContentParser extends MigrateContentParser {
  public function getChunkIDs() {
    return array(
      '1',
    );
  }
  public function getChunk($id) {
    return $this->content;
  }
  public function getChunkCount() {
    return 1;
  }

}

Members