xcat-core/xCAT-web/lib/config.php
jbjohnso c99d72a179 Initial xCAT 2.0 import
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2007-10-26 22:44:33 +00:00

27 lines
387 B
PHP

<?php
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;
}
}
?>