Page MenuHomeWickedGov Phorge

PermissionChangeLogFormatter.php
No OneTemporary

Size
823 B
Referenced Files
None
Subscribers
None

PermissionChangeLogFormatter.php

<?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

Mime Type
text/x-php
Expires
Aug 19 2026, 17:00 (4 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f2/6a/702a2dadf164f2095c9fbf52b5c5
Default Alt Text
PermissionChangeLogFormatter.php (823 B)

Event Timeline