public function FrxDrupal::__construct in Forena Reports 8
Object constructor
Parameters
string $uri: Database connection string.
string $repos_path: Path to location of data block definitions
Overrides DriverBase::__construct
File
- src/
FrxPlugin/ Driver/ FrxDrupal.php, line 38 - Provides data blocks for native drupal connections using the default drupal connections.
Class
- FrxDrupal
- Class FrxDrupal
Namespace
Drupal\forena\FrxPlugin\DriverCode
public function __construct($name, $conf, DataFileSystem $fileSystem) {
parent::__construct($name, $conf, $fileSystem);
if (@$conf['database'] && @$conf['database'] != 'default') {
$this->database = $conf['database'];
}
$target = $this->database ? $this->database : 'default';
$this->db_type = Database::getConnection($target)
->databaseType();
// Set up the stuff required to translate.
$this->te = new SQLReplacer($this);
}