wiki.techinc.nl/includes/actions
Daimona Eaytoy 0ef73ec13e Move some methods from FileDeleteForm to a subclass of DeleteAction
This is where the UI logic is supposed to live. The remaining methods in
FileDeleteForm will later be deprecated in favour of a dedicated command
object.

This patch tries to move the code to the new class with minimal changes,
with cleanup left to do for later.

Also change return typehints and docs for getFile(): WikiFilePage::loadFile()
is guaranteed to load a file. The "|bool" would confuse PHPStorm and
phan.

Note that FileDeleteForm is unused everywhere, except for some static
methods not touched by this patch.

Bug: T288282
Change-Id: I4fa1dfa096cd2ae7a58067764b12a275b1cce1d5
2021-09-17 22:13:19 +02:00
..
Hook Add a hook 'GetActionName' to allow overriding the action name 2021-08-02 09:44:27 -05:00
pagers Disable hidden radio buttons on page history to fix behavior on Firefox 2021-09-12 10:32:26 +09:00
Action.php Merge "Specify DB to query when checking if a user is blocked from a page" 2021-08-26 17:43:34 +00:00
ActionFactory.php Change trivial use of getVal('action') to getRawVal 2021-08-26 22:11:58 +01:00
CreditsAction.php CreditsAction: inject UserFactory 2021-08-13 17:39:35 +02:00
DeleteAction.php Move some methods from FileDeleteForm to a subclass of DeleteAction 2021-09-17 22:13:19 +02:00
EditAction.php Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
FileDeleteAction.php Move some methods from FileDeleteForm to a subclass of DeleteAction 2021-09-17 22:13:19 +02:00
FormAction.php FormAction: Correct return type documentation of getForm 2021-04-27 21:36:11 +01:00
FormlessAction.php Merge "Replace "@stable for subclassing" with "@stable to extend"" 2020-07-13 09:31:38 +00:00
HistoryAction.php Use HTMLForm::setWrapperLegend and ::setSubmitTextMsg to set messages 2021-06-15 18:56:49 +00:00
InfoAction.php Inject services into InfoAction 2021-08-04 18:04:37 +00:00
MarkpatrolledAction.php build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
McrRestoreAction.php Replace uses and hard deprecate Article:: and WikiPage::getRevision 2020-04-20 23:06:48 +00:00
McrUndoAction.php Move revert detection code from WikiPage to EditResultBuilder 2021-09-16 12:24:34 -07:00
ProtectAction.php Remove direct access to Action::page and Article::page properties 2020-03-27 04:10:51 +00:00
PurgeAction.php SECURITY: Prevent blocked users from purging pages 2021-06-23 17:22:21 +01:00
RawAction.php Remove unneeded variable assignment 2021-09-03 22:51:22 +00:00
RenderAction.php Remove direct access to Action::page and Article::page properties 2020-03-27 04:10:51 +00:00
RevertAction.php Inject services into a bunch more actions 2021-07-29 02:40:09 +00:00
RollbackAction.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
SpecialPageAction.php SpecialPageAction: inject action name and SpecialPageFactory 2021-07-31 03:43:56 +00:00
SubmitAction.php Revert "Remove SessionManager, temporarily" 2016-02-03 21:44:59 +00:00
UnprotectAction.php Remove direct access to Action::page and Article::page properties 2020-03-27 04:10:51 +00:00
UnwatchAction.php Inject services into WatchAction and UnwatchAction 2021-07-29 02:08:05 +00:00
ViewAction.php Remove unneeded explicit true/false inside conditions 2021-08-17 21:52:34 +02:00
WatchAction.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00