Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4149360
HookRunner.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
HookRunner.php
View Options
<?php
namespace
MediaWiki\CheckUser\Hook
;
use
MediaWiki\CheckUser\CheckUser\Pagers\AbstractCheckUserPager
;
use
MediaWiki\Context\IContextSource
;
use
MediaWiki\HookContainer\HookContainer
;
use
MediaWiki\RecentChanges\RecentChange
;
use
MediaWiki\User\UserIdentity
;
use
stdClass
;
class
HookRunner
implements
CheckUserFormatRowHook
,
CheckUserSubtitleLinksHook
,
CheckUserInsertChangesRowHook
,
CheckUserInsertLogEventRowHook
,
CheckUserInsertPrivateEventRowHook
,
CheckUserSuggestedInvestigationsBeforeCaseCreatedHook
,
CheckUserSuggestedInvestigationsGetSignalsHook
,
CheckUserSuggestedInvestigationsSignalMatchHook
,
SpecialCheckUserGetLinksFromRowHook
{
private
HookContainer
$container
;
public
function
__construct
(
HookContainer
$container
)
{
$this
->
container
=
$container
;
}
/** @inheritDoc */
public
function
onCheckUserFormatRow
(
IContextSource
$context
,
stdClass
$row
,
array
&
$rowItems
)
{
$this
->
container
->
run
(
'CheckUserFormatRow'
,
[
$context
,
$row
,
&
$rowItems
]
);
}
/** @inheritDoc */
public
function
onCheckUserSubtitleLinks
(
IContextSource
$context
,
array
&
$links
)
{
$this
->
container
->
run
(
'CheckUserSubtitleLinks'
,
[
$context
,
&
$links
]
);
}
/** @inheritDoc */
public
function
onCheckUserInsertChangesRow
(
string
&
$ip
,
&
$xff
,
array
&
$row
,
UserIdentity
$user
,
?
RecentChange
$rc
)
{
$this
->
container
->
run
(
'CheckUserInsertChangesRow'
,
[
&
$ip
,
&
$xff
,
&
$row
,
$user
,
$rc
]
);
}
/** @inheritDoc */
public
function
onCheckUserInsertLogEventRow
(
string
&
$ip
,
&
$xff
,
array
&
$row
,
UserIdentity
$user
,
int
$id
,
?
RecentChange
$rc
)
{
$this
->
container
->
run
(
'CheckUserInsertLogEventRow'
,
[
&
$ip
,
&
$xff
,
&
$row
,
$user
,
$id
,
$rc
]
);
}
/** @inheritDoc */
public
function
onCheckUserInsertPrivateEventRow
(
string
&
$ip
,
&
$xff
,
array
&
$row
,
UserIdentity
$user
,
?
RecentChange
$rc
)
{
$this
->
container
->
run
(
'CheckUserInsertPrivateEventRow'
,
[
&
$ip
,
&
$xff
,
&
$row
,
$user
,
$rc
]
);
}
/** @inheritDoc */
public
function
onCheckUserSuggestedInvestigationsBeforeCaseCreated
(
array
$signals
,
array
&
$users
):
void
{
$this
->
container
->
run
(
'CheckUserSuggestedInvestigationsBeforeCaseCreated'
,
[
$signals
,
&
$users
],
[
'abortable'
=>
false
]
);
}
/** @inheritDoc */
public
function
onCheckUserSuggestedInvestigationsGetSignals
(
array
&
$signals
):
void
{
$this
->
container
->
run
(
'CheckUserSuggestedInvestigationsGetSignals'
,
[
&
$signals
],
[
'abortable'
=>
false
]
);
}
/** @inheritDoc */
public
function
onCheckUserSuggestedInvestigationsSignalMatch
(
$userIdentity
,
string
$eventType
,
array
&
$signalMatchResults
):
void
{
$this
->
container
->
run
(
'CheckUserSuggestedInvestigationsSignalMatch'
,
[
$userIdentity
,
$eventType
,
&
$signalMatchResults
],
[
'abortable'
=>
false
]
);
}
/** @inheritDoc */
public
function
onSpecialCheckUserGetLinksFromRow
(
AbstractCheckUserPager
$specialCheckUser
,
stdClass
$row
,
array
&
$links
)
{
$this
->
container
->
run
(
'SpecialCheckUserGetLinksFromRow'
,
[
$specialCheckUser
,
$row
,
&
$links
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 19:09 (6 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
02/84/2bfb7e8f531a16bf4281a606fd0f
Default Alt Text
HookRunner.php (3 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment