You are here

FrxContext.inc in Forena Reports 7.4

Same filename and directory in other branches
  1. 7.5 FrxContext.inc
  2. 7.3 FrxContext.inc

File

FrxContext.inc
View source
<?php

/**
 * 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
 *
 */
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;
  }

}

Classes

Namesort descending Description
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