You are here

public function FrxRepoMan::repository in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.3 FrxRepoMan.inc \FrxRepoMan::repository()

Load repository

Parameters

$name Name of the repository:

Return value

FrxDataSource

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

File

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

Class

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

Code

public function repository($name) {

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