You are here

function FrxReportGenerator::load_block_file in Forena Reports 7.2

Same name and namespace in other branches
  1. 6.2 FrxReportGenerator.inc \FrxReportGenerator::load_block_file()

Load a block file form disk and introspect the comments to determine security Return a structured array based on this.

Parameters

unknown_type $filepath:

unknown_type $comment:

File

./FrxReportGenerator.inc, line 455
Common functions used throughout the project but loaded in this file to keep the module file lean.

Class

FrxReportGenerator

Code

function load_block_file($filepath) {
  if (!file_exists($filepath)) {
    return '';
  }
  $block_data = file_get_contents($filepath);
  return $block_data;
}