src/wcmf/application/controller/MediaController.php
protected function onFileMoved($cmd, $result, $args, $elfinder) {
    $addedFiles = $result['added'];
    $removedFiles = $result['removed'];
    for ($i=0, $count=sizeof($removedFiles); $i<$count; $i++) {
      $source = $removedFiles[$i]['realpath'];
      $target = $elfinder->realpath($addedFiles[$i]['hash']);
    }
    $logger = $this->getLogger();
    $logger->debug($cmd." file: ".$source." -> ".$target);
  }
protected function onFileMoved($cmd, $result, $args, $elfinder) {
    $addedFiles = $result['added'];
    $removedFiles = $result['removed'];
    for ($i=0, $count=sizeof($removedFiles); $i<$count; $i++) {
      $source = $removedFiles[$i]['realpath'];
      $target = $elfinder->realpath($addedFiles[$i]['hash']);
    }
    $logger = $this->getLogger();
    $logger->debug($cmd." file: ".$source." -> ".$target);
  }
protected function onFileMoved ( $ cmd , $ result , $ args , $ elfinder ) { $ addedFiles = $ result [ 'added' ] ; $ removedFiles = $ result [ 'removed' ] ; for ( $ i = 0 , $ count = sizeof ( $ removedFiles ) ; $ i < $ count ; $ i ++ ) { $ source = $ removedFiles [ $ i ] [ 'realpath' ] ; $ target = $ elfinder -> realpath ( $ addedFiles [ $ i ] [ 'hash' ] ) ; } $ logger = $ this -> getLogger ( ) ; $ logger -> debug ( $ cmd . " file: " . $ source . " -> " . $ target ) ; }
Called when file is moved
@param  $cmd elFinder command name
@param  $result Command result as array
@param  $args Command arguments from client
@param  $elfinder elFinder instance
Called when file is moved