function remove($key, $layer = 'user', $channel = null)
    {
        if ($channel === null) {
            $channel = $this->getDefaultChannel();
        }

        if ($channel !== 'pear.php.net') {
            if (isset($this->configuration[$layer]['__channels'][$channel][$key])) {
                unset($this->configuration[$layer]['__channels'][$channel][$key]);
                return true;
            }
        }

        if (isset($this->configuration[$layer][$key])) {
            unset($this->configuration[$layer][$key]);
            return true;
        }

        return false;
    }
function remove($key, $layer = 'user', $channel = null)
    {
        if ($channel === null) {
            $channel = $this->getDefaultChannel();
        }

        if ($channel !== 'pear.php.net') {
            if (isset($this->configuration[$layer]['__channels'][$channel][$key])) {
                unset($this->configuration[$layer]['__channels'][$channel][$key]);
                return true;
            }
        }

        if (isset($this->configuration[$layer][$key])) {
            unset($this->configuration[$layer][$key]);
            return true;
        }

        return false;
    }
function remove ( $ key , $ layer = 'user' , $ channel = null ) { if ( $ channel === null ) { $ channel = $ this -> getDefaultChannel ( ) ; } if ( $ channel !== 'pear.php.net' ) { if ( isset ( $ this -> configuration [ $ layer ] [ '__channels' ] [ $ channel ] [ $ key ] ) ) { unset ( $ this -> configuration [ $ layer ] [ '__channels' ] [ $ channel ] [ $ key ] ) ; return true ; } } if ( isset ( $ this -> configuration [ $ layer ] [ $ key ] ) ) { unset ( $ this -> configuration [ $ layer ] [ $ key ] ) ; return true ; } return false ; }
Remove the a config key from a specific config layer.

@param string config key
@param string (optional) config layer
@param string (optional) channel (defaults to default channel)
@return bool TRUE on success, FALSE on failure

@access public
Remove the a config key from a specific config layer .