MediaWiki master
UploadLogFormatter.php
Go to the documentation of this file.
1<?php
25namespace MediaWiki\Logging;
26
33
34 protected function getParametersForApi() {
36 $params = $entry->getParameters();
37
38 static $map = [
39 'img_timestamp' => ':timestamp:img_timestamp',
40 ];
41 foreach ( $map as $index => $key ) {
42 if ( isset( $params[$index] ) ) {
43 $params[$key] = $params[$index];
44 unset( $params[$index] );
45 }
46 }
47
48 return $params;
49 }
50
51}
52
54class_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.
getParameters()
Get the extra parameters stored for this message.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...