1 | <?php |
||
8 | class elFinderVolumeGroup extends elFinderVolumeDriver |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * Driver id |
||
12 | * Must be started from letter and contains [a-z0-9] |
||
13 | * Used as part of volume id. |
||
14 | * |
||
15 | * @var string |
||
16 | **/ |
||
17 | protected $driverId = 'g'; |
||
18 | |||
19 | /** |
||
20 | * Constructor |
||
21 | * Extend options with required fields. |
||
22 | */ |
||
23 | public function __construct() |
||
46 | |||
47 | /*********************************************************************/ |
||
48 | /* FS API */ |
||
49 | /*********************************************************************/ |
||
50 | |||
51 | /*********************** paths/urls *************************/ |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | **/ |
||
56 | protected function _dirname($path) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | **/ |
||
64 | protected function _basename($path) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | **/ |
||
72 | protected function _joinPath($dir, $name) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | **/ |
||
80 | protected function _normpath($path) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | **/ |
||
88 | protected function _relpath($path) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | **/ |
||
96 | protected function _abspath($path) |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | **/ |
||
104 | protected function _path($path) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | **/ |
||
112 | protected function _inpath($path, $parent) |
||
116 | |||
117 | /***************** file stat ********************/ |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | **/ |
||
122 | protected function _stat($path) |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | **/ |
||
143 | protected function _subdirs($path) |
||
152 | |||
153 | /** |
||
154 | * {@inheritdoc} |
||
155 | **/ |
||
156 | protected function _dimensions($path, $mime) |
||
160 | |||
161 | /******************** file/dir content *********************/ |
||
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | **/ |
||
166 | protected function readlink($path) |
||
169 | |||
170 | /** |
||
171 | * {@inheritdoc} |
||
172 | **/ |
||
173 | protected function _scandir($path) |
||
177 | |||
178 | /** |
||
179 | * {@inheritdoc} |
||
180 | **/ |
||
181 | protected function _fopen($path, $mode = 'rb') |
||
185 | |||
186 | /** |
||
187 | * {@inheritdoc} |
||
188 | **/ |
||
189 | protected function _fclose($fp, $path = '') |
||
193 | |||
194 | /******************** file/dir manipulations *************************/ |
||
195 | |||
196 | /** |
||
197 | * {@inheritdoc} |
||
198 | **/ |
||
199 | protected function _mkdir($path, $name) |
||
203 | |||
204 | /** |
||
205 | * {@inheritdoc} |
||
206 | **/ |
||
207 | protected function _mkfile($path, $name) |
||
211 | |||
212 | /** |
||
213 | * {@inheritdoc} |
||
214 | **/ |
||
215 | protected function _symlink($source, $targetDir, $name) |
||
219 | |||
220 | /** |
||
221 | * {@inheritdoc} |
||
222 | **/ |
||
223 | protected function _copy($source, $targetDir, $name) |
||
227 | |||
228 | /** |
||
229 | * {@inheritdoc} |
||
230 | **/ |
||
231 | protected function _move($source, $targetDir, $name) |
||
235 | |||
236 | /** |
||
237 | * {@inheritdoc} |
||
238 | **/ |
||
239 | protected function _unlink($path) |
||
243 | |||
244 | /** |
||
245 | * {@inheritdoc} |
||
246 | **/ |
||
247 | protected function _rmdir($path) |
||
251 | |||
252 | /** |
||
253 | * {@inheritdoc} |
||
254 | **/ |
||
255 | protected function _save($fp, $dir, $name, $stat) |
||
259 | |||
260 | /** |
||
261 | * {@inheritdoc} |
||
262 | **/ |
||
263 | protected function _getContents($path) |
||
267 | |||
268 | /** |
||
269 | * {@inheritdoc} |
||
270 | **/ |
||
271 | protected function _filePutContents($path, $content) |
||
275 | |||
276 | /** |
||
277 | * {@inheritdoc} |
||
278 | **/ |
||
279 | protected function _checkArchivers() |
||
282 | |||
283 | /** |
||
284 | * {@inheritdoc} |
||
285 | **/ |
||
286 | protected function _chmod($path, $mode) |
||
290 | |||
291 | /** |
||
292 | * {@inheritdoc} |
||
293 | **/ |
||
294 | protected function _findSymlinks($path) |
||
298 | |||
299 | /** |
||
300 | * {@inheritdoc} |
||
301 | **/ |
||
302 | protected function _extract($path, $arc) |
||
306 | |||
307 | /** |
||
308 | * {@inheritdoc} |
||
309 | **/ |
||
310 | protected function _archive($dir, $files, $name, $arc) |
||
314 | } |
||
315 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.