MediaWiki
master
UploadLogFormatter.php
Go to the documentation of this file.
1
<?php
30
class
UploadLogFormatter
extends
LogFormatter
{
31
32
protected
function
getParametersForApi
() {
33
$entry
= $this->entry;
34
$params
=
$entry
->
getParameters
();
35
36
static
$map = [
37
'img_timestamp'
=>
':timestamp:img_timestamp'
,
38
];
39
foreach
( $map as $index => $key ) {
40
if
( isset(
$params
[$index] ) ) {
41
$params
[$key] =
$params
[$index];
42
unset(
$params
[$index] );
43
}
44
}
45
46
return
$params
;
47
}
48
49
}
$params
array $params
The job parameters.
Definition
UploadJobTrait.php:45
LogFormatter
Implements the default log formatting.
Definition
LogFormatter.php:54
LogFormatter\$entry
LogEntryBase $entry
Definition
LogFormatter.php:88
UploadLogFormatter
This class formats upload log entries.
Definition
UploadLogFormatter.php:30
UploadLogFormatter\getParametersForApi
getParametersForApi()
Get the array of parameters, converted from legacy format if necessary.
Definition
UploadLogFormatter.php:32
LogEntry\getParameters
getParameters()
Get the extra parameters stored for this message.
includes
logging
UploadLogFormatter.php
Generated on Sun Oct 6 2024 10:24:08 for MediaWiki by
1.10.0