public function getList($channelarray = null, $priority = SMARTIRC_MEDIUM)
    {
        if ($channelarray !== null) {
            if (!is_array($channelarray)) {
                $channelarray = array($channelarray);
            }

            $channellist = implode(',', $channelarray);
            $this->send('LIST '.$channellist, $priority);
        } else {
            $this->send('LIST', $priority);
        }
        return $this;
    }
public function getList($channelarray = null, $priority = SMARTIRC_MEDIUM)
    {
        if ($channelarray !== null) {
            if (!is_array($channelarray)) {
                $channelarray = array($channelarray);
            }

            $channellist = implode(',', $channelarray);
            $this->send('LIST '.$channellist, $priority);
        } else {
            $this->send('LIST', $priority);
        }
        return $this;
    }
public function getList ( $ channelarray = null , $ priority = SMARTIRC_MEDIUM ) { if ( $ channelarray !== null ) { if ( ! is_array ( $ channelarray ) ) { $ channelarray = array ( $ channelarray ) ; } $ channellist = implode ( ',' , $ channelarray ) ; $ this -> send ( 'LIST ' . $ channellist , $ priority ) ; } else { $ this -> send ( 'LIST' , $ priority ) ; } return $ this ; }
gets a list of one ore more channels

Requests a full channellist if $channelarray is not given.
(use it with care, usually its a looooong list)

@param mixed $channelarray
@param integer $priority message priority, default is SMARTIRC_MEDIUM
@return Net_SmartIRC
@api
gets a list of one ore more channels