You are here

public function FrxRepoMan::load_repository in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.3 FrxRepoMan.inc \FrxRepoMan::load_repository()
1 call to FrxRepoMan::load_repository()
FrxRepoMan::repository in ./FrxRepoMan.inc
Load repository

File

./FrxRepoMan.inc, line 95
FrxRepoMan.inc Enter description here ... @author davidmetzler

Class

FrxRepoMan
@file FrxRepoMan.inc Enter description here ... @author davidmetzler

Code

public function load_repository(&$repo, $name) {

  // 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, $name);
  }
}