You are here

public function FrxReport::getData in Forena Reports 7.4

Get the data block

Parameters

$block:

Return value

unknown_type

1 call to FrxReport::getData()
FrxReport::preloadData in ./FrxReport.inc

File

./FrxReport.inc, line 203
Basic report provider. Controls the rendering of the report.

Class

FrxReport

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;
}