Context.php in Forena Reports 7.5
File
src/Context/Context.php
View source
<?php
namespace Drupal\forena\Context;
class Context {
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;
}
public function __get($name) {
$this
->getValue($name);
}
public function __set($name, $value) {
$this
->setValue($name, $value);
}
}