Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:AbuseFilter/Hooks/AbuseFilter-computeVariable

From mediawiki.org
<Extension:AbuseFilter
AbuseFilter-computeVariable
Available from version 1.19.0
LikeAbuseFilter-interceptVariable but called if the requested method wasn't found.
Define function:
publicstaticfunctiononAbuseFilter_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, seeManual:Hooks.
For examples of other extensions using this hook, seeCategory:AbuseFilter-computeVariable extensions.

Returntrue 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
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:AbuseFilter/Hooks/AbuseFilter-computeVariable&oldid=6224680"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp