Page MenuHomeWickedGov Phorge

AbuseFilterGenerateVarsForRecentChangeHook.php
No OneTemporary

Size
987 B
Referenced Files
None
Subscribers
None

AbuseFilterGenerateVarsForRecentChangeHook.php

<?php
namespace MediaWiki\Extension\AbuseFilter\Hooks;
use MediaWiki\Extension\AbuseFilter\VariableGenerator\RCVariableGenerator;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\User\User;
use RecentChange;
interface AbuseFilterGenerateVarsForRecentChangeHook {
/**
* Hook runner for the `AbuseFilterGenerateVarsForRecentChange` hook
*
* Hook that allows extensions to generate variables from a RecentChange row with a non-standard model.
* The hooks `AbuseFilterGenerate(Title|User|Generic)Hook` should be used for computing single variables
* in standard RC rows.
*
* @param RCVariableGenerator $generator
* @param RecentChange $rc
* @param VariableHolder $vars
* @param User $contextUser
* @return bool|void True or no return value to continue or false to abort
*/
public function onAbuseFilterGenerateVarsForRecentChange(
RCVariableGenerator $generator,
RecentChange $rc,
VariableHolder $vars,
User $contextUser
);
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 13:27 (1 d, 18 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
eb/05/f1067f100c0b4e16b0fac3f61ba3
Default Alt Text
AbuseFilterGenerateVarsForRecentChangeHook.php (987 B)

Event Timeline