10use MediaWiki\Cache\LinkBatchFactory;
12use MediaWiki\Pager\DeletedContribsPager;
36 private ?DeletedContribsPager $pager =
null;
40 private LinkBatchFactory $linkBatchFactory;
52 LinkBatchFactory $linkBatchFactory,
70 'DeletedContributions',
73 $this->revisionStore = $revisionStore;
74 $this->commentFormatter = $commentFormatter;
75 $this->linkBatchFactory = $linkBatchFactory;
76 $this->tempUserConfig = $tempUserConfig;
83 if ( $this->pager ===
null ) {
87 unset( $options[
'target'] );
89 $this->pager =
new DeletedContribsPager(
95 $this->commentFormatter,
96 $this->linkBatchFactory,
119 $tools = parent::getUserLinks( $sp, $target );
122 $contributionsLink = $linkRenderer->makeKnownLink(
124 $this->msg(
'sp-deletedcontributions-contribs' )->text()
126 if ( isset( $tools[
'deletedcontribs'] ) ) {
129 $tools, [
'contribs' => $contributionsLink ],
'deletedcontribs' );
130 unset( $tools[
'deletedcontribs'] );
132 $tools[
'contribs'] = $contributionsLink;
143 $messageKey =
'deletedcontributions-title';
144 if ( $this->tempUserConfig->isEnabled() && IPUtils::isIPAddress( $target->
getName() ) ) {
145 $messageKey .=
'-for-ip-when-temporary-accounts-enabled';
152class_alias( SpecialDeletedContributions::class,
'SpecialDeletedContributions' );
wfArrayInsertAfter(array $array, array $insert, $after)
Insert an array into another array after the specified key.
Show user contributions in a paged list.
UserIdentityLookup $userIdentityLookup
UserGroupAssignmentService $userGroupAssignmentService
NamespaceInfo $namespaceInfo
PermissionManager $permissionManager
UserOptionsLookup $userOptionsLookup
UserNamePrefixSearch $userNamePrefixSearch
IConnectionProvider $dbProvider
UserNameUtils $userNameUtils
DatabaseBlockStore $blockStore
Parent class for all special pages.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
getContext()
Gets the context this SpecialPage is executed in.