1 | <?php |
||
12 | class manager |
||
13 | { |
||
14 | /** @var \phpbb\auth\auth */ |
||
15 | protected $auth; |
||
16 | |||
17 | /** @var \phpbb\cache\driver\driver_interface */ |
||
18 | protected $cache; |
||
19 | |||
20 | /** @var \phpbb\config\config */ |
||
21 | protected $config; |
||
22 | |||
23 | /** @var \phpbb\db\driver\driver_interface */ |
||
24 | protected $db; |
||
25 | |||
26 | /** @var \phpbb\user */ |
||
27 | protected $user; |
||
28 | |||
29 | /** @var \acp_forums */ |
||
30 | protected $forum; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $phpbb_root_path; |
||
34 | |||
35 | /** @var string */ |
||
36 | protected $php_ext; |
||
37 | |||
38 | /** |
||
39 | * Constructor |
||
40 | * |
||
41 | * @param \phpbb\auth\auth $auth Auth object |
||
42 | * @param \phpbb\cache\driver\driver_interface $cache Cache driver interface |
||
43 | * @param \phpbb\config\config $config Config object |
||
44 | * @param \phpbb\db\driver\driver_interface $db Database object |
||
45 | * @param \phpbb\user $user User object |
||
46 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
47 | * @param string $php_ext php file extension |
||
48 | */ |
||
49 | 2 | public function __construct(\phpbb\auth\auth $auth, \phpbb\cache\driver\driver_interface $cache, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $php_ext) |
|
66 | |||
67 | /** |
||
68 | * @param array $forum_data |
||
69 | * @param int $forum_perm_from |
||
70 | * @return array |
||
71 | */ |
||
72 | 1 | public function add(array &$forum_data, $forum_perm_from = 0) |
|
97 | |||
98 | /** |
||
99 | * @param int $forum_id |
||
100 | * @param string $action_posts |
||
101 | * @param string $action_subforums |
||
102 | * @param int $posts_to_id |
||
103 | * @param int $subforums_to_id |
||
104 | */ |
||
105 | 1 | public function remove($forum_id, $action_posts = 'delete', $action_subforums = 'delete', $posts_to_id = 0, $subforums_to_id = 0) |
|
109 | } |
||
110 |