mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
pass translator to notification service
This commit is contained in:
parent
caa0e3f139
commit
8a6db445c5
|
|
@ -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;
|
||||
} /* }}} */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user