You are here

public function FrxData::contextExists in Forena Reports 7.2

Same name and namespace in other branches
  1. 6.2 FrxData.inc \FrxData::contextExists()
  2. 7.3 FrxData.inc \FrxData::contextExists()
  3. 7.4 FrxData.inc \FrxData::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

File

./FrxData.inc, line 100

Class

FrxData

Code

public function contextExists($id) {
  if (array_key_exists($id, $this->data_sources)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}