public function DataContext::pop in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Context/DataContext.php \Drupal\forena\Context\DataContext::pop()
Remove data from the data stack.
This will make data unavaiable when we leave the context of the current nested reports.
File
- src/
Context/ DataContext.php, line 278 - Implements \Drupal\forena\Context\DataContext
Class
- DataContext
- The DataContext 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 invoke them.
Namespace
Drupal\forena\ContextCode
public function pop() {
$this->id = array_pop($this->id_stack);
$this->cur_context = array_pop($this->data_stack);
$this->cur_context_xml = '';
}