Manual:Hooks/NewDifferenceEngine/de

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
NewDifferenceEngine
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called when a new DifferenceEngine object is made.
<translate> Define function:</translate>
public static function onNewDifferenceEngine( $title, &$oldId, &$newId, $old, $new ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"NewDifferenceEngine": "MediaWiki\\Extension\\MyExtension\\Hooks::onNewDifferenceEngine"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> diff/DifferenceEngine.php
<translate> Interface:</translate> NewDifferenceEngineHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Handbuch:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:NewDifferenceEngine extensions/de</tvar>.</translate>

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