You are here

public function FrxFiles::__construct in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 plugins/FrxFiles.inc \FrxFiles::__construct()
  2. 6 plugins/FrxFiles.inc \FrxFiles::__construct()
  3. 7 plugins/FrxFiles.inc \FrxFiles::__construct()
  4. 7.2 plugins/FrxFiles.inc \FrxFiles::__construct()
  5. 7.4 plugins/FrxFiles.inc \FrxFiles::__construct()

Overrides FrxDataSource::__construct

File

plugins/FrxFiles.inc, line 13
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
@file 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

Code

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