You are here

class FrxContext in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.5 FrxContext.inc \FrxContext
  2. 7.3 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

1 string reference to 'FrxContext'
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 = @$this->values[$key];
    return $value;
  }
  public function setValue($key, $value, $context = '') {
    $this->values[$key] = $value;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FrxContext::$values private property
FrxContext::getValue public function 1
FrxContext::setValue public function 1
FrxContext::__construct public function 1