FeedController
in package
Facade controller delegating to specialized sub-controllers.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- autoupdate() : void
- Refresh feeds that are due for auto-update.
- deleteFeed() : void
- edit() : void
- editFeed() : void
- getFacade() : FeedFacade
- Get the FeedFacade instance.
- index() : void
- Legacy server-rendered feed pages — now all the SPA.
- loadFeedRoute() : void
- multiLoad() : void
- newFeed() : void
- renderFeedLoadInterface() : void
- Render feed load interface (used by renderFeedLoadInterfaceModern delegation).
- spa() : void
- redirectToManager() : void
- Send the caller to the feeds manager SPA.
Properties
$editController
private
FeedEditController
$editController
$feedFacade
private
FeedFacade
$feedFacade
$loadController
private
FeedLoadController
$loadController
Methods
__construct()
public
__construct(FeedFacade $feedFacade, LanguageFacade $languageFacade[, FeedWizardSessionManager|null $wizardSession = null ][, FlashMessageService|null $flashService = null ]) : mixed
Parameters
- $feedFacade : FeedFacade
- $languageFacade : LanguageFacade
- $wizardSession : FeedWizardSessionManager|null = null
- $flashService : FlashMessageService|null = null
autoupdate()
Refresh feeds that are due for auto-update.
public
autoupdate(array<string, string> $params) : void
Parameters
- $params : array<string, string>
-
Route parameters
deleteFeed()
public
deleteFeed(int $id) : void
Parameters
- $id : int
edit()
public
edit(array<string, string> $params) : void
Parameters
- $params : array<string, string>
-
Route parameters
editFeed()
public
editFeed(int $id) : void
Parameters
- $id : int
getFacade()
Get the FeedFacade instance.
public
getFacade() : FeedFacade
Return values
FeedFacadeindex()
Legacy server-rendered feed pages — now all the SPA.
public
index(array<string, string> $params) : void
/feeds (the article browser), /feeds/edit and /feeds/multi-load
were a second implementation of what /feeds/manage already does
entirely from /api/v1, including the edit-before-import flow that
kept the browser alive. They redirect rather than 404 so existing
bookmarks keep working.
Parameters
- $params : array<string, string>
-
Route parameters
loadFeedRoute()
public
loadFeedRoute(int $id) : void
Parameters
- $id : int
multiLoad()
public
multiLoad(array<string, string> $params) : void
Parameters
- $params : array<string, string>
newFeed()
public
newFeed(array<string, string> $params) : void
Parameters
- $params : array<string, string>
renderFeedLoadInterface()
Render feed load interface (used by renderFeedLoadInterfaceModern delegation).
public
renderFeedLoadInterface(int $currentFeed, bool $checkAutoupdate, string $redirectUrl) : void
Parameters
- $currentFeed : int
- $checkAutoupdate : bool
- $redirectUrl : string
spa()
public
spa(array<string, string> $params) : void
Parameters
- $params : array<string, string>
redirectToManager()
Send the caller to the feeds manager SPA.
private
redirectToManager() : void