public function FeedsBatch::setProgress in Feeds 6
Same name and namespace in other branches
- 7 includes/FeedsBatch.inc \FeedsBatch::setProgress()
Set progress for a stage.
Parameters
$stage: The stage to set the progress for. One of FEEDS_FETCHING, FEEDS_PARSING, FEEDS_PROCESING or FEEDS_CLEARING.
$progress: The number of items worked off for the given stage. This should be the number of items worked off across all page loads, not just the present page load.
File
- includes/
FeedsBatch.inc, line 49
Class
- FeedsBatch
- A FeedsBatch object holds the state of an import or clear batch.
Code
public function setProgress($stage, $progress) {
$this->progress[$stage] = $progress;
}