You are here

public function FeedsSource::expire in Feeds 7.2

Removes all expired items from a feed.

File

includes/FeedsSource.inc, line 664
Definition of FeedsSourceInterface, FeedsState and FeedsSource class.

Class

FeedsSource
Holds the source of a feed to import.

Code

public function expire() {
  $this
    ->acquireLock();
  try {
    $result = $this->importer->processor
      ->expire($this);
  } catch (Exception $e) {

    // Will throw after the lock is released.
  }
  $this
    ->releaseLock();
  if (isset($e)) {
    throw $e;
  }
  return $result;
}