public function Report::getData in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Report.php \Drupal\forena\Report::getData()
Get the data block
Parameters
string $block:
string $data_uri:
bool $raw_mode:
Return value
\SimpleXMLElement | array
1 call to Report::getData()
- Report::preloadData in src/
Report.php
File
- src/
Report.php, line 320 - Basic report provider. Controls the rendering of the report.
Class
Namespace
Drupal\forenaCode
public function getData($block, $data_uri = '', $raw_mode = FALSE) {
$dm = DataManager::instance();
$data = array();
if ($data_uri) {
parse_str($data_uri, $data);
if (is_array($data)) {
foreach ($data as $key => $value) {
$data[$key] = $this->replacer
->replace($value, TRUE);
}
}
}
$xml = $dm
->data($block, $raw_mode, $data);
if ($xml) {
$this->blocks_loaded = TRUE;
}
return $xml;
}