MediaWiki REL1_40
MediaWiki\User\Hook\UserIsBlockedGloballyHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onUserIsBlockedGlobally ( $user, $ip, &$blocked, &$block)
 Use this hook to establish that a user is blocked on all wikis.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserIsBlockedGlobally" to register handlers implementing this interface.

Stability: stable
to implement
Deprecated
since 1.40. Use GetUserBlockHook instead.

Definition at line 15 of file UserIsBlockedGloballyHook.php.

Member Function Documentation

◆ onUserIsBlockedGlobally()

MediaWiki\User\Hook\UserIsBlockedGloballyHook::onUserIsBlockedGlobally ( $user,
$ip,
& $blocked,
& $block )

Use this hook to establish that a user is blocked on all wikis.

Since
1.35
Parameters
User$user
string$ipUser's IP address
bool&$blockedWhether the user is blocked, to be modified by the hook
null&$blockThe Block object, to be modified by the hook
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: