function FrxReportGenerator::load_block in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 FrxReportGenerator.inc \FrxReportGenerator::load_block()
Returns an array of information about the data block
Parameters
$data_block:
Return value
unknown_type
File
- ./
FrxReportGenerator.inc, line 430 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Class
Code
function load_block($data_block, $clause = '') {
list($provider, $block) = explode('/', $data_block, 2);
// Get the data
$repos = $this
->repository($provider);
if ($repos['data']) {
$provider = $repos['data'];
if (method_exists($provider, 'load_block')) {
$block_info = $provider
->load_block($block, $clause);
}
return $block_info;
}
}