You are here

function FrxDataSource::loadBlock in Forena Reports 7.3

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

Load blcok data from filesystem

Parameters

$block_name:

1 call to FrxDataSource::loadBlock()
FrxDataSource::getSQLInclude in ./FrxDataSource.inc

File

./FrxDataSource.inc, line 146
Class that defines default methods for access control in an FrxDataSource

Class

FrxDataSource
@file Class that defines default methods for access control in an FrxDataSource

Code

function loadBlock($block_name, $include = FALSE) {
  $block = array();
  if ($include) {
    $this->block_name = $block_name;
  }
  $block = $this
    ->loadBlockFromDB($block_name);
  if (!$block) {
    $block = $this
      ->loadBlockFromFile($block_name);
  }
  return $block;
}