1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00
php-phpbb/tests/mock/notification_manager.php
Nathan Guse e549b7663d [ticket/11103] Set basic notifications to be enabled by default
Now, if there is no row for the user in the user_notifications table,
the user will receive basic notifications. If the user wishes to not
receive notifications, a row must be added with notify = 0.

For other methods besides the basic (e.g. email, jabber) a row must
still be added with notify = 1 for them to receive notifications

PHPBB3-11103
2012-10-29 18:09:20 -05:00

95 lines
1.2 KiB
PHP

<?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;
}
/**
* Notifications service class
* @package notifications
*/
class phpbb_mock_notification_manager
{
public function load_notifications()
{
return array(
'notifications' => array(),
'unread_count' => 0,
);
}
public function mark_notifications_read()
{
}
public function mark_notifications_read_by_parent()
{
}
public function mark_notifications_read_by_id()
{
}
public function add_notifications()
{
return array();
}
public function add_notifications_for_users()
{
}
public function update_notifications()
{
}
public function delete_notifications()
{
}
public function get_subscription_types()
{
return array();
}
public function get_subscription_methods()
{
return array();
}
public function get_global_subscriptions()
{
return array();
}
public function add_subscription()
{
}
public function delete_subscription()
{
}
public function load_users()
{
}
public function get_user()
{
return null;
}
}