private function FrxReport::get_data in Forena Reports 6
Same name and namespace in other branches
- 6.2 FrxReport.inc \FrxReport::get_data()
- 7 FrxReport.inc \FrxReport::get_data()
- 7.2 FrxReport.inc \FrxReport::get_data()
- 7.3 FrxReport.inc \FrxReport::get_data()
Get the data block
Parameters
$block:
Return value
unknown_type
1 call to FrxReport::get_data()
- FrxReport::render_section in ./
FrxReport.inc - Recursive report renderer Walks the nodes rendering the report.
File
- ./
FrxReport.inc, line 94 - Basic report provider. Controls the rendering of the report.
Class
Code
private function get_data($block, $clause = '', $id = '', $data_uri = '') {
//@TODO: Merge xml data parameters into the report paramters
$data = $this->cur_data;
if ($data_uri) {
$data = array();
parse_str($data_uri, $data);
if (is_array($data)) {
foreach ($data as $key => $value) {
$data[$key] = !empty($value) ? $this->teng
->replace($value) : '';
}
}
}
$this->cur_data = forena_invoke_data_provider($block, $this->cur_data, $clause);
$this->teng
->push_data($this->cur_data, $id);
if ($this->cur_data) {
$this->blocks_loaded = TRUE;
}
}