MediaWiki REL1_31
TagLogFormatter.php
Go to the documentation of this file.
1<?php
33 protected function getMessageKey() {
34 $key = parent::getMessageKey();
36
37 $add = ( isset( $params[6] ) && isset( $params[6]['num'] ) && $params[6]['num'] );
38 $remove = ( isset( $params[8] ) && isset( $params[8]['num'] ) && $params[8]['num'] );
39 $key .= ( $remove ? ( $add ? '' : '-remove' ) : '-add' );
40
41 if ( isset( $params[3] ) && $params[3] ) {
42 // Messages: logentry-tag-update-add-revision, logentry-tag-update-remove-revision,
43 // logentry-tag-update-revision
44 $key .= '-revision';
45 } else {
46 // Messages: logentry-tag-update-add-logentry, logentry-tag-update-remove-logentry,
47 // logentry-tag-update-logentry
48 $key .= '-logentry';
49 }
50
51 return $key;
52 }
53}
Implements the default log formatting.
getMessageParameters()
Formats parameters intented for action message from array of all parameters.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
getMessageKey()
Returns a key to be used for formatting the action sentence.
$params