Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4062379
IPContributionsPagerFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
IPContributionsPagerFactory.php
View Options
<?php
namespace
MediaWiki\CheckUser\IPContributions
;
use
InvalidArgumentException
;
use
MediaWiki\Cache\LinkBatchFactory
;
use
MediaWiki\CheckUser\Services\CheckUserLookupUtils
;
use
MediaWiki\CommentFormatter\CommentFormatter
;
use
MediaWiki\Config\Config
;
use
MediaWiki\Context\IContextSource
;
use
MediaWiki\HookContainer\HookContainer
;
use
MediaWiki\JobQueue\JobQueueGroup
;
use
MediaWiki\Linker\LinkRenderer
;
use
MediaWiki\Revision\RevisionStore
;
use
MediaWiki\SpecialPage\ContributionsRangeTrait
;
use
MediaWiki\Title\NamespaceInfo
;
use
MediaWiki\User\TempUser\TempUserConfig
;
use
MediaWiki\User\UserFactory
;
use
MediaWiki\User\UserIdentity
;
class
IPContributionsPagerFactory
{
use
ContributionsRangeTrait
;
private
LinkRenderer
$linkRenderer
;
private
LinkBatchFactory
$linkBatchFactory
;
private
HookContainer
$hookContainer
;
private
RevisionStore
$revisionStore
;
private
NamespaceInfo
$namespaceInfo
;
private
CommentFormatter
$commentFormatter
;
private
UserFactory
$userFactory
;
private
TempUserConfig
$tempUserConfig
;
private
Config
$config
;
private
CheckUserLookupUtils
$lookupUtils
;
private
JobQueueGroup
$jobQueueGroup
;
public
function
__construct
(
LinkRenderer
$linkRenderer
,
LinkBatchFactory
$linkBatchFactory
,
HookContainer
$hookContainer
,
RevisionStore
$revisionStore
,
NamespaceInfo
$namespaceInfo
,
CommentFormatter
$commentFormatter
,
UserFactory
$userFactory
,
TempUserConfig
$tempUserConfig
,
Config
$config
,
CheckUserLookupUtils
$lookupUtils
,
JobQueueGroup
$jobQueueGroup
)
{
$this
->
linkRenderer
=
$linkRenderer
;
$this
->
linkBatchFactory
=
$linkBatchFactory
;
$this
->
hookContainer
=
$hookContainer
;
$this
->
revisionStore
=
$revisionStore
;
$this
->
namespaceInfo
=
$namespaceInfo
;
$this
->
commentFormatter
=
$commentFormatter
;
$this
->
userFactory
=
$userFactory
;
$this
->
tempUserConfig
=
$tempUserConfig
;
$this
->
config
=
$config
;
$this
->
lookupUtils
=
$lookupUtils
;
$this
->
jobQueueGroup
=
$jobQueueGroup
;
}
/**
* @param IContextSource $context
* @param array $options
* @param UserIdentity $target IP address for temporary user contributions lookup
* @return IPContributionsPager
*/
public
function
createPager
(
IContextSource
$context
,
array
$options
,
UserIdentity
$target
):
IPContributionsPager
{
$username
=
$target
->
getName
();
if
(
!
$this
->
isValidIPOrQueryableRange
(
$username
,
$this
->
config
)
)
{
throw
new
InvalidArgumentException
(
"Invalid target: $username"
);
}
return
new
IPContributionsPager
(
$this
->
linkRenderer
,
$this
->
linkBatchFactory
,
$this
->
hookContainer
,
$this
->
revisionStore
,
$this
->
namespaceInfo
,
$this
->
commentFormatter
,
$this
->
userFactory
,
$this
->
tempUserConfig
,
$this
->
lookupUtils
,
$this
->
jobQueueGroup
,
$context
,
$options
,
$target
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 10:38 (12 w, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
01/05/e18017b3acaefa4bf8efc0745711
Default Alt Text
IPContributionsPagerFactory.php (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment