Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7415158
NotificationRequestJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
NotificationRequestJob.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Push
;
use
MediaWiki\Extension\Notifications\Services
;
use
MediaWiki\JobQueue\Job
;
class
NotificationRequestJob
extends
Job
{
/**
* @return bool success
*/
public
function
run
():
bool
{
$centralId
=
$this
->
params
[
'centralId'
];
$echoServices
=
Services
::
getInstance
();
$subscriptionManager
=
$echoServices
->
getPushSubscriptionManager
();
$subscriptions
=
$subscriptionManager
->
getSubscriptionsForUser
(
$centralId
);
if
(
count
(
$subscriptions
)
===
0
)
{
return
true
;
}
$serviceClient
=
$echoServices
->
getPushNotificationServiceClient
();
$serviceClient
->
sendCheckEchoRequests
(
$subscriptions
);
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 02:01 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ac/7f/bdb71126150694968a9f5232c4ec
Default Alt Text
NotificationRequestJob.php (692 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment