class FrxFiles in Forena Reports 8
Class FrxFiles
Plugin annotation
@FrxDriver(
id="FrxFiles",
name="XML File Driver"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\Driver\DriverBase implements DriverInterface uses FrxAPI
- class \Drupal\forena\FrxPlugin\Driver\FrxFiles
Expanded class hierarchy of FrxFiles
3 string references to 'FrxFiles'
- forena.forena.yml in ./
forena.forena.yml - forena.forena.yml
- settings.php in data/
forena_help/ settings.php - TestingDataManager::__construct in tests/
src/ Unit/ Mock/ TestingDataManager.php - Create object for testing
File
- src/
FrxPlugin/ Driver/ FrxFiles.php, line 23 - 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
Namespace
Drupal\forena\FrxPlugin\DriverView source
class FrxFiles extends DriverBase {
private $path;
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;
}
public function getName() {
return 'XML File';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | 1 | |
DriverBase:: |
public | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
protected | property | ||
DriverBase:: |
public | property | ||
DriverBase:: |
public | function |
Implements the basic default security check of calling
an access method. Overrides DriverInterface:: |
|
DriverBase:: |
public | function | Build the SQL clause based on builder data. | |
DriverBase:: |
public | function |
Return data based on block definition. Overrides DriverInterface:: |
|
DriverBase:: |
public | function | ||
DriverBase:: |
public | function | Find all the blocks matching a provided search string | |
DriverBase:: |
public | function | @TODO: Determine whether we still need this. | |
DriverBase:: |
function |
Load blcok data from filesystem Overrides DriverInterface:: |
||
DriverBase:: |
protected | function | ||
DriverBase:: |
public | function | Perform generic type conversion based on attributes. | |
DriverBase:: |
public | function | Break the contents of a sql file down to its source. | |
DriverBase:: |
public | function | Parse XML File contents into contents. | |
DriverBase:: |
public | function | ||
DriverBase:: |
public | function | 5 | |
DriverBase:: |
public | function | ||
DriverBase:: |
public | function | Method to return an array of tables that start with the string indicated in $str | 5 |
DriverBase:: |
public | function | ||
DriverBase:: |
public | function | Load tokens from block source | |
DriverBase:: |
public | function | Implement static XML functioin | |
FrxAPI:: |
public | function | Returns containing application service | |
FrxAPI:: |
public | function | Get the current data context. | |
FrxAPI:: |
public | function | ||
FrxAPI:: |
public | function | Returns the data manager service | |
FrxAPI:: |
public | function | Return Data Service | |
FrxAPI:: |
public | function | Returns the fornea document manager | |
FrxAPI:: |
public | function | Report an error | |
FrxAPI:: |
public | function | Get the context of a specific id. | |
FrxAPI:: |
public | function | Get the current document | |
FrxAPI:: |
public | function | Load the contents of a file in the report file system. | |
FrxAPI:: |
function | Enter description here... | 1 | |
FrxAPI:: |
public | function | Pop data off of the stack. | |
FrxAPI:: |
public | function | Push data onto the Stack | |
FrxAPI:: |
public | function | Run a report with a particular format. | 1 |
FrxAPI:: |
public | function | Get the current report file system. | |
FrxAPI:: |
public | function | Set Data context by id. | |
FrxAPI:: |
public | function | Change to a specific document type. | |
FrxAPI:: |
public | function | Get list of skins. | |
FrxFiles:: |
private | property | ||
FrxFiles:: |
public | function | ||
FrxFiles:: |
public | function |
Overrides DriverBase:: |