protected function elFinderVolumeDrupal::_mkfile in elFinder file manager 6.2
Same name and namespace in other branches
- 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::_mkfile()
- 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_mkfile()
- 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_mkfile()
* Create file * *
Parameters
string $path parent dir path: * @param string $name new file name * @return bool * @author Alexey Sukhotin *
File
- inc/
elfinder.drupalfs.driver.inc, line 105
Class
- elFinderVolumeDrupal
- elFinder driver for Drupal 6 filesystem.
Code
protected function _mkfile($path, $name) {
$abspath = $path . DIRECTORY_SEPARATOR . $name;
$file = $this
->_drupalfileobject($abspath);
if (!$this
->CheckExtension($file)) {
return FALSE;
}
if (parent::_mkfile($path, $name)) {
$this
->DrupalDBAddFile($file);
return $abspath;
}
return false;
}