Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
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 "UserCanSendEmail" to register handlers implementing this interface. |
10 | * |
11 | * @ingroup Hooks |
12 | * @deprecated since 1.41, handle the EmailUserAuthorizeSend hook instead. |
13 | */ |
14 | interface UserCanSendEmailHook { |
15 | /** |
16 | * Use this hook to override User::canSendEmail() permission check. |
17 | * |
18 | * @since 1.35 |
19 | * |
20 | * @param User $user User (object) whose permission is being checked |
21 | * @param bool|string|array &$hookErr Out-param for the error. Passed as the parameters to |
22 | * OutputPage::showErrorPage. |
23 | * @return bool|void True or no return value to continue or false to abort |
24 | */ |
25 | public function onUserCanSendEmail( $user, &$hookErr ); |
26 | } |