You are here

public function MigrateContentParser::setContent in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/files.inc \MigrateContentParser::setContent()

Set the content and file ID for the current file to parse.

Parameters

$content: The content of the current file to parse.

$item_id = NULL: The ID of the file. The chunk IDs are appended to this to form the IDs that are returned by the MigrateList implementation.

File

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

Class

MigrateContentParser
MigrateContentParser provides abstract methods that must be supported by an implementing class. We need to be able to get a list of the chunk IDs, a count, and then retrieve each chunk by it's ID.

Code

public function setContent($content, $item_id = NULL) {
  $this->content = $content;
  $this->item_id = $item_id;
}