You are here

public function DataContext::contextExists in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Context/DataContext.php \Drupal\forena\Context\DataContext::contextExists()

Determines whether an array context exists for the specified id. Returns true if the key exists othewise false

Parameters

string $id:

Return value

boolean

1 call to DataContext::contextExists()
DataContext::getValue in src/Context/DataContext.php
Get the value from the data. This is used by token_replace method to extract the data based on the path provided.

File

src/Context/DataContext.php, line 292
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 contextExists($id) {
  if (array_key_exists($id, $this->data_sources)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}