1 | <?php |
||
20 | class FileManager extends Component |
||
21 | { |
||
22 | /** |
||
23 | * @var string Directory to upload files protected, not accessible from the web |
||
24 | */ |
||
25 | public $uploadDirProtected = '@runtime'; |
||
26 | /** |
||
27 | * @var string Directory to upload files, accessible from the web |
||
28 | */ |
||
29 | public $uploadDirUnprotected = '@app/web'; |
||
30 | /** |
||
31 | * @var string Public path to files |
||
32 | */ |
||
33 | public $publicPath = 'uploads'; |
||
34 | /** |
||
35 | * @var array Type of owner in format: title:string => type:int |
||
36 | */ |
||
37 | public $ownerTypes = []; |
||
38 | |||
39 | /** |
||
40 | * @internal |
||
41 | */ |
||
42 | 1 | public function init() |
|
48 | |||
49 | /** |
||
50 | * Get owner type |
||
51 | * |
||
52 | * @param string $ownerType The type of the owner |
||
53 | * @return void |
||
54 | * @throws InvalidParamException |
||
55 | */ |
||
56 | 37 | public function getOwnerType($ownerType) |
|
64 | |||
65 | /** |
||
66 | * Registers translator |
||
67 | * @internal |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | 49 | public function registerTranslations() |
|
81 | } |
||
82 |