Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
16 / 16 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
nestedset_forum | |
100.00% |
16 / 16 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
16 / 16 |
|
100.00% |
1 / 1 |
1 |
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 | namespace phpbb\tree; |
15 | |
16 | class nestedset_forum extends \phpbb\tree\nestedset |
17 | { |
18 | /** |
19 | * Construct |
20 | * |
21 | * @param \phpbb\db\driver\driver_interface $db Database connection |
22 | * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
23 | * @param string $table_name Table name |
24 | */ |
25 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name) |
26 | { |
27 | parent::__construct( |
28 | $db, |
29 | $lock, |
30 | $table_name, |
31 | 'FORUM_NESTEDSET_', |
32 | '', |
33 | array( |
34 | 'forum_id', |
35 | 'forum_name', |
36 | 'forum_type', |
37 | ), |
38 | array( |
39 | 'item_id' => 'forum_id', |
40 | 'item_parents' => 'forum_parents', |
41 | ) |
42 | ); |
43 | } |
44 | } |