Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5959607
NotificationJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
NotificationJob.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Jobs
;
use
Job
;
use
MediaWiki\Extension\Notifications\Controller\NotificationController
;
use
MediaWiki\Extension\Notifications\Mapper\EventMapper
;
use
MediaWiki\Title\Title
;
class
NotificationJob
extends
Job
{
public
function
__construct
(
Title
$title
,
array
$params
)
{
$command
=
isset
(
$params
[
'jobReleaseTimestamp'
]
)
?
'DelayedEchoNotificationJob'
:
'EchoNotificationJob'
;
parent
::
__construct
(
$command
,
$title
,
$params
);
}
public
function
run
()
{
$eventMapper
=
new
EventMapper
();
$event
=
$eventMapper
->
fetchById
(
$this
->
params
[
'eventId'
],
true
);
NotificationController
::
notify
(
$event
,
false
);
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 06:41 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d5/33/cde74eabeaa888d0ac58bac2ec69
Default Alt Text
NotificationJob.php (693 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment