MediaWiki
master
ImportLogFormatter.php
Go to the documentation of this file.
1
<?php
11
namespace
MediaWiki\Logging
;
12
18
class
ImportLogFormatter
extends
LogFormatter
{
20
protected
function
getMessageKey
() {
21
$key = parent::getMessageKey();
22
$params = $this->
extractParameters
();
23
if
( isset( $params[3] ) ) {
24
// New log items with more details
25
// Messages: logentry-import-upload-details, logentry-import-interwiki-details
26
$key .=
'-details'
;
27
}
28
29
return
$key;
30
}
31
}
32
34
class_alias( ImportLogFormatter::class,
'ImportLogFormatter'
);
MediaWiki\Logging\ImportLogFormatter
This class formats import log entries.
Definition
ImportLogFormatter.php:18
MediaWiki\Logging\ImportLogFormatter\getMessageKey
getMessageKey()
Returns a key to be used for formatting the action sentence.Default is logentry-TYPE-SUBTYPE for mode...
Definition
ImportLogFormatter.php:20
MediaWiki\Logging\LogFormatter
Implements the default log formatting.
Definition
LogFormatter.php:50
MediaWiki\Logging\LogFormatter\extractParameters
extractParameters()
Extracts the optional extra parameters for use in action messages.
Definition
LogFormatter.php:604
MediaWiki\Logging
Definition
BlockLogFormatter.php:11
includes
Logging
ImportLogFormatter.php
Generated on Thu Jan 15 2026 02:25:12 for MediaWiki by
1.10.0