Content-Length: 56567 | pFad | http://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/AbuseFilter-computeVariable

Extension:AbuseFilter/Hooks/AbuseFilter-computeVariable - MediaWiki Jump to content

Extension:AbuseFilter/Hooks/AbuseFilter-computeVariable

From mediawiki.org
AbuseFilter-computeVariable
Available from version 1.19.0
Like AbuseFilter-interceptVariable but called if the requested method wasn't found.
Define function:
public static function onAbuseFilter_computeVariable( string $method, MediaWiki\Extension\AbuseFilter\Variables\VariableHolder $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 Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilter-computeVariable extensions.

Return true to indicate that the method is known to the hook and was computed successful.

Parameters

[edit]
  • $method: Method to generate the variable
  • $vars: AbuseFilterVariableHolder
  • $parameters: Parameters with data to compute the value
  • &$result: Result of the computation








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/AbuseFilter-computeVariable

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy