Manual:Hooks/RecentChange save/zh
From Linux Web Expert
RecentChange_save | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> 在RecentChange::save()末尾调用 | |
<translate> Define function:</translate> | public static function onRecentChange_save( RecentChange &$recentChange ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"RecentChange_save": "MediaWiki\\Extension\\MyExtension\\Hooks::onRecentChangesave"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> changes/RecentChange.php |
<translate> Interface:</translate> | RecentChange_saveHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:RecentChange_save extensions/zh</tvar>.</translate>
细节
- $recentChange: 最近更改对象