1 | <?php |
||
20 | class FileManager extends Object implements FileManagerInterface |
||
|
|||
21 | { |
||
22 | /** |
||
23 | * Path to catalog where you store uploaded files. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $filesRoot = '@webroot/uploads/banners'; |
||
28 | /** |
||
29 | * URL of uploaded files catalog. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $filesBaseUrl = '@web/uploads/banners'; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @param $filesRoot |
||
38 | */ |
||
39 | public function setFilesRoot($filesRoot) |
||
43 | |||
44 | /** |
||
45 | * @param $filesBaseUrl |
||
46 | */ |
||
47 | public function setFilesBaseUrl($filesBaseUrl) |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function init() |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function generateFileName($extension) |
||
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | * @return bool|string |
||
81 | */ |
||
82 | public function getImageSrc($fileName) |
||
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | * @return bool|string |
||
90 | */ |
||
91 | public function getImageUrl($fileName) |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function deleteFile($fileName) |
||
104 | } |
||
105 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.