Closed applibs closed 6 months ago
I also tried create custom plugin which will copy file from source to target on event $bind['paste.copyfrom']. But in plugin is only filename. Plugin architecture missing source path and destination path.
I will be happy, when this call:
elFinder::$instance->trigger('paste.copyfrom', array(&$thash, &$name, '', elFinder::$instance, $this), $errors);
will looks like this:
elFinder::$instance->trigger('paste.copyfrom', array(&$thash, &$name, '', elFinder::$instance, $this, $source, $destination), $errors);
Then over plugin with function:
public function onCopyFrom($cmd, $filename, $args, $elfinder, $volume, $src, $destination)
I can manage all what I need.
This issue is stale because it has been open for 50 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Is it possible implement my reccomendation?
My custom driver is extender like this: class elFinderVolumeCustom extends elFinderVolumeDriver
in construct of custom class:
In my class is function onCopyFrom.
When I copy file in mydriver and paste at localstoragedriver I debug at: elFinder::$instance->trigger('paste.copyfrom', array(&$thash, &$name, '', elFinder::$instance, $this), $errors);
and inside trigger function is array: $this->listeners and its missing by binded function. Seems that its not there.