Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427031
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, May 16, 14:06 (1 d, 16 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
38/6e/ad61d01b87e2bf03baf9d986ee70
Default Alt Text
NukeHookRunner.php (909 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment