You are here

public function DataManager::load_repository in Forena Reports 7.5

1 call to DataManager::load_repository()
DataManager::repository in src/DataManager.php
Load repository

File

src/DataManager.php, line 98
DataManager.inc Enter description here ... @author davidmetzler

Class

DataManager

Namespace

Drupal\forena

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