Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6069640
AbuseFilterModifyLogFormatter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AbuseFilterModifyLogFormatter.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\LogFormatter
;
use
MediaWiki\Logging\LogFormatter
;
use
MediaWiki\Message\Message
;
use
MediaWiki\SpecialPage\SpecialPage
;
class
AbuseFilterModifyLogFormatter
extends
LogFormatter
{
/**
* @return string
*/
protected
function
getMessageKey
()
{
$subtype
=
$this
->
entry
->
getSubtype
();
// Messages that can be used here:
// * abusefilter-logentry-create
// * abusefilter-logentry-modify
return
"abusefilter-logentry-$subtype"
;
}
/**
* @return array
*/
protected
function
extractParameters
()
{
$parameters
=
$this
->
entry
->
getParameters
();
if
(
$this
->
entry
->
isLegacy
()
)
{
[
$historyId
,
$filterId
]
=
$parameters
;
}
else
{
$historyId
=
$parameters
[
'historyId'
];
$filterId
=
$parameters
[
'newId'
];
}
$detailsTitle
=
SpecialPage
::
getTitleFor
(
'AbuseFilter'
,
"history/$filterId/diff/prev/$historyId"
);
$params
=
[];
$params
[
3
]
=
Message
::
rawParam
(
$this
->
makePageLink
(
$this
->
entry
->
getTarget
(),
[],
$this
->
msg
(
'abusefilter-log-detailedentry-local'
)
->
numParams
(
$filterId
)->
escaped
()
)
);
$params
[
4
]
=
Message
::
rawParam
(
$this
->
makePageLink
(
$detailsTitle
,
[],
$this
->
msg
(
'abusefilter-log-detailslink'
)->
escaped
()
)
);
return
$params
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 06:08 (6 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4a/6f/55db7de361c9559149752e6210b9
Default Alt Text
AbuseFilterModifyLogFormatter.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment