aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-08 23:42:29 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-13 22:41:14 +0200
commit06077d9970d16338f34c67dfec82e20ee703ddb0 (patch)
tree10a02d64c4cf799b70c51ffb71d431144207780b
parentbe0d4e20d4be8bc3217e5d025058e065b8f2071a (diff)
downloadforums-06077d9970d16338f34c67dfec82e20ee703ddb0.tar
forums-06077d9970d16338f34c67dfec82e20ee703ddb0.tar.gz
forums-06077d9970d16338f34c67dfec82e20ee703ddb0.tar.bz2
forums-06077d9970d16338f34c67dfec82e20ee703ddb0.tar.xz
forums-06077d9970d16338f34c67dfec82e20ee703ddb0.zip
[ticket/11444] BC layer
PHPBB3-11444
-rw-r--r--phpBB/includes/ucp/ucp_notifications.php2
-rw-r--r--phpBB/phpbb/notification/manager.php30
2 files changed, 31 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php
index 8e9fe2dfc1..c291cc1ddf 100644
--- a/phpBB/includes/ucp/ucp_notifications.php
+++ b/phpBB/includes/ucp/ucp_notifications.php
@@ -219,7 +219,7 @@ class ucp_notifications
{
$notification_methods = $phpbb_notifications->get_subscription_methods();
- foreach($notification_methods as $method => $method_data)
+ foreach ($notification_methods as $method => $method_data)
{
$template->assign_block_vars($block, array(
'METHOD' => $method_data['id'],
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php
index 6b69dca817..92c0703321 100644
--- a/phpBB/phpbb/notification/manager.php
+++ b/phpBB/phpbb/notification/manager.php
@@ -144,6 +144,21 @@ class manager
}
/**
+ * Mark notifications read or unread for all available methods
+ *
+ * @param bool|string|array $notification_type_name Type identifier or array of item types (only acceptable if the $data is identical for the specified types). False to mark read for all item types
+ * @param bool|int|array $item_id Item id or array of item ids. False to mark read for all item ids
+ * @param bool|int|array $user_id User id or array of user ids. False to mark read for all user ids
+ * @param bool|int $time Time at which to mark all notifications prior to as read. False to mark all as read. (Default: False)
+ *
+ * @deprecated since 3.2
+ */
+ public function mark_notifications_read($notification_type_name, $item_id, $user_id, $time = false)
+ {
+ $this->mark_notifications($notification_type_name, $item_id, $user_id, $time);
+ }
+
+ /**
* Mark notifications read or unread for all available methods
*
* @param bool|string|array $notification_type_name Type identifier or array of item types (only acceptable if the $data is identical for the specified types). False to mark read for all item types
@@ -174,6 +189,21 @@ class manager
}
/**
+ * Mark notifications read or unread from a parent identifier for all available methods
+ *
+ * @param string|array $notification_type_name Type identifier or array of item types (only acceptable if the $data is identical for the specified types)
+ * @param bool|int|array $item_parent_id Item parent id or array of item parent ids. False to mark read for all item parent ids
+ * @param bool|int|array $user_id User id or array of user ids. False to mark read for all user ids
+ * @param bool|int $time Time at which to mark all notifications prior to as read. False to mark all as read. (Default: False)
+ *
+ * @deprecated since 3.2
+ */
+ public function mark_notifications_read_by_parent($notification_type_name, $item_parent_id, $user_id, $time = false)
+ {
+ $this->mark_notifications_by_parent($notification_type_name, $item_parent_id, $user_id, $time);
+ }
+
+ /**
* Mark notifications read or unread from a parent identifier for all available methods
*
* @param string|array $notification_type_name Type identifier or array of item types (only acceptable if the $data is identical for the specified types)