/** * @static * @access public * @param AmberConfig * @return Amber reference to singleton */ function &getInstance($config = null) { static $instance = null; if (is_null($instance)) { $instance = new Amber(); $instance->init($config); } return $instance; }