mediawiki-extensions-AbuseF.../includes/parser
Daimona Eaytoy 4720c97530 Add a new class for methods related to running filters
Currently we strongly abuse (pardon the pun) the AbuseFilter class: its
purpose should be to hold static functions intended as generic utility
functions (e.g. to format messages, determine whether a filter is global
etc.), but we actually use it for all methods related to running filters.
This patch creates a new class, AbuseFilterRunner, containing all such
methods, which have been made non-static. This leads to several
improvements (also for related methods and the parser), and opens the
way to further improve the code.
Aside from making the code prettier, less global and easier to test,
this patch could also produce a performance improvement, although I
don't have tools to measure that.
Also note that many public methods have been removed, and almost any of
them has been made protected; a couple of them (the ones used from outside)
are left for back-compat, and will be removed in the future.

Change-Id: I2eab2e50356eeb5224446ee2d0df9c787ae95b80
2019-07-23 19:06:27 +00:00
..
AbuseFilterCachingParser.php Initialize user-defined variables during shortcircuit 2019-07-23 12:20:53 +00:00
AbuseFilterParser.php Add a new class for methods related to running filters 2019-07-23 19:06:27 +00:00
AbuseFilterTokenizer.php Fix the regex for numbers, start deprecation of non-decimal numbers 2019-07-10 13:26:36 +00:00
AFPData.php Start using AFPData::DNONE 2019-07-14 08:48:47 +00:00
AFPException.php Move various classes to their own files 2016-12-17 11:40:10 -08:00
AFPParserState.php Revert "Revert "Add typehinting for every object-only parameter"" 2018-11-15 10:09:16 +01:00
AFPToken.php Add doc for every class member 2019-03-17 11:40:24 +01:00
AFPTreeNode.php Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
AFPTreeParser.php Disallow consecutive comparisons 2019-07-04 19:15:07 +02:00
AFPUserVisibleException.php Stop computing removed variables and show custom error message 2018-06-26 20:02:31 +02:00