You are here

public function FeedsImporter::expire in Feeds 7

Same name and namespace in other branches
  1. 6 includes/FeedsImporter.inc \FeedsImporter::expire()

Remove items older than $time.

Parameters

$time: All items older than REQUEST_TIME - $time will be deleted. If not given, internal processor settings will be used.

Return value

FEEDS_BATCH_COMPLETE if the expiry process finished. A decimal between 0.0 and 0.9 periodic if expiry is still in progress.

Throws

Throws Exception if an error occurs when expiring items.

File

includes/FeedsImporter.inc, line 71
FeedsImporter class and related.

Class

FeedsImporter
A FeedsImporter object describes how an external source should be fetched, parsed and processed. Feeds can manage an arbitrary amount of importers.

Code

public function expire($time = NULL) {
  return $this->processor
    ->expire($time);
}