private function getDncChannelName($key)
    {
        if (!$this->dncChannels) {
            $this->dncChannels = $this->getContactModel()->getPreferenceChannels();
        }
        if ($key) {
            if (isset($this->dncChannels[$key])) {
                return $this->dncChannels[$key];
            } else {
                return ucwords($key);
            }
        }

        return '';
    }
private function getDncChannelName($key)
    {
        if (!$this->dncChannels) {
            $this->dncChannels = $this->getContactModel()->getPreferenceChannels();
        }
        if ($key) {
            if (isset($this->dncChannels[$key])) {
                return $this->dncChannels[$key];
            } else {
                return ucwords($key);
            }
        }

        return '';
    }
private function getDncChannelName ( $ key ) { if ( ! $ this -> dncChannels ) { $ this -> dncChannels = $ this -> getContactModel ( ) -> getPreferenceChannels ( ) ; } if ( $ key ) { if ( isset ( $ this -> dncChannels [ $ key ] ) ) { return $ this -> dncChannels [ $ key ] ; } else { return ucwords ( $ key ) ; } } return '' ; }
Get all DNC Channels, or one by key.

@param $key

@return array|mixed
Get all DNC Channels or one by key .