You are here

public function elFinderVolumeDrupal::extract in elFinder file manager 8.2

Same name and namespace in other branches
  1. 6.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()
  2. 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()
  3. 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;
}