function &singleton($user_file = '', $system_file = '', $strict = true)
    {
        if (is_object($GLOBALS['_PEAR_Config_instance'])) {
            return $GLOBALS['_PEAR_Config_instance'];
        }

        $t_conf = &new PEAR_Config($user_file, $system_file, false, $strict);
        if ($t_conf->_errorsFound > 0) {
             return $t_conf->lastError;
        }

        $GLOBALS['_PEAR_Config_instance'] = &$t_conf;
        return $GLOBALS['_PEAR_Config_instance'];
    }
function &singleton($user_file = '', $system_file = '', $strict = true)
    {
        if (is_object($GLOBALS['_PEAR_Config_instance'])) {
            return $GLOBALS['_PEAR_Config_instance'];
        }

        $t_conf = &new PEAR_Config($user_file, $system_file, false, $strict);
        if ($t_conf->_errorsFound > 0) {
             return $t_conf->lastError;
        }

        $GLOBALS['_PEAR_Config_instance'] = &$t_conf;
        return $GLOBALS['_PEAR_Config_instance'];
    }
function & singleton ( $ user_file = '' , $ system_file = '' , $ strict = true ) { if ( is_object ( $ GLOBALS [ '_PEAR_Config_instance' ] ) ) { return $ GLOBALS [ '_PEAR_Config_instance' ] ; } $ t_conf = & new PEAR_Config ( $ user_file , $ system_file , false , $ strict ) ; if ( $ t_conf -> _errorsFound > 0 ) { return $ t_conf -> lastError ; } $ GLOBALS [ '_PEAR_Config_instance' ] = & $ t_conf ; return $ GLOBALS [ '_PEAR_Config_instance' ] ; }
Static singleton method.  If you want to keep only one instance
of this class in use, this method will give you a reference to
the last created PEAR_Config object if one exists, or create a
new object.

@param string (optional) file to read user-defined options from
@param string (optional) file to read system-wide defaults from

@return object an existing or new PEAR_Config instance

@access public

@see PEAR_Config::PEAR_Config
Static singleton method . If you want to keep only one instance of this class in use this method will give you a reference to the last created PEAR_Config object if one exists or create a new object .