You are here

private function FrxReport::get_data in Forena Reports 7.3

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

Class

FrxReport

Code

private function get_data($block, $clause = '', $id = '', $data_uri = '') {
  if ($data_uri) {
    parse_str($data_uri, $data);
    if (is_array($data)) {
      foreach ($data as $key => $value) {
        $data[$key] = $this->teng
          ->replace($value, TRUE);
      }
    }

    // Merge in current_context
    $data = array_merge(Frx::Data()
      ->currentContextArray(), $data);
    $id .= '-parm';
    Frx::Data()
      ->push($data, $id);
  }
  $xml = Frx::RepoMan()
    ->data($block, NULL);
  if ($data_uri) {
    Frx::Data()
      ->pop();
  }
  if ($xml) {
    $this->blocks_loaded = TRUE;
  }
  return $xml;
}