Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4143909
PermissionChangeLogFormatter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
823 B
Referenced Files
None
Subscribers
None
PermissionChangeLogFormatter.php
View Options
<?php
namespace
MediaWiki\Extension\CentralAuth\LogFormatter
;
use
LogFormatter
;
/**
* Handles the following log types:
* - gblrights/groupprms2
*/
class
PermissionChangeLogFormatter
extends
LogFormatter
{
private
function
makeRightsList
(
array
$ids
):
string
{
return
$ids
!==
[]
?
$this
->
formatParameterValue
(
'list'
,
$ids
)
:
$this
->
msg
(
'rightsnone'
)->
text
();
}
/** @inheritDoc */
protected
function
getMessageKey
()
{
return
'logentry-gblrights-groupprms2'
;
}
protected
function
extractParameters
()
{
if
(
$this
->
entry
->
isLegacy
()
)
{
return
parent
::
extractParameters
();
}
[
'addRights'
=>
$addRights
,
'removeRights'
=>
$removeRights
]
=
$this
->
entry
->
getParameters
();
return
[
3
=>
$this
->
makeRightsList
(
$addRights
),
4
=>
$this
->
makeRightsList
(
$removeRights
),
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 17:00 (4 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f2/6a/702a2dadf164f2095c9fbf52b5c5
Default Alt Text
PermissionChangeLogFormatter.php (823 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment