Drupal 8  8.0.2
ItemsImporter Class Reference
Inheritance diagram for ItemsImporter:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager, LoggerInterface $logger)
 
 delete (FeedInterface $feed)
 
 refresh (FeedInterface $feed)
 

Protected Attributes

 $fetcherManager
 
 $processorManager
 
 $parserManager
 
 $config
 
 $logger
 

Detailed Description

Defines an importer of aggregator items.

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory,
AggregatorPluginManager  $fetcher_manager,
AggregatorPluginManager  $parser_manager,
AggregatorPluginManager  $processor_manager,
LoggerInterface  $logger 
)

Constructs an Importer object.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe factory for configuration objects.
\Drupal\aggregator\Plugin\AggregatorPluginManager$fetcher_managerThe aggregator fetcher plugin manager.
\Drupal\aggregator\Plugin\AggregatorPluginManager$parser_managerThe aggregator parser plugin manager.
\Drupal\aggregator\Plugin\AggregatorPluginManager$processor_managerThe aggregator processor plugin manager.
\Psr\Log\LoggerInterface$loggerA logger instance.

References Drupal\config(), and Drupal\logger().

Here is the call graph for this function:

Member Function Documentation

delete ( FeedInterface  $feed)

{Deletes all imported items from a feed.

Parameters
\Drupal\aggregator\FeedInterface$feedThe feed that associated items should be deleted from.
}

Implements ItemsImporterInterface.

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
\Drupal\aggregator\FeedInterface$feedThe feed which items should be refreshed.
Returns
bool TRUE if there is new content for the feed FALSE otherwise.
}

Implements ItemsImporterInterface.

References Drupal\config(), FeedInterface\getHash(), FeedInterface\getUrl(), FeedInterface\getWebsiteUrl(), EntityInterface\label(), Drupal\logger(), EntityInterface\save(), FeedInterface\setHash(), and FeedInterface\setWebsiteUrl().

Here is the call graph for this function:


The documentation for this class was generated from the following file: