graph = $graph; $this->controller = $controller; Extendable::__construct(); } public function __get($name) { if (isset($this->graph->components[$name]) || isset($this->layout->components[$name])) { return $this[$name]; } if (($value = $this->graph->{$name}) !== null) { return $value; } if (array_key_exists($name, $this->controller->vars)) { return $this[$name]; } return null; } public function __set($name, $value) { return $this->graph->{$name} = $value; } public function __isset($name) { return isset($this->graph->{$name}); } }