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 / elFinderVolumeTrash.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
elFinderVolumeTrash.class.php
52 lines
1 <?php
2
3 /**
4 * elFinder driver for trash bin at local filesystem.
5 *
6 * @author NaokiSawada
7 **/
8 class elFinderVolumeTrash extends elFinderVolumeLocalFileSystem
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 = 't';
18
19 public function __construct()
20 {
21 parent::__construct();
22 // original option of the Trash
23 $this->options['lockEverything'] = false; // Lock all items in the trash to disable delete, move, rename.
24
25 // common options as the volume driver
26 $this->options['alias'] = 'Trash';
27 $this->options['quarantine'] = '';
28 $this->options['rootCssClass'] = 'elfinder-navbar-root-trash';
29 $this->options['copyOverwrite'] = false;
30 $this->options['uiCmdMap'] = array('paste' => 'hidden', 'mkdir' => 'hidden', 'copy' => 'restore');
31 $this->options['disabled'] = array('archive', 'duplicate', 'edit', 'extract', 'mkfile', 'places', 'put', 'rename', 'resize', 'upload');
32 }
33
34 public function mount(array $opts)
35 {
36 if ($this->options['lockEverything']) {
37 if (!is_array($opts['attributes'])) {
38 $opts['attributes'] = array();
39 }
40 $attr = array(
41 'pattern' => '/./',
42 'locked' => true,
43 );
44 array_unshift($opts['attributes'], $attr);
45 }
46 // force set `copyJoin` to true
47 $opts['copyJoin'] = true;
48
49 return parent::mount($opts);
50 }
51 }
52