load($path, $name, $force); } function load($path, $name, $force = false) { $this->name = $path; if(!$force && self::$propertiesCache[$path]) { $this->properties = self::$propertiesCache[$path]; return; } require $path; $this->properties = $$name; self::$propertiesCache[$path] = $this->properties; } function setConfig($key, $value) { if(empty($key)) return; $this->properties[$key] = $value; //not neccessary for php5.x versions self::$propertiesCache[$this->name] = $this->properties; } function getConfig($key) { if(empty($key)) return ''; return $this->properties[$key]; } } ?>