1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 08:17:47 +02:00

[ticket/11103] Work on the pm type and email method

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-08 15:48:46 -05:00
parent 7b0b6fc63c
commit 7fee0cfdf6
7 changed files with 159 additions and 28 deletions

View File

@@ -26,6 +26,8 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
protected $phpbb_container;
protected $db;
protected $user;
protected $phpbb_root_path;
protected $php_ext;
/**
* Queue of messages to be sent
@@ -42,6 +44,9 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
// Some common things we're going to use
$this->db = $phpbb_container->get('dbal.conn');
$this->user = $phpbb_container->get('user');
$this->phpbb_root_path = $phpbb_container->getParameter('core.root_path');
$this->php_ext = $phpbb_container->getParameter('core.php_ext');
}
/**
@@ -65,7 +70,11 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
$this->notify($notification);
}
// Empty queue
$this->empty_queue();
}
protected function empty_queue()
{
$this->queue = array();
}
}