Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4074517
NotificationRequestJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
673 B
Referenced Files
None
Subscribers
None
NotificationRequestJob.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Push
;
use
Job
;
use
MediaWiki\Extension\Notifications\Services
;
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
Aug 17 2026, 15:55 (10 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a8/90/dc7458f76f1d5190e5e9bb99f211
Default Alt Text
NotificationRequestJob.php (673 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment