You are here

private function FrxReport::get_data in Forena Reports 6.2

Same name and namespace in other branches
  1. 6 FrxReport.inc \FrxReport::get_data()
  2. 7 FrxReport.inc \FrxReport::get_data()
  3. 7.2 FrxReport.inc \FrxReport::get_data()
  4. 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 107
Basic report provider. Controls the rendering of the report.

Class

FrxReport

Code

private function get_data($block, $clause = '', $id = '', $data_uri = '') {

  //@TODO: Merge xml data parameters into the report paramters
  if ($data_uri) {
    parse_str($data_uri, $data);
    if (is_array($data)) {
      foreach ($data as $key => $value) {
        $data[$key] = $this->teng
          ->replace($value);
      }
    }
    $id .= '-parm';
    FrxData::instance()
      ->push($data, $id);
  }
  $xml = FrxReportGenerator::instance()
    ->invoke_data_provider($block, null, $clause);
  if ($data_uri) {
    FrxData::instance()
      ->pop();
  }
  if ($xml) {
    $this->blocks_loaded = TRUE;
  }
  return $xml;
}