interface ItemsImporterInterface (View source)

Provides an interface defining an aggregator items importer.

Methods

bool
refresh(FeedInterface $feed)

Updates the feed items by triggering the import process.

delete(FeedInterface $feed)

Deletes all imported items from a feed.

Details

bool refresh(FeedInterface $feed)

Updates the feed items by triggering the import process.

This process can be slow and lengthy because it relies on network operations. Calling it on performance critical paths should be avoided.

Parameters

FeedInterface $feed

The feed which items should be refreshed.

Return Value

bool

TRUE if there is new content for the feed FALSE otherwise.

delete(FeedInterface $feed)

Deletes all imported items from a feed.

Parameters

FeedInterface $feed

The feed that associated items should be deleted from.