public function setConnectionString($connectionString) {
		if (!isset($connectionString) || !is_string($connectionString) || trim($connectionString) === "") {
			throw new FtpException(
				Yii::t('gftp', '{connectString} is not a valid connection string', [ 
					'connectString' => $connectionString
				])
			);
		}
		
		$this->close();
		$this->connectionString = $connectionString;
	}
public function setConnectionString($connectionString) {
		if (!isset($connectionString) || !is_string($connectionString) || trim($connectionString) === "") {
			throw new FtpException(
				Yii::t('gftp', '{connectString} is not a valid connection string', [ 
					'connectString' => $connectionString
				])
			);
		}
		
		$this->close();
		$this->connectionString = $connectionString;
	}
public function setConnectionString ( $ connectionString ) { if ( ! isset ( $ connectionString ) || ! is_string ( $ connectionString ) || trim ( $ connectionString ) === "" ) { throw new FtpException ( Yii :: t ( 'gftp' , '{connectString} is not a valid connection string' , [ 'connectString' => $ connectionString ] ) ) ; } $ this -> close ( ) ; $ this -> connectionString = $ connectionString ; }
Sets a new connection string. If connection is already openned, try to close it before.

@param string $connectionString FTP connection string (like ftp://[<user>[:<pass>]@]<host>[:<port>])

@throws FtpException if <i>connectionString</i> is not valid or if could not close an already openned connection.
Sets a new connection string . If connection is already openned try to close it before .