You are here

class FrxContext in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 FrxContext.inc \FrxContext
  2. 7.4 FrxContext.inc \FrxContext

Interface class for Data contexts. The basic methods are implemented as below. This is too simple for real use in Forena, but serves as a model for implementation. @author davidmetzler

Hierarchy

Expanded class hierarchy of FrxContext

2 string references to 'FrxContext'
forena_forena_plugins in ./forena.module
Self register plugins with forena.
Frx::Context in ./Frx.inc
Factory object to get the context based on a name. IF the context doesn't exist we assume the default data context (FrxData).

File

./FrxContext.inc, line 9

View source
class FrxContext {
  private $values;
  public function __construct() {
    $this->values = array();
  }
  public function getValue($key, $context = '') {
    $value = @$values[$key];
    return $value;
  }
  public function setValue($key, $value, $context = '') {
    $this->values[$key] = $value;
  }

}

Members