Go to file
jeblad 68ecb6f985 (Bug 42064) Add a hook to AbuseFilter
The hook 'AbuseFilter-interceptVariable' can be used
for intercepting any request to recalculate a variable,
and if a handler is returning false the later code
will be skipped. That makes it possible to avoid using
content if the content model is wrong, as it could be
for a Wikibase entity.

The hook uses the same arguments as the hook
'AbuseFilter-computeVariable', thereby making it simple
to move handlers around.

The arguments to the hook are
@param string $method
@param AbuseFilterVariableHolder $vars
@param array $parameters
@param AFPData|array|int|mixed|null|string &$result

Patchset 2: Fix for arg 1 to the hook, it got $this
	instead of $this->mMethod

Change-Id: I4944ea612369d6f96319e24c96d97cf9739358c7
2012-12-19 10:13:31 +01:00
api Merge "(bug 42814) Fix the visibility of action=query&list=abuselog" 2012-12-19 01:20:04 +00:00
db_patches Add Global Rules 2012-08-27 03:30:07 +00:00
modules Fix AbuseFilter JS 2012-10-26 16:21:08 +02:00
special (bug 34946) Make afl_user_text availible as $9 for log entries 2012-12-16 04:21:13 -06:00
tests svn:eol-style native 2009-04-09 20:45:31 +00:00
Views Merge "Run filter number through formatNum()" 2012-11-02 21:14:33 +00:00
.gitignore Add .gitignore 2012-05-21 01:27:29 +01:00
.gitreview Add .gitreview file 2012-03-22 13:55:41 -07:00
AbuseFilter.alias.php Localisation updates from http://translatewiki.net. 2012-12-02 20:36:26 +00:00
AbuseFilter.class.php Merge "(bug 22548) add boolean user_blocked variable" 2012-12-18 19:09:32 +00:00
AbuseFilter.hooks.php (Bug 42064) Add a hook to AbuseFilter 2012-12-19 10:13:31 +01:00
AbuseFilter.i18n.php Localisation updates from http://translatewiki.net. 2012-12-18 20:33:33 +00:00
AbuseFilter.parser.php Maintenance for AbuseFilter extension. 2012-10-09 22:26:45 +02:00
AbuseFilter.php Add option to have private filters notify UDP/RC (default: disabled) 2012-12-16 17:09:30 +01:00
abusefilter.tables.pg.sql Add Global Rules 2012-08-27 03:30:07 +00:00
abusefilter.tables.sql Add Global Rules 2012-08-27 03:30:07 +00:00
abusefilter.tables.sqlite.sql Add Global Rules 2012-08-27 03:30:07 +00:00
AbuseFilterVariableHolder.php (Bug 42064) Add a hook to AbuseFilter 2012-12-19 10:13:31 +01:00
AbuseLogHitFormatter.php Add a few bits of method documentation 2012-06-21 14:32:05 +01:00
phpTest.php Start removing/fixing calls to deprecated methods in WMF used extensions 2010-10-29 15:14:44 +00:00