1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<?php
namespace MediaWiki\Hook;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ParserLimitReportFormat" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface ParserLimitReportFormatHook {
/**
* This hook is called for each row in the parser limit report that
* needs formatting. If nothing handles this hook, the default is to use "$key" to
* get the label, and "$key-value" or "$key-value-text"/"$key-value-html" to
* format the value.
*
* @since 1.35
*
* @param string $key Key for the limit report item
* @param string &$value Value of the limit report item
* @param string &$report String onto which to append the data
* @param bool $isHTML If true, $report is an HTML table with two columns; if false, it's
* text intended for display in a monospaced font
* @param bool $localize If false, $report should be output in English
* @return bool|void True or no return value to continue or false to abort
*/
public function onParserLimitReportFormat( $key, &$value, &$report, $isHTML,
$localize
);
}
|