MediaWiki
master
ImportLogFormatter.php
Go to the documentation of this file.
1
<?php
25
namespace
MediaWiki\Logging
;
26
32
class
ImportLogFormatter
extends
LogFormatter
{
33
protected
function
getMessageKey
() {
34
$key = parent::getMessageKey();
35
$params = $this->
extractParameters
();
36
if
( isset( $params[3] ) ) {
37
// New log items with more details
38
// Messages: logentry-import-upload-details, logentry-import-interwiki-details
39
$key .=
'-details'
;
40
}
41
42
return
$key;
43
}
44
}
45
47
class_alias( ImportLogFormatter::class,
'ImportLogFormatter'
);
MediaWiki\Logging\ImportLogFormatter
This class formats import log entries.
Definition
ImportLogFormatter.php:32
MediaWiki\Logging\ImportLogFormatter\getMessageKey
getMessageKey()
Returns a key to be used for formatting the action sentence.
Definition
ImportLogFormatter.php:33
MediaWiki\Logging\LogFormatter
Implements the default log formatting.
Definition
LogFormatter.php:63
MediaWiki\Logging\LogFormatter\extractParameters
extractParameters()
Extracts the optional extra parameters for use in action messages.
Definition
LogFormatter.php:609
MediaWiki\Logging
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
BlockLogFormatter.php:25
includes
logging
ImportLogFormatter.php
Generated on Mon Mar 24 2025 23:36:37 for MediaWiki by
1.10.0