From 8a6db445c54c92d8aec8364a23f2c670c4cacd17 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 29 Oct 2025 15:39:48 +0100 Subject: [PATCH] pass translator to notification service --- inc/inc.ClassNotificationService.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/inc.ClassNotificationService.php b/inc/inc.ClassNotificationService.php index edb301018..c9454e10a 100644 --- a/inc/inc.ClassNotificationService.php +++ b/inc/inc.ClassNotificationService.php @@ -41,6 +41,11 @@ class SeedDMS_NotificationService { */ protected $settings; + /* + * Translator + */ + protected $translator; + /* * Possible types of receivers */ @@ -52,11 +57,12 @@ class SeedDMS_NotificationService { const RECV_WORKFLOW = 5; const RECV_UPLOADER = 6; - public function __construct($logger = null, $settings = null) { /* {{{ */ + public function __construct($logger = null, $settings = null, $translator=null) { /* {{{ */ $this->services = array(); $this->errors = array(); $this->logger = $logger; $this->settings = $settings; + $this->translator = $translator; } /* }}} */ public function addService($service, $name='') { /* {{{ */ @@ -66,6 +72,10 @@ class SeedDMS_NotificationService { $this->errors[$name] = true; } /* }}} */ + public function getTranslator() { /* {{{ */ + return $this->translator; + } /* }}} */ + public function getServices() { /* {{{ */ return $this->services; } /* }}} */