MediaWiki
REL1_41
EmailUserSendEmailHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Mail\Hook
;
4
5
use
MailAddress
;
6
use
MediaWiki\Mail\UserEmailContact
;
7
use
MediaWiki\Permissions\Authority
;
8
use
StatusValue
;
9
18
interface
EmailUserSendEmailHook
{
31
public
function
onEmailUserSendEmail
(
32
Authority
$from,
33
MailAddress
$fromAddress,
34
UserEmailContact
$to,
35
MailAddress
$toAddress,
36
string
$subject,
37
string
$text,
38
StatusValue
$status
39
);
40
}
MailAddress
Stores a single person's name and email address.
Definition
MailAddress.php:36
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:46
MediaWiki\Mail\Hook\EmailUserSendEmailHook
This is a hook handler interface, see docs/Hooks.md.
Definition
EmailUserSendEmailHook.php:18
MediaWiki\Mail\Hook\EmailUserSendEmailHook\onEmailUserSendEmail
onEmailUserSendEmail(Authority $from, MailAddress $fromAddress, UserEmailContact $to, MailAddress $toAddress, string $subject, string $text, StatusValue $status)
This hook is called before sending an email, when all other checks have succeeded.
MediaWiki\Mail\UserEmailContact
Definition
UserEmailContact.php:11
MediaWiki\Permissions\Authority
This interface represents the authority associated the current execution context, such as a web reque...
Definition
Authority.php:37
MediaWiki\Mail\Hook
Definition
EmailUserAuthorizeSendHook.php:3
includes
mail
Hook
EmailUserSendEmailHook.php
Generated on Wed Nov 27 2024 07:24:02 for MediaWiki by
1.10.0