aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification/method/method_interface.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-07-14 12:25:28 -0400
committerNils Adermann <naderman@naderman.de>2013-07-14 12:25:28 -0400
commitb81613e5e57fd208e832637b6886abf9ec806c4b (patch)
tree5dfec7ded65655a0cb1ca486d5c58698dd0cc5c2 /phpBB/phpbb/notification/method/method_interface.php
parentc15bde161a93fc2abc48cacd7e5a71c682880e52 (diff)
downloadforums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar.gz
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar.bz2
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar.xz
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.zip
[ticket/11700] With namespaces interface will no longer be a valid classname
PHPBB3-11700
Diffstat (limited to 'phpBB/phpbb/notification/method/method_interface.php')
-rw-r--r--phpBB/phpbb/notification/method/method_interface.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/phpBB/phpbb/notification/method/method_interface.php b/phpBB/phpbb/notification/method/method_interface.php
new file mode 100644
index 0000000000..b3ca757d5f
--- /dev/null
+++ b/phpBB/phpbb/notification/method/method_interface.php
@@ -0,0 +1,48 @@
+<?php
+/**
+*
+* @package notifications
+* @copyright (c) 2012 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
+* Base notifications method interface
+* @package notifications
+*/
+interface phpbb_notification_method_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
+ */
+ public function is_available();
+
+ /**
+ * Add a notification to the queue
+ *
+ * @param phpbb_notification_type_interface $notification
+ */
+ public function add_to_queue(phpbb_notification_type_interface $notification);
+
+ /**
+ * Parse the queue and notify the users
+ */
+ public function notify();
+}