You are here

public function FrxAPI::setDataContext in Forena Reports 8

Set Data context by id.

Parameters

string $id: ID of the context to set

object | array $data: Data contents to set.

3 calls to FrxAPI::setDataContext()
Forena::setContext in src/Forena.php
RendererBase::renderDomNode in src/FrxPlugin/Renderer/RendererBase.php
Recursive report renderer Walks the nodes rendering the report.
Report::preloadData in src/Report.php

File

src/FrxAPI.php, line 109
FrxAPI.incL General Forena Reporting Class

Class

FrxAPI
Implements FrxAPI Trait

Namespace

Drupal\forena

Code

public function setDataContext($id, $data) {
  DataManager::instance()->dataSvc
    ->setContext($id, $data);
}