public function FeedsImportBatch::__construct in Feeds 6
Same name and namespace in other branches
- 7 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 153
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->total = array(
FEEDS_FETCHING => 0,
FEEDS_PARSING => 0,
FEEDS_PROCESSING => 0,
);
$this->title = '';
$this->description = '';
$this->link = '';
$this->items = array();
$this->raw = $raw;
$this->feed_nid = $feed_nid;
$this->created = 0;
$this->updated = 0;
}