You are here

public function DataFile::scan in Forena Reports 7.5

Overrides FileBase::scan

File

src/File/DataFile.php, line 83

Class

DataFile

Namespace

Drupal\forena\File

Code

public function scan($prefix = '') {
  if ($this->needScan) {

    // Add the base report files.
    $this
      ->scanInclude($this->dir, '');

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