You are here

public function FileBase::scan in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/File/FileBase.php \Drupal\forena\File\FileBase::scan()
1 call to FileBase::scan()
FileBase::validateAllCache in src/File/FileBaseOld.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/FileBaseOld.php, line 117
FileSystemBase.inc File toolbox for manipulating files contained tn the report directory.

Class

FileBase

Namespace

Drupal\forena\File

Code

public function scan($prefix = '') {

  // Add the base report files.
  if ($this->needScan) {
    $this
      ->scanInclude($this->dir, $prefix);

    // Now add the module provided ones.
    if ($this->includes) {
      foreach ($this->includes as $directory) {
        $this
          ->scanInclude($directory, $prefix);
      }
    }
  }
}