function &singleton($type = null)
    {
        if ($type === null) {
            if (!isset($GLOBALS['_PEAR_FRONTEND_SINGLETON'])) {
                $a = false;
                return $a;
            }
            return $GLOBALS['_PEAR_FRONTEND_SINGLETON'];
        }

        $a = PEAR_Frontend::setFrontendClass($type);
        return $a;
    }
function &singleton($type = null)
    {
        if ($type === null) {
            if (!isset($GLOBALS['_PEAR_FRONTEND_SINGLETON'])) {
                $a = false;
                return $a;
            }
            return $GLOBALS['_PEAR_FRONTEND_SINGLETON'];
        }

        $a = PEAR_Frontend::setFrontendClass($type);
        return $a;
    }
function & singleton ( $ type = null ) { if ( $ type === null ) { if ( ! isset ( $ GLOBALS [ '_PEAR_FRONTEND_SINGLETON' ] ) ) { $ a = false ; return $ a ; } return $ GLOBALS [ '_PEAR_FRONTEND_SINGLETON' ] ; } $ a = PEAR_Frontend :: setFrontendClass ( $ type ) ; return $ a ; }
Retrieve the frontend object
@return PEAR_Frontend_CLI|PEAR_Frontend_Web|PEAR_Frontend_Gtk
@static
Retrieve the frontend object