Components_Pear_Environment::channelExists PHP Method

channelExists() public method

Test if a channel exists within the install location.
public channelExists ( string $channel ) : boolean
$channel string The channel name.
return boolean True if the channel exists.
    public function channelExists($channel)
    {
        $registered = $this->getPearConfig()->getRegistry()->getChannels();
        foreach ($registered as $c) {
            if ($channel == $c->getName()) {
                return true;
            }
        }
        return false;
    }