Jump to content

Extension:AbuseFilter/Hooks/AbuseFilter-computeVariable/cs

From mediawiki.org
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