Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6035010
Disallow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
860 B
Referenced Files
None
Subscribers
None
Disallow.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Consequences\Consequence
;
use
MediaWiki\Extension\AbuseFilter\Consequences\Parameters
;
use
MediaWiki\Extension\AbuseFilter\GlobalNameUtils
;
/**
* Consequence that simply disallows the ongoing action.
*/
class
Disallow
extends
Consequence
implements
HookAborterConsequence
{
/** @var string */
private
$message
;
public
function
__construct
(
Parameters
$parameters
,
string
$message
)
{
parent
::
__construct
(
$parameters
);
$this
->
message
=
$message
;
}
/**
* @inheritDoc
*/
public
function
execute
():
bool
{
return
true
;
}
/**
* @inheritDoc
*/
public
function
getMessage
():
array
{
$filter
=
$this
->
parameters
->
getFilter
();
return
[
$this
->
message
,
$filter
->
getName
(),
GlobalNameUtils
::
buildGlobalName
(
$filter
->
getID
(),
$this
->
parameters
->
getIsGlobalFilter
()
)
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 19:02 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d0/ce/f49ee680a79f3bdde76d6200b0aa
Default Alt Text
Disallow.php (860 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment