Extension:AbuseFilter/Hooks/AbuseFilter-computeVariable/cs

AbuseFilter-computeVariable
Available from version 1.19.0
Jako AbuseFilter-interceptVariable , ale volá se, pokud požadovaná metoda nebyla nalezena.
Define function:
public static function onAbuseFilter_computeVariable( string $method, AbuseFilterVariableHolder $vars, array $parameters, &$result ) { ... }
Attach hook:
$wgHooks['AbuseFilter-computeVariable'][] = 'MyExtensionHooks::onAbuseFilter_computeVariable';
Called from:File(s): AbuseFilter / includes/AFComputedVariable.php
Function(s): compute

For more information about attaching hooks, see Příručka:Háčky .
For examples of other extensions using this hook, see Category:AbuseFilter-computeVariable extensions/cs.

Vrátí true, označující, že metoda je háčku známá a byla vypočítána úspěšně.

Parametry edit

  • $method: Metoda generování proměnné
  • $vars: AbuseFilterVariableHolder
  • $parameters: Parametry s daty pro výpočet hodnoty
  • &$result: Výsledek výpočtu