You are here

class TestingReportFileSystem in Forena Reports 8

Hierarchy

Expanded class hierarchy of TestingReportFileSystem

2 files declare their use of TestingReportFileSystem
FrxTestCase.php in tests/src/Unit/FrxTestCase.php
ReportFileSystemTest.php in tests/src/Unit/File/ReportFileSystemTest.php
Implements ReportFileSystemTest

File

tests/src/Unit/Mock/TestingReportFileSystem.php, line 8

Namespace

Drupal\Tests\forena\Unit\Mock
View source
class TestingReportFileSystem extends ReportFileSystem {

  // Replacement Constrcutor
  public function __construct() {
    $app = AppService::instance();
    $this->dir = $app->reportDirectory;
    $this->includes = $app->reportIncludes;
  }
  public function getDirectoryState() {
    return [];
  }
  public function setDirectoryState() {
  }
  public function save($filename, $data) {
  }
  public function delete($filename) {
  }
  public function localeEnabled() {
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FileSystemBase::$cache public property
FileSystemBase::$cacheKey public property
FileSystemBase::$dir public property
FileSystemBase::$includes public property
FileSystemBase::$name_index public property
FileSystemBase::$needSave public property
FileSystemBase::$needScan public property
FileSystemBase::$type_index public property
FileSystemBase::$validated public property
FileSystemBase::$write_dir public property
FileSystemBase::allMetadataForExt protected function Get all metadata for files of a specific extension.
FileSystemBase::contents public function Return the contents of a file located in the report directory Overrides FileInterface::contents
FileSystemBase::deleteMissingEntries private function
FileSystemBase::directory public function Return the directory portion of a report filename.
FileSystemBase::exists public function Return whether the file exists. Overrides FileInterface::exists
FileSystemBase::getMetaData public function Returns the cache entry based on a filename. Overrides FileInterface::getMetaData
FileSystemBase::includeExists public function Determine if the file exists in the include path.
FileSystemBase::isCustom public function Determine whether the file is a cusomt implmentation. Overrides FileInterface::isCustom
FileSystemBase::isOverriden public function Test whether file is overriding code provided files. Overrides FileInterface::isOverriden
FileSystemBase::isWritable public function Return an indicator as to whether the file is savable. New files can be saved if the directory is writabel. Overrides FileInterface::isWritable
FileSystemBase::path public function Return the full path to the filename
FileSystemBase::pathinfo public function Retrieve path info
FileSystemBase::revert public function Revert an individual report
FileSystemBase::scan public function
FileSystemBase::scanDirectory private function Recursive function which scans the directory and loads the base indexes.
FileSystemBase::scanInclude protected function Parse a drectory
FileSystemBase::setFilesToDelete private function
FileSystemBase::verifyDirectory function
ReportFileSystem::$default_language public property
ReportFileSystem::$instance protected static property
ReportFileSystem::$language public property
ReportFileSystem::$report_cache private property
ReportFileSystem::allReports public function List all the reports for a language.
ReportFileSystem::CACHE_KEY constant Overrides FileSystemBase::CACHE_KEY
ReportFileSystem::createReport public function
ReportFileSystem::extractMetaData public function Should load cache data based on that. Overrides FileInterface::extractMetaData
ReportFileSystem::getReportCacheInfo public function Get the cached information for a single report.
ReportFileSystem::instance public static function Singleton Factory
ReportFileSystem::menuReports public function
ReportFileSystem::reportCompare public function Sort compare function for sorting data by category then title.
ReportFileSystem::reportsByCategory public function Generate an ordered list of reports by category
ReportFileSystem::reportTitleCompare public function
ReportFileSystem::skins public function
TestingReportFileSystem::delete public function Delete a file from the directory. Overrides FileSystemBase::delete
TestingReportFileSystem::getDirectoryState public function Overrides FileSystemBase::getDirectoryState
TestingReportFileSystem::localeEnabled public function Overrides ReportFileSystem::localeEnabled
TestingReportFileSystem::save public function Save a file into the report directory. Overrides FileSystemBase::save
TestingReportFileSystem::setDirectoryState public function Overrides FileSystemBase::setDirectoryState
TestingReportFileSystem::__construct public function Constructor Sets the initial reort directory Overrides ReportFileSystem::__construct