PluginProbe ʕ •ᴥ•ʔ
Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution / trunk
Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution vtrunk
trunk 4.1.5 4.1.6 5.0 5.2.13 5.2.14 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.4.0 5.4.1 5.4.10 5.4.11 5.4.12 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6 5.4.7 5.4.8
file-manager-advanced / application / library / php / elFinderVolumeGroup.class.php
file-manager-advanced / application / library / php Last commit date
.tmp 10 months ago editors 4 weeks ago libs 7 years ago plugins 3 years ago resources 7 years ago MySQLStorage.sql 1 year ago autoload.php 10 months ago connector.maximal.php-dist 1 year ago connector.minimal.php-dist 1 year ago elFinder.class.php 4 weeks ago elFinderConnector.class.php 4 weeks ago elFinderFlysystemGoogleDriveNetmount.php 5 years ago elFinderPlugin.php 7 years ago elFinderSession.php 4 years ago elFinderSessionInterface.php 7 years ago elFinderVolumeBox.class.php 5 years ago elFinderVolumeDriver.class.php 4 weeks ago elFinderVolumeDropbox.class.php 1 year ago elFinderVolumeDropbox2.class.php 4 weeks ago elFinderVolumeFTP.class.php 5 years ago elFinderVolumeGoogleDrive.class.php 5 years ago elFinderVolumeGroup.class.php 7 years ago elFinderVolumeLocalFileSystem.class.php 2 years ago elFinderVolumeMySQL.class.php 10 months ago elFinderVolumeOneDrive.class.php 4 weeks ago elFinderVolumeSFTPphpseclib.class.php 4 weeks ago elFinderVolumeTrash.class.php 7 years ago elFinderVolumeTrashMySQL.class.php 7 years ago mime.types 3 years 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