original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Sets a new connection string . If connection is already openned try to close it before .