function FrxReportGenerator::load_block_file in Forena Reports 6.2
Same name and namespace in other branches
- 7.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 459 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Class
Code
function load_block_file($filepath) {
if (!file_exists($filepath)) {
return '';
}
$block_data = file_get_contents($filepath);
return $block_data;
}