You are here

public function FrxRepoMan::loadBlock in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 FrxRepoMan.inc \FrxRepoMan::loadBlock()

Load Block Enter description here ...

Parameters

$data_block string name of data block.:

1 call to FrxRepoMan::loadBlock()
FrxRepoMan::data in ./FrxRepoMan.inc
Extract the data by running a block

File

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

Class

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

Code

public function loadBlock($data_block) {
  $block = array();
  list($provider, $block_name) = explode('/', $data_block, 2);
  $repos = @$this->repositories[$provider];
  if (isset($repos['enabled']) && !$repos['enabled']) {
    return array();
  }
  $o = $this
    ->repository($provider);
  if ($o) {
    $access = TRUE;
    $block = $o
      ->loadBlock($block_name);
  }
  return $block;
}