< Extension:ORES < Hooks
| ORESRecentChangeScoreSavedHook | |
|---|---|
| Available from version ??? |
|
| Define function: | public static function onORESRecentChangeScoreSavedHook( ?MediaWiki\Revision\RevisionRecord $revision, array $scores ) { ... }
|
| Attach hook: | $wgHooks['ORESRecentChangeScoreSavedHook'][] = 'MyExtensionHooks::onORESRecentChangeScoreSavedHook';
|
| Called from: | File(s): ORES / includes/Services/FetchScoreJob.php Function(s): fireORESRecentChangeScoreSavedHook |
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:ORESRecentChangeScoreSavedHook extensions.
Parameters
$revision: An instance ofMediaWiki\Revision\RevisionRecord, ornullif no revision was round$scores: An array of scores, as returned byORES\Services\ScoreFetcher::getScores()
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.