You are here

public function FrxFiles::__construct in Forena Reports 8

Overrides DriverBase::__construct

File

src/FrxPlugin/Driver/FrxFiles.php, line 25
File class for loading raw xml files as Sample data This class is used as a reference implementation of a data engine, but is also used to provide sample data files and reports. @author metzlerd

Class

FrxFiles
Class FrxFiles

Namespace

Drupal\forena\FrxPlugin\Driver

Code

public function __construct($name, $conf, DataFileSystem $fileSystem) {
  parent::__construct($name, $conf, $fileSystem);
  $this->comment_prefix = '<!--';
  $this->comment_suffix = '-->';
  $this->block_ext = 'xml';
  $path = '';
  if (isset($conf['uri'])) {
    list($protocol, $path) = explode('://', $conf['uri'], 2);
    if (!$path) {
      $path = $protocol;
    }
  }
  $this->path = $path;
}