aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notifications/method/base.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-09 10:19:46 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-09 10:19:46 -0500
commit4b4ea7c5cde7c9f3684ca325c110f81eda593d67 (patch)
tree6ab7dbfa564f09da17802c455296823b20de7b4c /phpBB/includes/notifications/method/base.php
parent2fb9f2ce6ad44e6dcacc6914379b09d795daace2 (diff)
downloadforums-4b4ea7c5cde7c9f3684ca325c110f81eda593d67.tar
forums-4b4ea7c5cde7c9f3684ca325c110f81eda593d67.tar.gz
forums-4b4ea7c5cde7c9f3684ca325c110f81eda593d67.tar.bz2
forums-4b4ea7c5cde7c9f3684ca325c110f81eda593d67.tar.xz
forums-4b4ea7c5cde7c9f3684ca325c110f81eda593d67.zip
[ticket/11103] The service now handles all user loading itself
Delete pm notifications when pms are deleted PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications/method/base.php')
-rw-r--r--phpBB/includes/notifications/method/base.php25
1 files changed, 24 insertions, 1 deletions
diff --git a/phpBB/includes/notifications/method/base.php b/phpBB/includes/notifications/method/base.php
index 98c06509c6..3ed9d3f33c 100644
--- a/phpBB/includes/notifications/method/base.php
+++ b/phpBB/includes/notifications/method/base.php
@@ -24,23 +24,46 @@ if (!defined('IN_PHPBB'))
abstract class phpbb_notifications_method_base implements phpbb_notifications_method_interface
{
protected $phpbb_container;
+ protected $service;
protected $db;
protected $user;
protected $phpbb_root_path;
protected $php_ext;
/**
+ * Desired notifications
+ * unique by (type, type_id, user_id, method)
+ * if multiple methods are desired, multiple rows will exist.
+ *
+ * method of "none" will over-ride any other options
+ *
+ * item_type
+ * item_id
+ * user_id
+ * method
+ * none (will never receive notifications)
+ * standard (listed in notifications window
+ * popup?
+ * email
+ * jabber
+ * sms?
+ */
+
+ /**
* Queue of messages to be sent
*
* @var array
*/
protected $queue = array();
- public function __construct(ContainerBuilder $phpbb_container, $data = array())
+ public function __construct(ContainerBuilder $phpbb_container)
{
// phpBB Container
$this->phpbb_container = $phpbb_container;
+ // Service
+ $this->service = $phpbb_container->get('notifications');
+
// Some common things we're going to use
$this->db = $phpbb_container->get('dbal.conn');
$this->user = $phpbb_container->get('user');