You are here

protected function elFinderVolumeDrupal::FileUsageAdd in elFinder file manager 7.3

Same name and namespace in other branches
  1. 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::FileUsageAdd()
  2. 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::FileUsageAdd()
5 calls to elFinderVolumeDrupal::FileUsageAdd()
elFinderVolumeDrupal::AddToDrupalDB in inc/elfinder.drupalfs.driver.inc
Recursive function to add new files to Drupal's db.
elFinderVolumeDrupal::_archive in inc/elfinder.drupalfs.driver.inc
elFinderVolumeDrupal::_copy in inc/elfinder.drupalfs.driver.inc
Copy file into another file
elFinderVolumeDrupal::_mkfile in inc/elfinder.drupalfs.driver.inc
Create file
elFinderVolumeDrupal::_save in inc/elfinder.drupalfs.driver.inc
Create new file and write into it from file pointer. Return new file path or false on error.

File

inc/elfinder.drupalfs.driver.inc, line 511
elFinder driver for Drupal filesystem.

Class

elFinderVolumeDrupal
@file

Code

protected function FileUsageAdd($file) {

  // Record that the module elfinder is using the file.
  @file_usage_add($file, 'elfinder', 'elfinderFileFetcher', 0);

  // 0 : means that there is no reference at the moment.
}