public function elFinderVolumeDrupal::extract in elFinder file manager 8.2
Same name and namespace in other branches
- 6.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()
- 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()
- 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()
File
- src/
Controller/ elFinderVolumeDrupal.php, line 413 - elFinder driver for Drupal filesystem.
Class
- elFinderVolumeDrupal
- @file
Code
public function extract($hash) {
if (!$this
->CheckUserQuota()) {
return FALSE;
}
$fstat = parent::extract($hash);
if ($fstat != FALSE) {
$path = $this
->decode($fstat['hash']);
$this
->AddToDrupalDB($path);
$file = $this
->_drupalfileobject($path);
$this
->FileUsageAdd($file);
}
return $fstat;
}