27 public function get($name) {
28 if ($this->
has($name))
return $this->data[$name];
30 if ($this->parent)
return $this->parent->get($name);
37 public function set($name, $value) {
38 $this->data[$name] = $value;
44 public function has($name) {
45 return array_key_exists($name, $this->data);
52 public function reset($name = null) {
53 if ($name == null) $this->data = array();
54 else unset($this->data[$name]);
62 public function squash($force =
false) {
63 if ($this->cache !== null && !$force)
return $this->cache;
65 return $this->cache = array_merge($this->parent->squash($force),
$this->data);
82 $this->parent = $plist;