diff options
Diffstat (limited to 'phpBB/phpbb/notification/method/base.php')
| -rw-r--r-- | phpBB/phpbb/notification/method/base.php | 130 | 
1 files changed, 77 insertions, 53 deletions
| diff --git a/phpBB/phpbb/notification/method/base.php b/phpBB/phpbb/notification/method/base.php index 6ee1d2984a..4a183ca508 100644 --- a/phpBB/phpbb/notification/method/base.php +++ b/phpBB/phpbb/notification/method/base.php @@ -21,36 +21,6 @@ abstract class base implements \phpbb\notification\method\method_interface  	/** @var \phpbb\notification\manager */  	protected $notification_manager; -	/** @var \phpbb\user_loader */ -	protected $user_loader; - -	/** @var \phpbb\db\driver\driver_interface */ -	protected $db; - -	/** @var \phpbb\cache\driver\driver_interface */ -	protected $cache; - -	/** @var \phpbb\template\template */ -	protected $template; - -	/** @var \phpbb\extension\manager */ -	protected $extension_manager; - -	/** @var \phpbb\user */ -	protected $user; - -	/** @var \phpbb\auth\auth */ -	protected $auth; - -	/** @var \phpbb\config\config */ -	protected $config; - -	/** @var string */ -	protected $phpbb_root_path; - -	/** @var string */ -	protected $php_ext; -  	/**  	* Queue of messages to be sent  	* @@ -59,38 +29,43 @@ abstract class base implements \phpbb\notification\method\method_interface  	protected $queue = array();  	/** -	* Notification Method Base Constructor +	* Set notification manager (required)  	* -	* @param \phpbb\user_loader $user_loader -	* @param \phpbb\db\driver\driver_interface $db -	* @param \phpbb\cache\driver\driver_interface $cache -	* @param \phpbb\user $user -	* @param \phpbb\auth\auth $auth -	* @param \phpbb\config\config $config -	* @param string $phpbb_root_path -	* @param string $php_ext -	* @return \phpbb\notification\method\base +	* @param \phpbb\notification\manager $notification_manager  	*/ -	public function __construct(\phpbb\user_loader $user_loader, \phpbb\db\driver\driver_interface $db, \phpbb\cache\driver\driver_interface $cache, $user, \phpbb\auth\auth $auth, \phpbb\config\config $config, $phpbb_root_path, $php_ext) +	public function set_notification_manager(\phpbb\notification\manager $notification_manager)  	{ -		$this->user_loader = $user_loader; -		$this->db = $db; -		$this->cache = $cache; -		$this->user = $user; -		$this->auth = $auth; -		$this->config = $config; -		$this->phpbb_root_path = $phpbb_root_path; -		$this->php_ext = $php_ext; +		$this->notification_manager = $notification_manager;  	}  	/** -	* Set notification manager (required) +	* Is the method enable by default?  	* -	* @param \phpbb\notification\manager $notification_manager +	* @return bool  	*/ -	public function set_notification_manager(\phpbb\notification\manager $notification_manager) +	public function is_enabled_by_default()  	{ -		$this->notification_manager = $notification_manager; +		return false; +	} + +	/** +	* {@inheritdoc} +	*/ +	public function get_notified_users($notification_type_id, array $options) +	{ +		return array(); +	} + +	/** +	* {@inheritdoc} +	*/ +	public function load_notifications(array $options = array()) +	{ +		return array( +			'notifications'		=> array(), +			'unread_count'		=> 0, +			'total_count'		=> 0, +		);  	}  	/** @@ -104,6 +79,55 @@ abstract class base implements \phpbb\notification\method\method_interface  	}  	/** +	* {@inheritdoc} +	*/ +	public function update_notification($notification, array $data, array $options) +	{ +	} + +	/** +	* {@inheritdoc +	*/ +	public function mark_notifications($notification_type_id, $item_id, $user_id, $time = false, $mark_read = true) +	{ +	} + +	/** +	* {@inheritdoc} +	*/ +	public function mark_notifications_by_parent($notification_type_id, $item_parent_id, $user_id, $time = false, $mark_read = true) +	{ +	} + +	/** +	* {@inheritdoc} +	*/ +	public function mark_notifications_by_id($notification_id, $time = false, $mark_read = true) +	{ +	} + +	/** +	* {@inheritdoc} +	*/ +	public function delete_notifications($notification_type_id, $item_id, $parent_id = false, $user_id = false) +	{ +	} + +	/** +	* {@inheritdoc} +	*/ +	public function prune_notifications($timestamp, $only_read = true) +	{ +	} + +	/** +	* {@inheritdoc} +	*/ +	public function purge_notifications($notification_type_id) +	{ +	} + +	/**  	* Empty the queue  	*/  	protected function empty_queue() | 
