You are here

public function Report::getData in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Report.php \Drupal\forena\Report::getData()

Get the data block

Parameters

$block:

Return value

unknown_type

1 call to Report::getData()
Report::preloadData in src/Report.php

File

src/Report.php, line 175
Basic report provider. Controls the rendering of the report.

Class

Report

Namespace

Drupal\forena

Code

public function getData($block, $id = '', $data_uri = '', $raw_mode = FALSE) {
  $data = array();
  if ($data_uri) {
    parse_str($data_uri, $data);
    if (is_array($data)) {
      foreach ($data as $key => $value) {
        $data[$key] = $this->teng
          ->replace($value, TRUE);
      }
    }
  }
  $xml = Frx::BlockEditor($block, $this->block_edit_mode)
    ->data($data, $raw_mode);
  if ($xml) {
    $this->blocks_loaded = TRUE;
  }
  return $xml;
}