MediaWiki
master
BlockIpHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MediaWiki\Block\DatabaseBlock
;
6
use
MediaWiki\User\User
;
7
15
interface
BlockIpHook
{
26
public
function
onBlockIp
( $block, $user, &$reason );
27
}
MediaWiki\Block\DatabaseBlock
A DatabaseBlock (unlike a SystemBlock) is stored in the database, may give rise to autoblocks and may...
Definition
DatabaseBlock.php:46
MediaWiki\User\User
User class for the MediaWiki software.
Definition
User.php:121
MediaWiki\Hook\BlockIpHook
This is a hook handler interface, see docs/Hooks.md.
Definition
BlockIpHook.php:15
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
includes
specials
Hook
BlockIpHook.php
Generated on Fri Apr 25 2025 15:28:21 for MediaWiki by
1.10.0