Debian Codegraph @

includes/user/Hook/UserIsBlockedGloballyHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\User\Hook;
4
5 use MediaWiki\User\User;
6
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "UserIsBlockedGlobally" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup Hooks
13 * @deprecated since 1.40. Use GetUserBlockHook instead.
14 */
15 interface UserIsBlockedGloballyHook {
16 /**
17 * Use this hook to establish that a user is blocked on all wikis.
18 *
19 * @since 1.35
20 *
21 * @param User $user
22 * @param string $ip User's IP address
23 * @param bool &$blocked Whether the user is blocked, to be modified by the hook
24 * @param null &$block The Block object, to be modified by the hook
25 * @return bool|void True or no return value to continue or false to abort
26 */
27 public function onUserIsBlockedGlobally( $user, $ip, &$blocked, &$block );
28 }