Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/SpecialStatsAddExtra

From mediawiki.org
<Manual:Hooks
SpecialStatsAddExtra
Available fromversion 1.16.0 (r54516,CodeReview archive)
Can be used to add extra statistic at the end of Special:Statistics.
Define function:
publicstaticfunctiononSpecialStatsAddExtra(&$extraStats,IContextSource$context){...}
Attach hook:Inextension.json:
{"Hooks":{"SpecialStatsAddExtra":"MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialStatsAddExtra"}}
Called from:File(s):SpecialStatistics.php
Interface:SpecialStatsAddExtraHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:SpecialStatsAddExtra extensions.


Details

[edit]
  • &$extraStats: Array to save the new stats ( $extraStats['<name of statistic>'] => <value>; )
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/SpecialStatsAddExtra&oldid=4432582"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp