class TestingReportFileSystem in Forena Reports 8
Hierarchy
- class \Drupal\forena\File\FileSystemBase implements FileInterface
- class \Drupal\forena\File\ReportFileSystem
- class \Drupal\Tests\forena\Unit\Mock\TestingReportFileSystem
- class \Drupal\forena\File\ReportFileSystem
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\MockView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
public | property | ||
FileSystemBase:: |
protected | function | Get all metadata for files of a specific extension. | |
FileSystemBase:: |
public | function |
Return the contents of a file located in the report directory Overrides FileInterface:: |
|
FileSystemBase:: |
private | function | ||
FileSystemBase:: |
public | function | Return the directory portion of a report filename. | |
FileSystemBase:: |
public | function |
Return whether the file exists. Overrides FileInterface:: |
|
FileSystemBase:: |
public | function |
Returns the cache entry based on a filename. Overrides FileInterface:: |
|
FileSystemBase:: |
public | function | Determine if the file exists in the include path. | |
FileSystemBase:: |
public | function |
Determine whether the file is a cusomt implmentation. Overrides FileInterface:: |
|
FileSystemBase:: |
public | function |
Test whether file is overriding code provided files. Overrides FileInterface:: |
|
FileSystemBase:: |
public | function |
Return an indicator as to whether the file is savable.
New files can be saved if the directory is writabel. Overrides FileInterface:: |
|
FileSystemBase:: |
public | function | Return the full path to the filename | |
FileSystemBase:: |
public | function | Retrieve path info | |
FileSystemBase:: |
public | function | Revert an individual report | |
FileSystemBase:: |
public | function | ||
FileSystemBase:: |
private | function | Recursive function which scans the directory and loads the base indexes. | |
FileSystemBase:: |
protected | function | Parse a drectory | |
FileSystemBase:: |
private | function | ||
FileSystemBase:: |
function | |||
ReportFileSystem:: |
public | property | ||
ReportFileSystem:: |
protected static | property | ||
ReportFileSystem:: |
public | property | ||
ReportFileSystem:: |
private | property | ||
ReportFileSystem:: |
public | function | List all the reports for a language. | |
ReportFileSystem:: |
constant |
Overrides FileSystemBase:: |
||
ReportFileSystem:: |
public | function | ||
ReportFileSystem:: |
public | function |
Should load cache data based on that. Overrides FileInterface:: |
|
ReportFileSystem:: |
public | function | Get the cached information for a single report. | |
ReportFileSystem:: |
public static | function | Singleton Factory | |
ReportFileSystem:: |
public | function | ||
ReportFileSystem:: |
public | function | Sort compare function for sorting data by category then title. | |
ReportFileSystem:: |
public | function | Generate an ordered list of reports by category | |
ReportFileSystem:: |
public | function | ||
ReportFileSystem:: |
public | function | ||
TestingReportFileSystem:: |
public | function |
Delete a file from the directory. Overrides FileSystemBase:: |
|
TestingReportFileSystem:: |
public | function |
Overrides FileSystemBase:: |
|
TestingReportFileSystem:: |
public | function |
Overrides ReportFileSystem:: |
|
TestingReportFileSystem:: |
public | function |
Save a file into the report directory. Overrides FileSystemBase:: |
|
TestingReportFileSystem:: |
public | function |
Overrides FileSystemBase:: |
|
TestingReportFileSystem:: |
public | function |
Constructor
Sets the initial reort directory Overrides ReportFileSystem:: |