PluginProbe ʕ •ᴥ•ʔ
File Manager Pro – Filester / 2.0
File Manager Pro – Filester v2.0
2.1.1 trunk 1.6.1 1.7.6 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 2.0 2.0.1 2.0.2 2.1.0
filester / includes / File_manager / lib / php / elFinderVolumeGroup.class.php
filester / includes / File_manager / lib / php Last commit date
editors 9 months ago libs 9 months ago plugins 9 months ago resources 9 months ago MySQLStorage.sql 9 months ago autoload.php 9 months ago elFinder.class.php 9 months ago elFinderConnector.class.php 9 months ago elFinderFlysystemGoogleDriveNetmount.php 9 months ago elFinderPlugin.php 9 months ago elFinderSession.php 9 months ago elFinderSessionInterface.php 9 months ago elFinderVolumeBox.class.php 9 months ago elFinderVolumeDriver.class.php 9 months ago elFinderVolumeDropbox.class.php 9 months ago elFinderVolumeDropbox2.class.php 9 months ago elFinderVolumeFTP.class.php 9 months ago elFinderVolumeGoogleDrive.class.php 9 months ago elFinderVolumeGroup.class.php 9 months ago elFinderVolumeLocalFileSystem.class.php 9 months ago elFinderVolumeMySQL.class.php 9 months ago elFinderVolumeOneDrive.class.php 9 months ago elFinderVolumeSFTPphpseclib.class.php 9 months ago elFinderVolumeTrash.class.php 9 months ago elFinderVolumeTrashMySQL.class.php 9 months ago mime.types 9 months ago
elFinderVolumeGroup.class.php
316 lines
1 <?php
2
3 /**
4 * elFinder driver for Volume Group.
5 *
6 * @author Naoki Sawada
7 **/
8 class elFinderVolumeGroup extends elFinderVolumeDriver
9 {
10
11 /**
12 * Driver id
13 * Must be started from letter and contains [a-z0-9]
14 * Used as part of volume id
15 *
16 * @var string
17 **/
18 protected $driverId = 'g';
19
20
21 /**
22 * Constructor
23 * Extend options with required fields
24 */
25 public function __construct()
26 {
27 $this->options['type'] = 'group';
28 $this->options['path'] = '/';
29 $this->options['dirUrlOwn'] = true;
30 $this->options['syncMinMs'] = 0;
31 $this->options['tmbPath'] = '';
32 $this->options['disabled'] = array(
33 'archive',
34 'copy',
35 'cut',
36 'duplicate',
37 'edit',
38 'empty',
39 'extract',
40 'getfile',
41 'mkdir',
42 'mkfile',
43 'paste',
44 'resize',
45 'rm',
46 'upload'
47 );
48 }
49
50 /*********************************************************************/
51 /* FS API */
52 /*********************************************************************/
53
54 /*********************** paths/urls *************************/
55
56 /**
57 * @inheritdoc
58 **/
59 protected function _dirname($path)
60 {
61 return '/';
62 }
63
64 /**
65 * {@inheritDoc}
66 **/
67 protected function _basename($path)
68 {
69 return '';
70 }
71
72 /**
73 * {@inheritDoc}
74 **/
75 protected function _joinPath($dir, $name)
76 {
77 return '/' . $name;
78 }
79
80 /**
81 * {@inheritDoc}
82 **/
83 protected function _normpath($path)
84 {
85 return '/';
86 }
87
88 /**
89 * {@inheritDoc}
90 **/
91 protected function _relpath($path)
92 {
93 return '/';
94 }
95
96 /**
97 * {@inheritDoc}
98 **/
99 protected function _abspath($path)
100 {
101 return '/';
102 }
103
104 /**
105 * {@inheritDoc}
106 **/
107 protected function _path($path)
108 {
109 return '/';
110 }
111
112 /**
113 * {@inheritDoc}
114 **/
115 protected function _inpath($path, $parent)
116 {
117 return false;
118 }
119
120
121
122 /***************** file stat ********************/
123
124 /**
125 * {@inheritDoc}
126 **/
127 protected function _stat($path)
128 {
129 if ($path === '/') {
130 return array(
131 'size' => 0,
132 'ts' => 0,
133 'mime' => 'directory',
134 'read' => true,
135 'write' => false,
136 'locked' => true,
137 'hidden' => false,
138 'dirs' => 0
139 );
140 }
141 return false;
142 }
143
144 /**
145 * {@inheritDoc}
146 **/
147 protected function _subdirs($path)
148 {
149 return false;
150 }
151
152 /**
153 * {@inheritDoc}
154 **/
155 protected function _dimensions($path, $mime)
156 {
157 return false;
158 }
159 /******************** file/dir content *********************/
160
161 /**
162 * {@inheritDoc}
163 **/
164 protected function readlink($path)
165 {
166 return null;
167 }
168
169 /**
170 * {@inheritDoc}
171 **/
172 protected function _scandir($path)
173 {
174 return array();
175 }
176
177 /**
178 * {@inheritDoc}
179 **/
180 protected function _fopen($path, $mode = 'rb')
181 {
182 return false;
183 }
184
185 /**
186 * {@inheritDoc}
187 **/
188 protected function _fclose($fp, $path = '')
189 {
190 return true;
191 }
192
193 /******************** file/dir manipulations *************************/
194
195 /**
196 * {@inheritDoc}
197 **/
198 protected function _mkdir($path, $name)
199 {
200 return false;
201 }
202
203 /**
204 * {@inheritDoc}
205 **/
206 protected function _mkfile($path, $name)
207 {
208 return false;
209 }
210
211 /**
212 * {@inheritDoc}
213 **/
214 protected function _symlink($source, $targetDir, $name)
215 {
216 return false;
217 }
218
219 /**
220 * {@inheritDoc}
221 **/
222 protected function _copy($source, $targetDir, $name)
223 {
224 return false;
225 }
226
227 /**
228 * {@inheritDoc}
229 **/
230 protected function _move($source, $targetDir, $name)
231 {
232 return false;
233 }
234
235 /**
236 * {@inheritDoc}
237 **/
238 protected function _unlink($path)
239 {
240 return false;
241 }
242
243 /**
244 * {@inheritDoc}
245 **/
246 protected function _rmdir($path)
247 {
248 return false;
249 }
250
251 /**
252 * {@inheritDoc}
253 **/
254 protected function _save($fp, $dir, $name, $stat)
255 {
256 return false;
257 }
258
259 /**
260 * {@inheritDoc}
261 **/
262 protected function _getContents($path)
263 {
264 return false;
265 }
266
267 /**
268 * {@inheritDoc}
269 **/
270 protected function _filePutContents($path, $content)
271 {
272 return false;
273 }
274
275 /**
276 * {@inheritDoc}
277 **/
278 protected function _checkArchivers()
279 {
280 return;
281 }
282
283 /**
284 * {@inheritDoc}
285 **/
286 protected function _chmod($path, $mode)
287 {
288 return false;
289 }
290
291 /**
292 * {@inheritDoc}
293 **/
294 protected function _findSymlinks($path)
295 {
296 return false;
297 }
298
299 /**
300 * {@inheritDoc}
301 **/
302 protected function _extract($path, $arc)
303 {
304 return false;
305 }
306
307 /**
308 * {@inheritDoc}
309 **/
310 protected function _archive($dir, $files, $name, $arc)
311 {
312 return false;
313 }
314 }
315
316