You are here

public function elFinderVolumeDrupal::extract in elFinder file manager 6.2

Same name and namespace in other branches
  1. 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::extract()
  2. 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()
  3. 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::extract()

File

inc/elfinder.drupalfs.driver.inc, line 440

Class

elFinderVolumeDrupal
elFinder driver for Drupal 6 filesystem.

Code

public function extract($hash, $makedir = NULL) {
  if (!$this
    ->CheckUserQuota()) {
    return false;
  }
  $fstat = parent::extract($hash);
  if ($fstat != FALSE) {
    $path = $this
      ->decode($fstat['hash']);
    $this
      ->DrupalDBAdd($path);
  }
  return $fstat;
}