You are here

function FrxReportGenerator::load_repository in Forena Reports 6.2

Same name and namespace in other branches
  1. 7.2 FrxReportGenerator.inc \FrxReportGenerator::load_repository()
1 call to FrxReportGenerator::load_repository()
FrxReportGenerator::repository in ./FrxReportGenerator.inc

File

./FrxReportGenerator.inc, line 182
Common functions used throughout the project but loaded in this file to keep the module file lean.

Class

FrxReportGenerator

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);

  // $repo['user callback'] = $conf['user callback'];
  if (@(!is_object($repo['data']))) {
    $repo['data'] = $this
      ->load_provider($repo, $path);
  }

  //$repo['auth'] = __forena_load_auth($security_provider);
}