public function publish($message) {
		if ($this->name === null) {
			throw new InvalidConfigException(get_class($this)." requires a name!");
		}
		$this->_data[] = $message;
		return $this->getConnection()->getClient()->publish($this->name,$message);
	}
public function publish($message) {
		if ($this->name === null) {
			throw new InvalidConfigException(get_class($this)." requires a name!");
		}
		$this->_data[] = $message;
		return $this->getConnection()->getClient()->publish($this->name,$message);
	}
public function publish ( $ message ) { if ( $ this -> name === null ) { throw new InvalidConfigException ( get_class ( $ this ) . " requires a name!" ) ; } $ this -> _data [ ] = $ message ; return $ this -> getConnection ( ) -> getClient ( ) -> publish ( $ this -> name , $ message ) ; }
Publishes a message to the channel
@param string $message The message to publish
@return int	the number of clients that received the message
@throws InvalidConfigException
Publishes a message to the channel