MediaWiki
master
ImportLogFormatter.php
Go to the documentation of this file.
1
<?php
30
class
ImportLogFormatter
extends
LogFormatter
{
31
protected
function
getMessageKey
() {
32
$key = parent::getMessageKey();
33
$params
= $this->
extractParameters
();
34
if
( isset(
$params
[3] ) ) {
35
// New log items with more details
36
// Messages: logentry-import-upload-details, logentry-import-interwiki-details
37
$key .=
'-details'
;
38
}
39
40
return
$key;
41
}
42
}
$params
array $params
The job parameters.
Definition
UploadJobTrait.php:46
ImportLogFormatter
This class formats import log entries.
Definition
ImportLogFormatter.php:30
ImportLogFormatter\getMessageKey
getMessageKey()
Returns a key to be used for formatting the action sentence.
Definition
ImportLogFormatter.php:31
LogFormatter
Implements the default log formatting.
Definition
LogFormatter.php:59
LogFormatter\extractParameters
extractParameters()
Extracts the optional extra parameters for use in action messages.
Definition
LogFormatter.php:606
includes
logging
ImportLogFormatter.php
Generated on Wed Dec 4 2024 12:26:03 for MediaWiki by
1.10.0