public function FrxData::push in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 FrxData.inc \FrxData::push()
- 7.3 FrxData.inc \FrxData::push()
- 7.4 FrxData.inc \FrxData::push()
Push a data context onto the data stacks to make sure that we can address these using an appropriate syntax. I think we don't need data_stack but i'm holding it there in case we develop a "relative" path syntax.
Parameters
$data:
$id:
Return value
unknown_type
File
- ./
FrxData.inc, line 67
Class
Code
public function push($data, $id = '') {
$this->data_stack[] = $this->cur_context;
$this->id_stack[] = $this->id;
$this->id = $id;
$this->cur_context = $data;
if ($id) {
$this->data_sources[$id] = $data;
}
}