Debian Codegraph @

includes/diff/Hook/NewDifferenceEngineHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Diff\Hook;
4
5 use MediaWiki\Title\Title;
6
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "NewDifferenceEngine" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup Hooks
13 */
14 interface NewDifferenceEngineHook {
15 /**
16 * This hook is called when a new DifferenceEngine object is made.
17 *
18 * @since 1.35
19 *
20 * @param Title|null $title Diff page title
21 * @param int|false|null &$oldId Actual old ID to use in the diff
22 * @param int|false|null &$newId Actual new Id to use in the diff (0 means current)
23 * @param int $old ?old= param value from the URL
24 * @param int $new ?new= param value from the URL
25 * @return bool|void True or no return value to continue or false to abort
26 */
27 public function onNewDifferenceEngine( $title, &$oldId, &$newId, $old, $new );
28 }