public function channelGetPathway($cid)
  {
    $channel = $this->channelGetById($cid);
    $pathway = $channel["channel_name"];

    if($channel["pid"])
    {
      $pathway = $this->channelGetPathway($channel["pid"]) . "/" . $channel["channel_name"];
    }

    return $pathway;
  }
public function channelGetPathway($cid)
  {
    $channel = $this->channelGetById($cid);
    $pathway = $channel["channel_name"];

    if($channel["pid"])
    {
      $pathway = $this->channelGetPathway($channel["pid"]) . "/" . $channel["channel_name"];
    }

    return $pathway;
  }
public function channelGetPathway ( $ cid ) { $ channel = $ this -> channelGetById ( $ cid ) ; $ pathway = $ channel [ "channel_name" ] ; if ( $ channel [ "pid" ] ) { $ pathway = $ this -> channelGetPathway ( $ channel [ "pid" ] ) . "/" . $ channel [ "channel_name" ] ; } return $ pathway ; }
Returns the pathway of a channel which can be used as a clients default channel.

@param  integer $cid
@return string
Returns the pathway of a channel which can be used as a clients default channel .