mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
[ticket/11103] The service now handles all user loading itself
Delete pm notifications when pms are deleted PHPBB3-11103
This commit is contained in:
@@ -24,11 +24,31 @@ 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
|
||||
*
|
||||
@@ -36,11 +56,14 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
|
||||
*/
|
||||
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');
|
||||
|
Reference in New Issue
Block a user