wiki.techinc.nl/includes/api
Martin Urbanec a656d03597 Introduce backend class for blocking users
Rather than having to do DatabaseBlock calls directly,
and then ManualLogEntry calls to facilitate logging,
let's create a BlockUser service, capable of blocking users
and logging, optionally with permission checking.

This should make blocking users easier for developers,
for instance, AbuseFilter or CheckUser can easily
benefit from this commit.

Bug: T189073
Change-Id: Ifdced735b694b85116cb0e43dadbfa8e4cdb8cab
2020-09-22 14:14:01 +01:00
..
Hook Remove deprecated api token hooks 2020-09-08 17:08:21 +00:00
i18n Localisation updates from https://translatewiki.net. 2020-09-21 08:27:56 +02:00
Validator UserDef DI 2020-08-05 16:36:53 +00:00
ApiAMCreateAccount.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiAuthManagerHelper.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiBase.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiBlock.php Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
ApiBlockInfoTrait.php ApiBlockInfoTrait: Add some extra basic block details 2020-08-21 18:00:20 +01:00
ApiChangeAuthenticationData.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiChangeContentModel.php Add ContentModelChangeFactory, implemented by PageCommandFactory 2020-05-30 22:36:16 +00:00
ApiCheckToken.php
ApiClearHasMsg.php ApiClearHasMsg: Use new TalkPageNotificationManager 2020-05-11 19:21:57 +00:00
ApiClientLogin.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiComparePages.php Added timestamp to action=compare 2020-04-09 16:24:21 -04:00
ApiContinuationManager.php Upgrade phan to 0.9.1 2020-01-25 10:53:26 +00:00
ApiCSPReport.php Remove unneeded ApiCSPReport::isWriteMode 2020-08-19 10:26:56 +00:00
ApiDelete.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiDisabled.php ApiDisabled: Correctly fall back to api-help-no-extended-description 2020-01-13 09:24:11 -05:00
ApiEditPage.php Merge "Remove requirement for ApiWatchlistTrait to be in ApiBase." 2020-09-11 00:36:58 +00:00
ApiEmailUser.php
ApiErrorFormatter.php Clean up redundant Exception|Throwable union type 2020-02-12 20:28:40 +00:00
ApiErrorFormatter_BackCompat.php Clean up redundant Exception|Throwable union type 2020-02-12 20:28:40 +00:00
ApiExpandTemplates.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiFeedContributions.php Use LinkBatchFactory in pagers, special pages and actions 2020-09-06 01:26:09 +02:00
ApiFeedRecentChanges.php
ApiFeedWatchlist.php Move init of array outside of try/catch in api action=feedwatchlist 2020-07-27 19:38:48 +02:00
ApiFileRevert.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiFormatBase.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiFormatFeedWrapper.php
ApiFormatJson.php
ApiFormatNone.php
ApiFormatPhp.php
ApiFormatRaw.php
ApiFormatXml.php Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
ApiFormatXmlRsd.php
ApiHelp.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiHelpParamValueMessage.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ApiHookRunner.php Remove deprecated api token hooks 2020-09-08 17:08:21 +00:00
ApiImageRotate.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiImport.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiImportReporter.php
ApiLinkAccount.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiLogin.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiLogout.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiMain.php Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
ApiManageTags.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiMergeHistory.php Add MergeHistoryFactory interface, implemented by PageCommandFactory 2020-05-13 19:08:09 +00:00
ApiMessage.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ApiMessageTrait.php
ApiModuleManager.php
ApiMove.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiOpenSearch.php Use LinkBatchFactory in api modules 2020-09-06 09:32:16 +00:00
ApiOpenSearchFormatJson.php
ApiOptions.php ApiOptions: log when userjs-* option changes 2020-09-15 16:50:03 +02:00
ApiPageSet.php Use LinkBatchFactory in api modules 2020-09-06 09:32:16 +00:00
ApiParamInfo.php Ensure return value is declared in api param info 2020-07-17 23:02:01 +02:00
ApiParse.php Use LinkBatchFactory in api modules 2020-09-06 09:32:16 +00:00
ApiPatrol.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiProtect.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiPurge.php
ApiQuery.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiQueryAllCategories.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryAllDeletedRevisions.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryAllImages.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryAllLinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryAllMessages.php Use MediaWikiServices::getMessageCache 2020-03-14 14:25:03 +01:00
ApiQueryAllPages.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryAllRevisions.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryAllUsers.php Remove unused variable $commentStore 2020-01-20 15:59:06 +11:00
ApiQueryAuthManagerInfo.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiQueryBacklinks.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiQueryBacklinksprop.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryBase.php Merge "Replace "@stable for subclassing" with "@stable to extend"" 2020-07-13 09:31:38 +00:00
ApiQueryBlockInfoTrait.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiQueryBlocks.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryCategories.php Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
ApiQueryCategoryInfo.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryCategoryMembers.php Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
ApiQueryContributors.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiQueryDeletedRevisions.php Use LinkBatchFactory in api modules 2020-09-06 09:32:16 +00:00
ApiQueryDeletedrevs.php Use LinkBatchFactory in api modules 2020-09-06 09:32:16 +00:00
ApiQueryDisabled.php ApiDisabled: Correctly fall back to api-help-no-extended-description 2020-01-13 09:24:11 -05:00
ApiQueryDuplicateFiles.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryExternalLinks.php
ApiQueryExtLinksUsage.php ApiQueryExtLinksUsage: Avoid bad query plan 2020-02-04 16:05:11 -05:00
ApiQueryFilearchive.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryFileRepoInfo.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryGeneratorBase.php Replace "@stable for subclassing" with "@stable to extend" 2020-07-13 11:00:30 +02:00
ApiQueryImageInfo.php Return responsiveUrls (srcset info) in ApiQueryImageInfo response 2020-08-03 22:50:53 -04:00
ApiQueryImages.php Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
ApiQueryInfo.php Remove uses of $wgUser in api token methods 2020-09-09 23:56:17 +00:00
ApiQueryIWBacklinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryIWLinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryLangBacklinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryLangLinks.php Remove usages of deprecated Language methods 2020-02-16 00:45:48 +00:00
ApiQueryLanguageinfo.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiQueryLinks.php Use LinkBatchFactory in api modules 2020-09-06 09:32:16 +00:00
ApiQueryLogEvents.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiQueryMyStashedFiles.php
ApiQueryPagePropNames.php
ApiQueryPageProps.php
ApiQueryPagesWithProp.php Improve param docs 2019-11-28 19:08:59 +01:00
ApiQueryPrefixSearch.php Improve param docs 2019-11-28 19:08:59 +01:00
ApiQueryProtectedTitles.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryQueryPage.php Fix the namespace of SpecialPageFactory 2020-02-21 13:46:19 +11:00
ApiQueryRandom.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryRecentChanges.php Remove uses of $wgUser in api token methods 2020-09-09 23:56:17 +00:00
ApiQueryRevisions.php Remove uses of $wgUser in api token methods 2020-09-09 23:56:17 +00:00
ApiQueryRevisionsBase.php includes: Use expression assignment operator += or |= where possible 2020-07-31 22:26:42 +00:00
ApiQuerySearch.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
ApiQuerySiteinfo.php Deprecate Skin methods moved to SkinFactory 2020-08-26 12:45:52 -07:00
ApiQueryStashImageInfo.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryTags.php
ApiQueryTokens.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiQueryUserContribs.php Hard deprecate Revision::getParentLengths 2020-03-18 12:26:26 -07:00
ApiQueryUserInfo.php ApiQueryUserInfo: Add theoreticalratelimits 2020-09-15 18:56:56 +00:00
ApiQueryUsers.php Remove uses of $wgUser in api token methods 2020-09-09 23:56:17 +00:00
ApiQueryWatchlist.php Merge "ApiQueryWatchlist: set anon flag as false when relevant instead of omitting" 2020-08-07 19:56:49 +00:00
ApiQueryWatchlistRaw.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiRawMessage.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ApiRemoveAuthenticationData.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiResetPassword.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiResult.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiRevisionDelete.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiRollback.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiRsd.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiSerializable.php Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
ApiSetNotificationTimestamp.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiSetPageLanguage.php Remove usages of deprecated Language methods 2020-02-16 00:45:48 +00:00
ApiStashEdit.php API: Handle ContentHandler exception for content model mismatch 2020-09-04 03:41:58 +01:00
ApiTag.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiTokens.php Remove uses of $wgUser in api token methods 2020-09-09 23:56:17 +00:00
ApiUnblock.php Introduce backend class for unblocking users 2020-08-25 13:34:36 +01:00
ApiUndelete.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiUpload.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
ApiUsageException.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ApiUserrights.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiValidatePassword.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiWatch.php WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
ApiWatchlistTrait.php Remove requirement for ApiWatchlistTrait to be in ApiBase. 2020-09-07 01:13:57 +01:00
IApiMessage.php Hard deprecate Title::getUserPermissionsErrors 2020-02-26 05:09:55 +00:00
SearchApi.php