You are here

function DriverBase::loadBlock in Forena Reports 8

Load blcok data from filesystem

Parameters

$block_name:

Return value

array Block definition.

Overrides DriverInterface::loadBlock

1 call to DriverBase::loadBlock()
DriverBase::getSQLInclude in src/FrxPlugin/Driver/DriverBase.php

File

src/FrxPlugin/Driver/DriverBase.php, line 114
Class that defines default methods for access control in an DriverBase

Class

DriverBase

Namespace

Drupal\forena\FrxPlugin\Driver

Code

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