aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notification/method
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2012-11-09 07:40:08 -0600
committerNathaniel Guse <nathaniel.guse@gmail.com>2012-11-09 07:40:08 -0600
commitf09ee162528d931aabc3f216410d02d3a072c21d (patch)
tree22f20e453d830258f65f318c39a59ff6354cabbc /phpBB/includes/notification/method
parent03e348cf58c9b71ab00f0badb76a4426c2c71289 (diff)
downloadforums-f09ee162528d931aabc3f216410d02d3a072c21d.tar
forums-f09ee162528d931aabc3f216410d02d3a072c21d.tar.gz
forums-f09ee162528d931aabc3f216410d02d3a072c21d.tar.bz2
forums-f09ee162528d931aabc3f216410d02d3a072c21d.tar.xz
forums-f09ee162528d931aabc3f216410d02d3a072c21d.zip
[ticket/11103] Use phpBB Container to load types/methods
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notification/method')
-rw-r--r--phpBB/includes/notification/method/email.php10
-rw-r--r--phpBB/includes/notification/method/interface.php7
-rw-r--r--phpBB/includes/notification/method/jabber.php10
3 files changed, 27 insertions, 0 deletions
diff --git a/phpBB/includes/notification/method/email.php b/phpBB/includes/notification/method/email.php
index df7edb13e7..a47284bc61 100644
--- a/phpBB/includes/notification/method/email.php
+++ b/phpBB/includes/notification/method/email.php
@@ -24,6 +24,16 @@ if (!defined('IN_PHPBB'))
class phpbb_notification_method_email extends phpbb_notification_method_base
{
/**
+ * Get notification method name
+ *
+ * @return string
+ */
+ public function get_type()
+ {
+ return 'email';
+ }
+
+ /**
* Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication)
*
* @var mixed
diff --git a/phpBB/includes/notification/method/interface.php b/phpBB/includes/notification/method/interface.php
index 3c6c757d5c..ef875942cc 100644
--- a/phpBB/includes/notification/method/interface.php
+++ b/phpBB/includes/notification/method/interface.php
@@ -22,6 +22,13 @@ if (!defined('IN_PHPBB'))
interface phpbb_notification_method_interface
{
/**
+ * Get notification method name
+ *
+ * @return string
+ */
+ public function get_type();
+
+ /**
* Is this method available for the user?
* This is checked on the notifications options
*/
diff --git a/phpBB/includes/notification/method/jabber.php b/phpBB/includes/notification/method/jabber.php
index 664e387d61..fc43d8d4b9 100644
--- a/phpBB/includes/notification/method/jabber.php
+++ b/phpBB/includes/notification/method/jabber.php
@@ -24,6 +24,16 @@ if (!defined('IN_PHPBB'))
class phpbb_notification_method_jabber extends phpbb_notification_method_email
{
/**
+ * Get notification method name
+ *
+ * @return string
+ */
+ public function get_type()
+ {
+ return 'jabber';
+ }
+
+ /**
* Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication)
*
* @var mixed