Go to file
Matthias Mullie 84536df324 Removing AbuseFilter::checkConditions' param
I'm not really sure why it exists; I assume to minimize overhead of init'ing
multiple AbuseFilterParser objects that would be exactly the same.

However, checkConditions() - which checks one specific condition - is not really
an "endpoint" you will want to call in <your-extension-that-uses-AbuseFilter>.
You're more likely to call something higher-lever (like
AbuseFilter::filterAction, which will take care of fetching all appropriate
filters, as well as run them through checkConditions, and much more). This will
trickle down to ::checkAllFilter, down to ::checkFilter, which would eventually
call ::checkConditions with the 'keepvars' argument.
Basically, unless you're re-implementing much of AbuseFilter yourself, you won't
get to pass anything other than 'keepvars' to checkFilter.
As a result, even though you may call AbuseFilter to call on multiple different
vars, it will re-use the same parser with the first vars.

I'm proposing to drop the 'keepvars' and just keep the vars around instead.
checkFilter can compare previous vars with new vars, and only init a new Parser
if the vars are different.

Change-Id: I96ccc60c77f3cdbb82c0f9f16782a1a44ffb1592
2013-12-30 12:15:59 +01:00
api Ensure variables are defined 2013-11-06 17:09:24 +01:00
db_patches Adding back /*_*/ prefix to table in patch-afl_action_id.sql 2013-12-23 01:39:33 +01:00
maintenance Write maintenance script for AbuseFilter to purge old IP data from logs 2013-11-19 21:44:14 +00:00
modules Load filter conditions when the user presses ENTER 2013-07-23 14:01:02 -03:00
special Restore b/c for pre-1.23 MediaWiki versions 2013-12-27 01:32:24 -08:00
tests Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
Views Replace usage of SpecialPage::getTitle with getPageTitle 2013-12-26 22:36:34 -08:00
.gitignore Add .gitignore 2012-05-21 01:27:29 +01:00
.gitreview Add .gitreview file 2012-03-22 13:55:41 -07:00
.jshintrc Add .jshintrc for AbuseFilter and make it pass 2013-04-17 15:03:36 +02:00
AbuseFilter.alias.php Localisation updates from https://translatewiki.net. 2013-12-03 20:47:20 +00:00
AbuseFilter.class.php Removing AbuseFilter::checkConditions' param 2013-12-30 12:15:59 +01:00
AbuseFilter.hooks.php Remove unused local variables 2013-10-14 21:39:35 +02:00
AbuseFilter.i18n.php Localisation updates from https://translatewiki.net. 2013-12-29 19:27:06 +00:00
AbuseFilter.parser.php Declare visibility on class properties 2013-11-06 16:11:09 +00:00
AbuseFilter.php Write maintenance script for AbuseFilter to purge old IP data from logs 2013-11-19 21:44:14 +00: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 (bug 38371) Fixing SQL files for SQLite compatibility 2013-07-10 16:50:49 +02:00
AbuseFilterVariableHolder.php Declare class properties, update docs 2013-11-06 16:12:37 +00:00
AbuseLogHitFormatter.php Add a few bits of method documentation 2012-06-21 14:32:05 +01:00
composer.json Add composer.json 2013-02-14 13:41:40 +00:00
hooks.txt (bug 42064) AbuseFilter + EditFilterMergedContent 2013-01-17 11:18:28 +01:00