Manual:Hooks/NewDifferenceEngine/ja
From Linux Web Expert
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>Manual:フック </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:NewDifferenceEngine extensions/ja</tvar>.</translate>
詳細
- $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