Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5964376
Tag.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
831 B
Referenced Files
None
Subscribers
None
Tag.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Consequences\Consequence
;
use
MediaWiki\Extension\AbuseFilter\ChangeTags\ChangeTagger
;
use
MediaWiki\Extension\AbuseFilter\Consequences\Parameters
;
/**
* Consequence that adds change tags once the edit is saved
*/
class
Tag
extends
Consequence
{
/** @var string[] */
private
$tags
;
/** @var ChangeTagger */
private
$tagger
;
/**
* @param Parameters $parameters
* @param string[] $tags
* @param ChangeTagger $tagger
*/
public
function
__construct
(
Parameters
$parameters
,
array
$tags
,
ChangeTagger
$tagger
)
{
parent
::
__construct
(
$parameters
);
$this
->
tags
=
$tags
;
$this
->
tagger
=
$tagger
;
}
/**
* @inheritDoc
*/
public
function
execute
():
bool
{
$this
->
tagger
->
addTags
(
$this
->
parameters
->
getActionSpecifier
(),
$this
->
tags
);
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 10:16 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/7b/e475f0721dbaff285432f2b65dcd
Default Alt Text
Tag.php (831 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment