Debian Codegraph @

includes/specials/Hook/EmailUserHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MailAddress;
6 use MediaWiki\Status\Status;
7 use Wikimedia\Message\MessageSpecifier;
8
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "EmailUser" to register handlers implementing this interface.
12 *
13 * @ingroup Hooks
14 * @deprecated since 1.41 Handle the EmailUserSendEmail hook instead.
15 */
16 interface EmailUserHook {
17 /**
18 * This hook is called before sending email from one user to another.
19 *
20 * @since 1.35
21 *
22 * @param MailAddress &$to MailAddress object of receiving user
23 * @param MailAddress &$from MailAddress object of sending user
24 * @param string &$subject subject of the mail
25 * @param string &$text text of the mail
26 * @param bool|Status|MessageSpecifier|array &$error Out-param for an error.
27 * Should be set to a Status object or boolean false.
28 * @return bool|void True or no return value to continue or false to abort
29 */
30 public function onEmailUser( &$to, &$from, &$subject, &$text, &$error );
31 }