FeedLoadController
in package
Controller for feed loading/importing operations.
Handles feed loading, multi-load interface, and the renderFeedLoadInterface method for Alpine.js feed loader.
Tags
Table of Contents
Properties
- $feedFacade : FeedFacade
- $languageFacade : LanguageFacade
- $viewPath : string
Methods
- __construct() : mixed
- autoupdateRoute() : void
- Refresh every feed whose auto-update interval has elapsed.
- loadFeedRoute() : void
- Load/refresh a single feed.
- renderFeedLoadInterface() : void
- Render feed load interface.
Properties
$feedFacade
private
FeedFacade
$feedFacade
$languageFacade
private
LanguageFacade
$languageFacade
$viewPath
private
string
$viewPath
Methods
__construct()
public
__construct(FeedFacade $feedFacade, LanguageFacade $languageFacade) : mixed
Parameters
- $feedFacade : FeedFacade
- $languageFacade : LanguageFacade
autoupdateRoute()
Refresh every feed whose auto-update interval has elapsed.
public
autoupdateRoute() : void
Route: GET /feeds/autoupdate
This used to hang off /feeds?check_autoupdate=1, which meant the
retired browse page had to stay routable just to carry the flag. The
language page links straight here instead.
loadFeedRoute()
Load/refresh a single feed.
public
loadFeedRoute(int $id) : void
Route: GET /feeds/{id}/load
Parameters
- $id : int
-
Feed ID from route parameter
renderFeedLoadInterface()
Render feed load interface.
public
renderFeedLoadInterface(int $currentFeed, bool $checkAutoupdate, string $redirectUrl) : void
Parameters
- $currentFeed : int
-
Feed ID
- $checkAutoupdate : bool
-
Check auto-update
- $redirectUrl : string
-
Redirect URL