Source of file SendPushNotificationsJob.php
Size: 0,552 Bytes - Last Modified: 2021-12-23T10:26:32+00:00
/var/www/docs.ssmods.com/process/src/code/jobs/SendPushNotificationsJob.php
123456789101112131415161718192021222324252627 | <?php /** * @package silverstripe-push */ class SendPushNotificationsJob extends AbstractQueuedJob { public function __construct($notification) { if ($notification) { $this->setObject($notification); } } public function getTitle() { $message = _t('Push.SENDNOTIFICATIONSFOR', 'Send notifications for "%s"'); return sprintf($message, $this->getObject()->Title); } public function process() { $this->getObject()->doSend(); $this->isComplete = true; } } |