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\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 "EmailUserPermissionsErrors" to register handlers implementing this interface. |
10 | * |
11 | * @ingroup Hooks |
12 | * @deprecated since 1.41 Handle the EmailUserAuthorizeSend hook instead. |
13 | */ |
14 | interface EmailUserPermissionsErrorsHook { |
15 | /** |
16 | * Use this hook to retrieve permissions errors for emailing a user. |
17 | * |
18 | * @since 1.35 |
19 | * |
20 | * @param User $user The user who is trying to email another user. |
21 | * @param string $editToken The user's edit token. |
22 | * @param bool|string|array &$hookErr Out-param for the error. Passed as the parameters to |
23 | * OutputPage::showErrorPage. |
24 | * @return bool|void True or no return value to continue or false to abort |
25 | */ |
26 | public function onEmailUserPermissionsErrors( $user, $editToken, &$hookErr ); |
27 | } |