MediaWiki  master
BlockIpHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
6 use User;
7 
12 interface BlockIpHook {
23  public function onBlockIp( $block, $user, &$reason );
24 }
MediaWiki\Hook\BlockIpHook\onBlockIp
onBlockIp( $block, $user, &$reason)
This hook is called before an IP address or user is blocked.
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MediaWiki\Block\DatabaseBlock
A DatabaseBlock (unlike a SystemBlock) is stored in the database, may give rise to autoblocks and may...
Definition: DatabaseBlock.php:52
MediaWiki\Hook\BlockIpHook
Stable to implement.
Definition: BlockIpHook.php:12
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:55