function definedBy($key, $returnchannel = false)
    {
        foreach ($this->layers as $layer) {
            $channel = $this->getDefaultChannel();
            if ($channel !== 'pear.php.net') {
                if (isset($this->configuration[$layer]['__channels'][$channel][$key])) {
                    if ($returnchannel) {
                        return array('layer' => $layer, 'channel' => $channel);
                    }
                    return $layer;
                }
            }

            if (isset($this->configuration[$layer][$key])) {
                if ($returnchannel) {
                    return array('layer' => $layer, 'channel' => 'pear.php.net');
                }
                return $layer;
            }
        }

        return '';
    }
function definedBy($key, $returnchannel = false)
    {
        foreach ($this->layers as $layer) {
            $channel = $this->getDefaultChannel();
            if ($channel !== 'pear.php.net') {
                if (isset($this->configuration[$layer]['__channels'][$channel][$key])) {
                    if ($returnchannel) {
                        return array('layer' => $layer, 'channel' => $channel);
                    }
                    return $layer;
                }
            }

            if (isset($this->configuration[$layer][$key])) {
                if ($returnchannel) {
                    return array('layer' => $layer, 'channel' => 'pear.php.net');
                }
                return $layer;
            }
        }

        return '';
    }
function definedBy ( $ key , $ returnchannel = false ) { foreach ( $ this -> layers as $ layer ) { $ channel = $ this -> getDefaultChannel ( ) ; if ( $ channel !== 'pear.php.net' ) { if ( isset ( $ this -> configuration [ $ layer ] [ '__channels' ] [ $ channel ] [ $ key ] ) ) { if ( $ returnchannel ) { return array ( 'layer' => $ layer , 'channel' => $ channel ) ; } return $ layer ; } } if ( isset ( $ this -> configuration [ $ layer ] [ $ key ] ) ) { if ( $ returnchannel ) { return array ( 'layer' => $ layer , 'channel' => 'pear.php.net' ) ; } return $ layer ; } } return '' ; }
Tells what config layer that gets to define a key.

@param string config key
@param boolean return the defining channel

@return string|array the config layer, or an empty string if not found.

if $returnchannel, the return is an array array('layer' => layername,
'channel' => channelname), or an empty string if not found

@access public
Tells what config layer that gets to define a key .