UpdateFeed
in package
Use case for updating an existing feed.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : Feed|null
- Execute the use case.
Properties
$feedRepository
private
FeedRepositoryInterface
$feedRepository
Methods
__construct()
Constructor.
public
__construct(FeedRepositoryInterface $feedRepository) : mixed
Parameters
- $feedRepository : FeedRepositoryInterface
-
Feed repository
execute()
Execute the use case.
public
execute(int $feedId, int $languageId, string $name, string $sourceUri[, string $articleSectionTags = '' ][, string $filterTags = '' ][, string $options = '' ]) : Feed|null
Parameters
- $feedId : int
-
Feed ID
- $languageId : int
-
Language ID
- $name : string
-
Feed name
- $sourceUri : string
-
Feed source URI
- $articleSectionTags : string = ''
-
XPath selectors for article content
- $filterTags : string = ''
-
XPath selectors for elements to remove
- $options : string = ''
-
Feed options string
Return values
Feed|null —The updated feed or null if not found