You are here

private function FileBase::setFilesToDelete in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/File/FileBaseOld.php \Drupal\forena\File\FileBase::setFilesToDelete()
1 call to FileBase::setFilesToDelete()
FileBase::validateAllCache in src/File/FileBase.php
Called anytime we want to make sure the include cache is good and complete. Any file modifications will cause cache to be rebuild to be rebuilt.

File

src/File/FileBase.php, line 99
FileBase.inc File toolbox for manipulating files contained tn the report directory.

Class

FileBase

Namespace

Drupal\forena\File

Code

private function setFilesToDelete() {
  $this->filesToDelete = array();

  //Quickly make a list of files in the cache right now.
  if ($this->cache) {
    foreach ($this->cache as $ext => $files_of_type) {
      $this->filesToDelete[$ext] = array_fill_keys(array_keys($files_of_type), 1);
    }
  }
}