ItemsImporter
class ItemsImporter implements ItemsImporterInterface (View source)
Defines an importer of aggregator items.
Properties
| protected AggregatorPluginManager | $fetcherManager | The aggregator fetcher manager. |
|
| protected AggregatorPluginManager | $processorManager | The aggregator processor manager. |
|
| protected AggregatorPluginManager | $parserManager | The aggregator parser manager. |
|
| protected Config | $config | The aggregator.settings config object. |
|
| protected LoggerInterface | $logger | A logger instance. |
Methods
__construct(ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager, LoggerInterface $logger)
Constructs an Importer object.
bool
Details
__construct(ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager, LoggerInterface $logger)
Constructs an Importer object.
delete(FeedInterface $feed)
Deletes all imported items from a feed.
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.