1 | <?php |
||
15 | class setup |
||
16 | { |
||
17 | /** @var \phpbb\auth\auth */ |
||
18 | protected $auth; |
||
19 | |||
20 | /** @var \phpbb\config\config */ |
||
21 | protected $config; |
||
22 | |||
23 | /** @var \phpbb\filesystem\filesystem */ |
||
24 | protected $filesystem; |
||
25 | |||
26 | /** @var \phpbb\user */ |
||
27 | protected $user; |
||
28 | |||
29 | /** @var string */ |
||
30 | protected $config_path; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $phpbb_root_path; |
||
34 | |||
35 | /** @var string */ |
||
36 | protected $user_dir = false; |
||
37 | |||
38 | /** @var string */ |
||
39 | protected $thumbs_dir = 'images/sitemaker_uploads/thumbs/'; |
||
40 | |||
41 | /** @var string */ |
||
42 | protected $upload_dir = 'images/sitemaker_uploads/source/'; |
||
43 | |||
44 | /** |
||
45 | * Constructor |
||
46 | * |
||
47 | * @param \phpbb\auth\auth $auth Auth object |
||
48 | * @param \phpbb\config\config $config Config object |
||
49 | * @param \phpbb\filesystem\filesystem $filesystem File system |
||
50 | * @param \phpbb\user $user User object |
||
51 | * @param string $config_path path to filemanager config file |
||
52 | * @param string $phpbb_root_path phpBB root path |
||
53 | */ |
||
54 | 17 | public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\filesystem\filesystem $filesystem, \phpbb\user $user, $config_path, $phpbb_root_path) |
|
63 | |||
64 | /** |
||
65 | * @return bool |
||
66 | */ |
||
67 | 4 | public function is_enabled() |
|
71 | |||
72 | /** |
||
73 | * @return void |
||
74 | */ |
||
75 | 4 | public function get_access_key() |
|
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function get_upload_dir() |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function get_thumbs_dir() |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | 4 | public function get_upload_destination() |
|
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | 4 | public function get_user_dir() |
|
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | 4 | protected function set_user_dir() |
|
132 | } |
||
133 |