mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 18:58:17 +00:00
68ecb6f985
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 |
||
---|---|---|
api | ||
db_patches | ||
modules | ||
special | ||
tests | ||
Views | ||
.gitignore | ||
.gitreview | ||
AbuseFilter.alias.php | ||
AbuseFilter.class.php | ||
AbuseFilter.hooks.php | ||
AbuseFilter.i18n.php | ||
AbuseFilter.parser.php | ||
AbuseFilter.php | ||
abusefilter.tables.pg.sql | ||
abusefilter.tables.sql | ||
abusefilter.tables.sqlite.sql | ||
AbuseFilterVariableHolder.php | ||
AbuseLogHitFormatter.php | ||
phpTest.php |