You are here

public function FileBase::scan in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/File/FileBaseOld.php \Drupal\forena\File\FileBase::scan()
1 call to FileBase::scan()
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.
1 method overrides FileBase::scan()
DataFile::scan in src/File/DataFile.php

File

src/File/FileBase.php, line 116
FileBase.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);
      }
    }
  }
}