MediaWiki master
UploadLogFormatter.php
Go to the documentation of this file.
1<?php
11namespace MediaWiki\Logging;
12
19
21 protected function getParametersForApi() {
23 $params = $entry->getParameters();
24
25 static $map = [
26 'img_timestamp' => ':timestamp:img_timestamp',
27 ];
28 foreach ( $map as $index => $key ) {
29 if ( isset( $params[$index] ) ) {
30 $params[$key] = $params[$index];
31 unset( $params[$index] );
32 }
33 }
34
35 return $params;
36 }
37
38}
39
41class_alias( UploadLogFormatter::class, 'UploadLogFormatter' );
Implements the default log formatting.
This class formats upload log entries.
getParametersForApi()
Get the array of parameters, converted from legacy format if necessary.1.25 to override array
getParameters()
Get the extra parameters stored for this message.