You are here

public function FeedsProcessor::expire in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsProcessor.inc \FeedsProcessor::expire()
  2. 7.2 plugins/FeedsProcessor.inc \FeedsProcessor::expire()

Delete feed items younger than now - $time. Do not invoke expire on a processor directly, but use FeedsImporter::expire() instead.

Parameters

$time: If implemented, all items produced by this configuration that are older than REQUEST_TIME - $time should be deleted. If $time === NULL processor should use internal configuration.

Return value

FEEDS_BATCH_COMPLETE if all items have been processed, a float between 0 and 0.99* indicating progress otherwise.

See also

FeedsImporter::expire().

FeedsDataProcessor::expire().

1 method overrides FeedsProcessor::expire()
FeedsNodeProcessor::expire in plugins/FeedsNodeProcessor.inc
Implement expire().

File

plugins/FeedsProcessor.inc, line 57

Class

FeedsProcessor
Abstract class, defines interface for processors.

Code

public function expire($time = NULL) {
  return FEEDS_BATCH_COMPLETE;
}