public function DataContext::setContext in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Context/DataContext.php \Drupal\forena\Context\DataContext::setContext()
1 call to DataContext::setContext()
- DataContext::__construct in src/Context/DataContext.php
- Constructor to initialize drupal site specific settings.
File
- src/Context/DataContext.php, line 265
- DataContext.php
The FrxData class holds all of the data contexts during the report rendering process.
The general idea is that during the report render, data objects are pushed on the stack with the id's of the block or foreach objects that…
Class
- DataContext
Namespace
Drupal\forena\Context
Code
public function setContext($id, &$data) {
if (is_object($data)) {
$this->data_sources[$id] = $data;
}
else {
$this->data_sources[$id] =& $data;
}
}