| | |
| | | <?php |
| | | namespace JVBase\rest\routes; |
| | | |
| | | use JVBase\Instance; |
| | | use JVBase\managers\Cache; |
| | | use JVBase\managers\CustomTable; |
| | | use JVBase\registrar\Registrar; |
| | |
| | | */ |
| | | class NotificationsRoutes extends Rest |
| | | { |
| | | use Instance; |
| | | protected int $user_id; |
| | | protected array $notification_types = []; |
| | | protected object $manager; |
| | |
| | | */ |
| | | public function init(): void |
| | | { |
| | | $this->manager = JVB()->notification(); |
| | | $this->manager = NotificationManager::getInstance(); |
| | | $this->notification_types = $this->manager->getNotificationTypes(true); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | if (!empty($queueData)) { |
| | | JVB()->queue()->queueOperation( |
| | | Queue::getInstance()->queueOperation( |
| | | 'notification_' . $action, |
| | | $args['user_id'], |
| | | $queueData |