2007-10-26 22:44:33 +00:00
|
|
|
<?php
|
2007-10-30 13:05:36 +00:00
|
|
|
//Note: this file is not used any more
|
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
class Config {
|
|
|
|
var $configMap;
|
|
|
|
|
|
|
|
function Config() {
|
|
|
|
$configMap = array();
|
|
|
|
}
|
|
|
|
|
|
|
|
function &getInstance() {
|
|
|
|
static $instance;
|
|
|
|
|
|
|
|
if(NULL == $instance) {
|
|
|
|
$instance = new Config();
|
|
|
|
}
|
|
|
|
|
|
|
|
return $instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getValue($key) {
|
|
|
|
return $this->configMap[$key];
|
|
|
|
}
|
|
|
|
|
|
|
|
function setValue($key, $value) {
|
|
|
|
$this->configMap[$key] = $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|