MediaWiki  master
PingLimiterHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\User\Hook;
4 
5 use User;
6 
14 interface PingLimiterHook {
28  public function onPingLimiter( $user, $action, &$result, $incrBy );
29 }
MediaWiki\User\Hook\PingLimiterHook
This is a hook handler interface, see docs/Hooks.md.
Definition: PingLimiterHook.php:14
MediaWiki\User\Hook\PingLimiterHook\onPingLimiter
onPingLimiter( $user, $action, &$result, $incrBy)
Use this hook to override the results of User::pingLimiter().
MediaWiki\User\Hook
Definition: AutopromoteConditionHook.php:3
MediaWiki\$action
string $action
Cache what action this request is.
Definition: MediaWiki.php:45
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:63