public function DataFileSystem::__construct in Forena Reports 8
Parameters
$source: Machine name of Data Source
$path: Path to sql files for reports.
DataManager $dataManager: Data Manager object used to get data
Overrides FileSystemBase::__construct
File
- src/
File/ DataFileSystem.php, line 17
Class
Namespace
Drupal\forena\FileCode
public function __construct($source, $path, DataManager $dataManager) {
parent::__construct();
$this->cacheKey = $this->cacheKey . ':' . $source;
// Load default directory from configuration.
$this->dmSvc = $dataManager;
$this->source = $source;
$data_path = AppService::instance()
->dataDirectory();
$this->source = $source;
$this->dir = rtrim($data_path, '/');
$this->includes[] = $path;
}