Extension:ORES/Hooks/ORESCheckModels

From Linux Web Expert

Revision as of 23:21, 12 September 2020 by imported>SamanthaNguyen
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ORESCheckModels
Available from version ???
Allows modifying which models a revision should be scored with
Define function:
public static function onORESCheckModels( RecentChange $recentChange, array $models ) { ... }
Attach hook:
$wgHooks['ORESCheckModels'][] = 'MyExtensionHooks::onORESCheckModels';
Called from:File(s): ORES / includes/Hooks/RecentChangeSaveHookHandler.php
Function(s): handle

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:ORESCheckModels extensions.

Parameters

  • $rc: A RecentChange object
  • &$models: An array, representing a list of model names to score