|
MediaWiki master
|
Send email between two wiki users. More...
Public Member Functions | |
| __construct (private readonly ServiceOptions $options, HookContainer $hookContainer, private readonly UserOptionsLookup $userOptionsLookup, private readonly CentralIdLookup $centralIdLookup, private readonly UserFactory $userFactory, private readonly IEmailer $emailer, private readonly IMessageFormatterFactory $messageFormatterFactory, private readonly ITextFormatter $contLangMsgFormatter, private readonly 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 array | 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 | ( | private readonly ServiceOptions | $options, |
| HookContainer | $hookContainer, | ||
| private readonly UserOptionsLookup | $userOptionsLookup, | ||
| private readonly CentralIdLookup | $centralIdLookup, | ||
| private readonly UserFactory | $userFactory, | ||
| private readonly IEmailer | $emailer, | ||
| private readonly IMessageFormatterFactory | $messageFormatterFactory, | ||
| private readonly ITextFormatter | $contLangMsgFormatter, | ||
| private readonly Authority | $sender ) |
Definition at line 56 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::authorizeSend | ( | ) |
Authorize the email sending, checking permissions etc.
Definition at line 164 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::canSend | ( | ) |
Checks whether email sending is allowed.
Definition at line 121 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 193 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::setEditToken | ( | string | $token | ) |
Definition at line 376 of file EmailUser.php.
| MediaWiki\Mail\EmailUser::validateTarget | ( | UserEmailContact | $target | ) |
Definition at line 75 of file EmailUser.php.
| const array MediaWiki\Mail\EmailUser::CONSTRUCTOR_OPTIONS |
Definition at line 41 of file EmailUser.php.
Referenced by MediaWiki\Mail\EmailUserFactory\__construct().