Handbuch:Hooks/NewDifferenceEngine

From mediawiki.org
This page is a translated version of the page Manual:Hooks/NewDifferenceEngine and the translation is 25% complete.
NewDifferenceEngine
Erhältlich ab Version 1.15.0
Called when a new DifferenceEngine object is made.
Funktion definieren:
public static function onNewDifferenceEngine( $title, &$oldId, &$newId, $old, $new ) { ... }
Haken anbringen: In extension.json:
{
	"Hooks": {
		"NewDifferenceEngine": "MediaWiki\\Extension\\MyExtension\\Hooks::onNewDifferenceEngine"
	}
}
Angerufen von: Datei(en): diff/DifferenceEngine.php
Interface: NewDifferenceEngineHook.php

For more information about attaching hooks, see Handbuch:Hooks .
For examples of extensions using this hook, see Category:NewDifferenceEngine extensions/de.

Details

  • $title: the diff page title (nullable)
  • &$oldId: the actual old Id to use in the diff
  • &$newId: the actual new Id to use in the diff (0 means current)
  • $old: the ?old= param value from the url
  • $new: the ?new= param value from the url