original_string: public function connect() {
  		if (isset($this->handle) && $this->handle != null) {
  			$this->close();
  		}
  		
  		$this->parseConnectionString();
  		$this->handle = \Yii::createObject($this->driverOptions);
  		$this->handle->connect();
  		$this->onConnectionOpen(new Event(['sender' => $this]));
  	}
code: public function connect() {
  		if (isset($this->handle) && $this->handle != null) {
  			$this->close();
  		}
  		
  		$this->parseConnectionString();
  		$this->handle = \Yii::createObject($this->driverOptions);
  		$this->handle->connect();
  		$this->onConnectionOpen(new Event(['sender' => $this]));
  	}
code_tokens: public function connect ( ) { if ( isset ( $ this -> handle ) && $ this -> handle != null ) { $ this -> close ( ) ; } $ this -> parseConnectionString ( ) ; $ this -> handle = \ Yii :: createObject ( $ this -> driverOptions ) ; $ this -> handle -> connect ( ) ; $ this -> onConnectionOpen ( new Event ( [ 'sender' => $ this ] ) ) ; }
docstring: Connect to FTP server.
  
  throws FtpException If connection failed.
docstring_tokens: Connect to FTP server .