| 
 1 pjaol 1.1 <?php
 2           
 3           global $confObject;
 4           
 5           class Conf 
 6           {
 7           
 8           	var $_conf;
 9           	//singleton, use getConObj
10           
11           	private function Conf ()
12           	{
13           		return $this;
14           	}
15           	function set ($name, $value)
16           	{
17           		$this->_conf[$name] = $value;
18           	}
19           	function get ($name)
20           	{
21           		return $this->_conf[$name];
22 pjaol 1.1 	}
23           	
24           	function getConfObj ()
25           	{
26           	  global $confObject;
27           	  if (! $confObject)
28           	    $confObject = new Conf();
29           	  return $confObject;
30           	}
31           }
32           
33           ?>
 |