(file) Return to conf.inc CVS log (file) (dir) Up to [Development] / gantt_manager / src / lib / conf

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

cvsadmin
Powered by
ViewCVS 0.9.2