Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
66.67% |
2 / 3 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
| phpbb_feed_attachments_mock_feed | |
66.67% |
2 / 3 |
|
50.00% |
1 / 2 |
2.15 | |
0.00% |
0 / 1 |
| get_sql | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| adjust_item | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | /** |
| 15 | * Board wide feed (aka overall feed) |
| 16 | * |
| 17 | * This will give you the newest {$this->num_items} posts |
| 18 | * from the whole board. |
| 19 | */ |
| 20 | class phpbb_feed_attachments_mock_feed extends \phpbb\feed\attachments_base |
| 21 | { |
| 22 | public $topic_ids = array(); |
| 23 | public $post_ids = array(); |
| 24 | |
| 25 | function get_sql() |
| 26 | { |
| 27 | parent::fetch_attachments($this->post_ids, $this->topic_ids); |
| 28 | |
| 29 | return true; |
| 30 | } |
| 31 | |
| 32 | public function adjust_item(&$item_row, &$row) |
| 33 | { |
| 34 | return array(); |
| 35 | } |
| 36 | } |