You are here

public function FileSystemBase::scan in Forena Reports 8

3 calls to FileSystemBase::scan()
ReportFileSystem::allReports in src/File/ReportFileSystem.php
List all the reports for a language.
ReportFileSystem::reportsByCategory in src/File/ReportFileSystem.php
Generate an ordered list of reports by category
ReportFileSystem::skins in src/File/ReportFileSystem.php

File

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

Class

FileSystemBase

Namespace

Drupal\forena\File

Code

public function scan() {

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

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