You are here

public function DataManager::repository in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/DataManager.php \Drupal\forena\DataManager::repository()

Load repository

Parameters

string $name: Name of the repository

Return value

\Drupal\forena\FrxPlugin\Driver\DriverBase

5 calls to DataManager::repository()
DataManager::buildSQL in src/DataManager.php
Build an SQL statement from the data provider
DataManager::data in src/DataManager.php
Extract the data by running a block
DataManager::loadBlock in src/DataManager.php
Load Block Enter description here ...
DataManager::sqlBlock in src/DataManager.php
Parse a block into its data
DataManager::sqlData in src/DataManager.php
Execute sql on a provider

File

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

Class

DataManager

Namespace

Drupal\forena

Code

public function repository($name) {

  // Now determine if the object exists
  $object = NULL;
  if (isset($this->repositories[$name])) {
    if (@(!is_object($this->repositories[$name]['data']))) {
      $this
        ->loadRepositoryConfig($this->repositories[$name], $name);
    }
    $object = $this->repositories[$name]['data'];
  }
  else {
    AppService::instance()
      ->error('Undefined repository' . $name, "Undefined Repository: {$name} ");
  }
  return $object;
}