function FrxReportGenerator::load_repository in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 FrxReportGenerator.inc \FrxReportGenerator::load_repository()
1 call to FrxReportGenerator::load_repository()
File
- ./
FrxReportGenerator.inc, line 182 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Class
Code
function load_repository(&$repo) {
// First determine if the class file exisits
$path = @$repo['path'];
$conf = array();
if (file_exists($path . '/settings.php')) {
// Override with repository specific data
include $path . '/settings.php';
}
$repo = array_merge($conf, $repo);
if (!isset($repos['data']) || !is_object($repo['data'])) {
$repo['data'] = $this
->load_provider($repo, $path);
}
}