function RemoveChannel($idx)
    {
        $result = array();
        foreach ($this->channels as $currentIdx => $channel)
        {
            if ($currentIdx != $idx)
                $result[] = $channel;
        }
        $this->channels = $result;
    }