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]));
	}
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]));
	}
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 ] ) ) ; }
Connect to FTP server.

throws FtpException If connection failed.
Connect to FTP server .