Jump to content
MediaWiki

手册:钩子/RecentChange_save

From mediawiki.org
This page is a translated version of the page Manual:Hooks/RecentChange save and the translation is 57% complete.
RecentChange_save
自version 1.8.0 版可用
在RecentChange::save()末尾调用
定义函数:
public static function onRecentChange_save( RecentChange &$recentChange ) { ... }
附加钩子: extension.json中:
{
"Hooks":{
"RecentChange_save":"MediaWiki\\Extension\\MyExtension\\Hooks::onRecentChangesave"
}
}
调用自: 文件: RecentChanges/RecentChangeStore.php
介面: RecentChange_saveHook.php

更多有关附加钩子的信息,请参见钩子
有关使用此钩子的扩展示例,请参见Category:RecentChange_save extensions/zh

Hook to run once something is published to RecentChanges. This includes things published to "irc" RC feeds which might not be included in normal RecentChanges.

细节

  • $recentChange: 最近更改对象

See also

AltStyle によって変換されたページ (->オリジナル) /