Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5986434
TranslateSandboxEmailJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
769 B
Referenced Files
None
Subscribers
None
TranslateSandboxEmailJob.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\TranslatorSandbox
;
use
Job
;
use
MediaWiki\MediaWikiServices
;
use
MediaWiki\Title\Title
;
class
TranslateSandboxEmailJob
extends
Job
{
public
static
function
newJob
(
array
$params
):
self
{
return
new
self
(
Title
::
newMainPage
(),
$params
);
}
public
function
__construct
(
Title
$title
,
array
$params
)
{
parent
::
__construct
(
'TranslateSandboxEmailJob'
,
$title
,
$params
);
}
public
function
run
():
bool
{
$status
=
MediaWikiServices
::
getInstance
()
->
getEmailer
()
->
send
(
[
$this
->
params
[
'to'
]
],
$this
->
params
[
'from'
],
$this
->
params
[
'subj'
],
$this
->
params
[
'body'
],
null
,
[
'replyTo'
=>
$this
->
params
[
'replyto'
]
]
);
return
$status
->
isOK
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:06 (2 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ce/6f/095b4208d8d98495d7932035a823
Default Alt Text
TranslateSandboxEmailJob.php (769 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment