MediaWiki REL1_39
ImportLogFormatter.php
Go to the documentation of this file.
1<?php
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}
This class formats import log entries.
getMessageKey()
Returns a key to be used for formatting the action sentence.
Implements the default log formatting.
extractParameters()
Extracts the optional extra parameters for use in action messages.