You are here

private function FrxFile::setFilesToDelete in Forena Reports 7.4

1 call to FrxFile::setFilesToDelete()
FrxFile::validateAllCache in ./FrxFile.inc
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

./FrxFile.inc, line 97
FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Class

FrxFile
@file FrxFile.inc File toolbox for manipulating files contained tn the report directory.

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);
    }
  }
}