MediaWiki
master
EmailUserHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MailAddress
;
6
use
MediaWiki\Status\Status
;
7
use
Wikimedia\Message\MessageSpecifier
;
8
16
interface
EmailUserHook
{
30
public
function
onEmailUser
( &$to, &$from, &$subject, &$text, &$error );
31
}
MailAddress
Represent and format a single name and email address pair for SMTP.
Definition
MailAddress.php:36
MediaWiki\Status\Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
Status.php:54
MediaWiki\Hook\EmailUserHook
This is a hook handler interface, see docs/Hooks.md.
Definition
EmailUserHook.php:16
MediaWiki\Hook\EmailUserHook\onEmailUser
onEmailUser(&$to, &$from, &$subject, &$text, &$error)
This hook is called before sending email from one user to another.
Wikimedia\Message\MessageSpecifier
Definition
MessageSpecifier.php:26
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
specials
Hook
EmailUserHook.php
Generated on Sat Nov 2 2024 20:25:39 for MediaWiki by
1.10.0