mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[ticket/11444] BC layer
PHPBB3-11444
This commit is contained in:
parent
be0d4e20d4
commit
06077d9970
2 changed files with 31 additions and 1 deletions
|
@ -143,6 +143,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
|
* Mark notifications read or unread for all available methods
|
||||||
*
|
*
|
||||||
|
@ -173,6 +188,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
|
* Mark notifications read or unread from a parent identifier for all available methods
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue