protected function elFinderVolumeDrupal::_relpathdrupal in elFinder file manager 6.2
4 calls to elFinderVolumeDrupal::_relpathdrupal()
- elFinderVolumeDrupal::_copy in inc/
elfinder.drupalfs.driver.inc - * Copy file into another file * *
- elFinderVolumeDrupal::_drupalfileobject in inc/
elfinder.drupalfs.driver.inc - * Create Drupal file object * *
- elFinderVolumeDrupal::_move in inc/
elfinder.drupalfs.driver.inc - * Move file into another parent dir * *
- elFinderVolumeDrupal::_unlink in inc/
elfinder.drupalfs.driver.inc - * Remove file * *
File
- inc/
elfinder.drupalfs.driver.inc, line 42
Class
- elFinderVolumeDrupal
- elFinder driver for Drupal 6 filesystem.
Code
protected function _relpathdrupal($path) {
$thisroot = $this
->_abspath('/');
//$drupalfiles = elfinder_document_root() . DIRECTORY_SEPARATOR . file_directory_path();
$drupalfiles = file_directory_path();
$drupalpprefix = substr($thisroot, strpos($thisroot, $drupalfiles));
return $drupalpprefix . '/' . $this
->_relpath($path);
}