Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5980439
NukeHookRunner.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
909 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
{
private
HookContainer
$hookContainer
;
public
function
__construct
(
HookContainer
$hookContainer
)
{
$this
->
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
Sat, Oct 3, 21:23 (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1b/9b/e0660f02797c51b5d1b9e50cd1e7
Default Alt Text
NukeHookRunner.php (909 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment