You are here

protected function DataManager::loadRepositoryConfig in Forena Reports 8

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

File

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

Class

DataManager

Namespace

Drupal\forena

Code

protected function loadRepositoryConfig(&$repo, $name) {

  // First determine if the class file exisits
  $path = @$repo['source'];
  $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
      ->createDataSource($repo, $path, $name);
  }
}