|
MediaWiki master
|
Send email between two wiki users. More...
Public Member Functions | |
| __construct (ServiceOptions $options, HookContainer $hookContainer, UserOptionsLookup $userOptionsLookup, CentralIdLookup $centralIdLookup, UserFactory $userFactory, IEmailer $emailer, IMessageFormatterFactory $messageFormatterFactory, ITextFormatter $contLangMsgFormatter, Authority $sender) | |
| authorizeSend () | |
| Authorize the email sending, checking permissions etc. | |
| canSend () | |
| Checks whether email sending is allowed. | |
| sendEmailUnsafe (UserEmailContact $target, string $subject, string $text, bool $CCMe, string $langCode) | |
| Really send a mail, without permission checks. | |
| setEditToken (string $token) | |
| validateTarget (UserEmailContact $target) | |
Public Attributes | |
| const | CONSTRUCTOR_OPTIONS |
Send email between two wiki users.
Obtain via EmailUserFactory
This class is stateless and can be used for multiple sends.
Definition at line 37 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::__construct | ( | ServiceOptions | $options, |
| HookContainer | $hookContainer, | ||
| UserOptionsLookup | $userOptionsLookup, | ||
| CentralIdLookup | $centralIdLookup, | ||
| UserFactory | $userFactory, | ||
| IEmailer | $emailer, | ||
| IMessageFormatterFactory | $messageFormatterFactory, | ||
| ITextFormatter | $contLangMsgFormatter, | ||
| Authority | $sender ) |
| ServiceOptions | $options | |
| HookContainer | $hookContainer | |
| UserOptionsLookup | $userOptionsLookup | |
| CentralIdLookup | $centralIdLookup | |
| UserFactory | $userFactory | |
| IEmailer | $emailer | |
| IMessageFormatterFactory | $messageFormatterFactory | |
| ITextFormatter | $contLangMsgFormatter | |
| Authority | $sender |
Definition at line 74 of file EmailUser.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
| MediaWiki\Mail\EmailUser::authorizeSend | ( | ) |
Authorize the email sending, checking permissions etc.
Definition at line 194 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::canSend | ( | ) |
Checks whether email sending is allowed.
Definition at line 151 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::sendEmailUnsafe | ( | UserEmailContact | $target, |
| string | $subject, | ||
| string | $text, | ||
| bool | $CCMe, | ||
| string | $langCode ) |
Really send a mail, without permission checks.
| UserEmailContact | $target | |
| string | $subject | |
| string | $text | |
| bool | $CCMe | |
| string | $langCode | Code of the language to be used for interface messages |
Definition at line 223 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::setEditToken | ( | string | $token | ) |
| string | $token |
Definition at line 409 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::validateTarget | ( | UserEmailContact | $target | ) |
| UserEmailContact | $target | Target user |
Definition at line 105 of file EmailUser.php.
| const MediaWiki\Mail\EmailUser::CONSTRUCTOR_OPTIONS |
Definition at line 41 of file EmailUser.php.
Referenced by MediaWiki\Mail\EmailUserFactory\__construct().