public function FrxDrupal::__construct in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 plugins/FrxDrupal.inc \FrxDrupal::__construct()
- 6 plugins/FrxDrupal.inc \FrxDrupal::__construct()
- 7 plugins/FrxDrupal.inc \FrxDrupal::__construct()
- 7.2 plugins/FrxDrupal.inc \FrxDrupal::__construct()
- 7.4 plugins/FrxDrupal.inc \FrxDrupal::__construct()
Object constructor
Parameters
unknown_type $uri Database connection string.:
string $repos_path Path to location of data block definitions:
Overrides FrxDataSource::__construct
File
- plugins/
FrxDrupal.inc, line 21 - Provides data blocks for native drupal connections using the default drupal connections.
Class
- FrxDrupal
- @file Provides data blocks for native drupal connections using the default drupal connections.
Code
public function __construct($conf, $repos_path, $name) {
parent::__construct($conf, $repos_path, $name);
if (@$conf['database'] && @$conf['database'] != 'default') {
$this->database = $conf['database'];
}
// Set up the stuff required to translate.
$this->te = new FrxSyntaxEngine(FRX_SQL_TOKEN, ':', $this);
}