From 232f71dae43df9794184961431aca81d0e4652da Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 4 May 2015 10:11:28 +0200 Subject: [ticket/13782] Rename null log to dummy for PHP7 compatibility PHPBB3-13782 --- phpBB/phpbb/log/null.php | 81 ------------------------------------------------ 1 file changed, 81 deletions(-) delete mode 100644 phpBB/phpbb/log/null.php (limited to 'phpBB/phpbb/log/null.php') diff --git a/phpBB/phpbb/log/null.php b/phpBB/phpbb/log/null.php deleted file mode 100644 index baa78895ea..0000000000 --- a/phpBB/phpbb/log/null.php +++ /dev/null @@ -1,81 +0,0 @@ - -* @license GNU General Public License, version 2 (GPL-2.0) -* -* For full copyright and license information, please see -* the docs/CREDITS.txt file. -* -*/ - -namespace phpbb\log; - -/** -* Null logger -*/ -class null implements log_interface -{ - /** - * {@inheritdoc} - */ - public function is_enabled($type = '') - { - return false; - } - - /** - * {@inheritdoc} - */ - public function disable($type = '') - { - } - - /** - * {@inheritdoc} - */ - public function enable($type = '') - { - } - - /** - * {@inheritdoc} - */ - public function add($mode, $user_id, $log_ip, $log_operation, $log_time = false, $additional_data = array()) - { - return false; - } - - /** - * {@inheritdoc} - */ - public function delete($mode, $conditions = array()) - { - } - - /** - * {@inheritdoc} - */ - public function get_logs($mode, $count_logs = true, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $log_time = 0, $sort_by = 'l.log_time DESC', $keywords = '') - { - return array(); - } - - /** - * {@inheritdoc} - */ - public function get_log_count() - { - return 0; - } - - /** - * {@inheritdoc} - */ - public function get_valid_offset() - { - return 0; - } -} -- cgit v1.2.1