You are here

public function FeedsImportBatch::__construct in Feeds 7

Same name and namespace in other branches
  1. 6 includes/FeedsBatch.inc \FeedsImportBatch::__construct()

Overrides FeedsBatch::__construct

2 calls to FeedsImportBatch::__construct()
FeedsFileBatch::__construct in plugins/FeedsFileFetcher.inc
Constructor.
FeedsHTTPBatch::__construct in plugins/FeedsHTTPFetcher.inc
Constructor.
2 methods override FeedsImportBatch::__construct()
FeedsFileBatch::__construct in plugins/FeedsFileFetcher.inc
Constructor.
FeedsHTTPBatch::__construct in plugins/FeedsHTTPFetcher.inc
Constructor.

File

includes/FeedsBatch.inc, line 155

Class

FeedsImportBatch
A FeedsImportBatch wraps the actual content retrieved from a FeedsSource. On import, it is created on the fetching stage and passed through the parsing and processing stage where it is normalized and consumed.

Code

public function __construct($raw = '', $feed_nid = 0) {
  parent::__construct();
  $this->progress = array(
    FEEDS_FETCHING => FEEDS_BATCH_COMPLETE,
    FEEDS_PARSING => FEEDS_BATCH_COMPLETE,
    FEEDS_PROCESSING => FEEDS_BATCH_COMPLETE,
  );
  $this->file_path = NULL;
  $this->title = '';
  $this->description = '';
  $this->link = '';
  $this->items = array();
  $this->raw = $raw;
  $this->feed_nid = $feed_nid;
  $this->created = 0;
  $this->updated = 0;
}