Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7423269
NukeHookRunner.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
845 B
Referenced Files
None
Subscribers
None
NukeHookRunner.php
View Options
<?php
namespace
MediaWiki\Extension\Nuke\Hooks
;
use
MediaWiki\HookContainer\HookContainer
;
use
MediaWiki\Title\Title
;
/**
* Handle running Nuke's hooks
* @author DannyS712
*/
class
NukeHookRunner
implements
NukeDeletePageHook
,
NukeGetNewPagesHook
{
public
function
__construct
(
private
readonly
HookContainer
$hookContainer
)
{
}
/**
* @inheritDoc
*/
public
function
onNukeDeletePage
(
Title
$title
,
string
$reason
,
bool
&
$deletionResult
)
{
return
$this
->
hookContainer
->
run
(
'NukeDeletePage'
,
[
$title
,
$reason
,
&
$deletionResult
]
);
}
/**
* @inheritDoc
*/
public
function
onNukeGetNewPages
(
string
$username
,
?
string
$pattern
,
?
int
$namespace
,
int
$limit
,
array
&
$pages
)
{
return
$this
->
hookContainer
->
run
(
'NukeGetNewPages'
,
[
$username
,
$pattern
,
$namespace
,
$limit
,
&
$pages
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 06:31 (21 h, 58 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9e/f1/18c30da1775caac4b013be22c038
Default Alt Text
NukeHookRunner.php (845 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment