public function setPort($port)
	{
		//Use the provided port or use the default
		$port = (int) $port;

		if ($port <= 0)
		{
			throw new Apache_Solr_InvalidArgumentException('Port is not a valid port number');
		}
		else
		{
			$this->_port = $port;
		}

		if ($this->_urlsInited)
		{
			$this->_initUrls();
		}
	}
public function setPort($port)
	{
		//Use the provided port or use the default
		$port = (int) $port;

		if ($port <= 0)
		{
			throw new Apache_Solr_InvalidArgumentException('Port is not a valid port number');
		}
		else
		{
			$this->_port = $port;
		}

		if ($this->_urlsInited)
		{
			$this->_initUrls();
		}
	}
public function setPort ( $ port ) { //Use the provided port or use the default $ port = ( int ) $ port ; if ( $ port <= 0 ) { throw new Apache_Solr_InvalidArgumentException ( 'Port is not a valid port number' ) ; } else { $ this -> _port = $ port ; } if ( $ this -> _urlsInited ) { $ this -> _initUrls ( ) ; } }
Set the port used. If empty will fallback to constants

@param integer $port

@throws Apache_Solr_InvalidArgumentException If the port parameter is empty
Set the port used . If empty will fallback to constants