diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-05-04 10:11:28 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-05-04 10:11:28 +0200 |
| commit | 232f71dae43df9794184961431aca81d0e4652da (patch) | |
| tree | bf49de5e5e66ad37d552d2fda7781fc92f3f4721 /phpBB/phpbb/log/dummy.php | |
| parent | b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8 (diff) | |
| download | forums-232f71dae43df9794184961431aca81d0e4652da.tar forums-232f71dae43df9794184961431aca81d0e4652da.tar.gz forums-232f71dae43df9794184961431aca81d0e4652da.tar.bz2 forums-232f71dae43df9794184961431aca81d0e4652da.tar.xz forums-232f71dae43df9794184961431aca81d0e4652da.zip | |
[ticket/13782] Rename null log to dummy for PHP7 compatibility
PHPBB3-13782
Diffstat (limited to 'phpBB/phpbb/log/dummy.php')
| -rw-r--r-- | phpBB/phpbb/log/dummy.php | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/phpBB/phpbb/log/dummy.php b/phpBB/phpbb/log/dummy.php new file mode 100644 index 0000000000..5c2d145e15 --- /dev/null +++ b/phpBB/phpbb/log/dummy.php @@ -0,0 +1,81 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @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; + +/** +* Dummy logger +*/ +class dummy 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; + } +} |
