MediaWiki REL1_39
MediaWiki\Diff\Hook\NewDifferenceEngineHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Diff\Hook\NewDifferenceEngineHook:

Public Member Functions

 onNewDifferenceEngine ( $title, &$oldId, &$newId, $old, $new)
 This hook is called when a new DifferenceEngine object is made.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "NewDifferenceEngine" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file NewDifferenceEngineHook.php.

Member Function Documentation

◆ onNewDifferenceEngine()

MediaWiki\Diff\Hook\NewDifferenceEngineHook::onNewDifferenceEngine ( $title,
& $oldId,
& $newId,
$old,
$new )

This hook is called when a new DifferenceEngine object is made.

Since
1.35
Parameters
Title | null$titleDiff page title
int | false | null&$oldIdActual old ID to use in the diff
int | false | null&$newIdActual new Id to use in the diff (0 means current)
int$old?old= param value from the URL
int$new?new= param value from the URL
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: