1 | <?php |
||
14 | class nestedset_bbook_chapters extends \phpbb\tree\nestedset |
||
15 | { |
||
16 | /** |
||
17 | * Construct |
||
18 | * |
||
19 | * @param \phpbb\db\driver\driver_interface $db Database object |
||
20 | * @param \phpbb\lock\db $lock Lock the table when moving entities around |
||
21 | * @param string $table_name Table name |
||
22 | */ |
||
23 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name) |
||
41 | |||
42 | /** |
||
43 | * Get the category data from the database |
||
44 | * |
||
45 | * @param int $parent_id Parent to display categories from, 0 for all |
||
46 | * @return array |
||
47 | */ |
||
48 | public function get_cat_data($parent_id) |
||
52 | |||
53 | /** |
||
54 | * Update the tree for an item inserted in the database |
||
55 | * |
||
56 | * @param int $item_id The item to be added |
||
57 | * @return array |
||
58 | */ |
||
59 | public function add_to_nestedset($item_id) |
||
63 | } |
||
64 |