| Total Complexity | 7 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class filemanager |
||
| 17 | { |
||
| 18 | /** @var \phpbb\filesystem\filesystem */ |
||
| 19 | protected $filesystem; |
||
| 20 | |||
| 21 | /** @var \phpbb\user */ |
||
| 22 | protected $user; |
||
| 23 | |||
| 24 | /** @var string */ |
||
| 25 | protected $phpbb_root_path; |
||
| 26 | |||
| 27 | /** @var string */ |
||
| 28 | protected $user_dir = false; |
||
| 29 | |||
| 30 | /** @var string */ |
||
| 31 | protected $upload_dir = 'images/sitemaker_uploads/source/'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor |
||
| 35 | * |
||
| 36 | * @param \phpbb\filesystem\filesystem $filesystem File system |
||
| 37 | * @param \phpbb\user $user User object |
||
| 38 | * @param string $phpbb_root_path phpBB root path |
||
| 39 | */ |
||
| 40 | public function __construct(\phpbb\filesystem\filesystem $filesystem, \phpbb\user $user, $phpbb_root_path) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function get_upload_destination() |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function get_user_dir() |
||
| 59 | { |
||
| 60 | if (!$this->user_dir) |
||
| 61 | { |
||
| 62 | $this->set_user_dir(); |
||
| 63 | } |
||
| 64 | |||
| 65 | return $this->user_dir; |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | protected function set_user_dir() |
||
| 81 | } |
||
| 82 | } |
||
| 84 |