public function pasv($pasv) {
		$this->connectIfNeeded();
		$this->param = $pasv;

		if (!ftp_pasv($this->handle, $pasv === true)) {
			throw new FtpException(
					Yii::t('gftp', 'Could not {set} passive mode on server "{host}": {message}', [
						'host' => $this->host, 'set' => $pasv ? "set" : "unset"
					])
			);
		}
	}
public function pasv($pasv) {
		$this->connectIfNeeded();
		$this->param = $pasv;

		if (!ftp_pasv($this->handle, $pasv === true)) {
			throw new FtpException(
					Yii::t('gftp', 'Could not {set} passive mode on server "{host}": {message}', [
						'host' => $this->host, 'set' => $pasv ? "set" : "unset"
					])
			);
		}
	}
public function pasv ( $ pasv ) { $ this -> connectIfNeeded ( ) ; $ this -> param = $ pasv ; if ( ! ftp_pasv ( $ this -> handle , $ pasv === true ) ) { throw new FtpException ( Yii :: t ( 'gftp' , 'Could not {set} passive mode on server "{host}": {message}' , [ 'host' => $ this -> host , 'set' => $ pasv ? "set" : "unset" ] ) ) ; } }
Turns on or off passive mode.

@param bool      $pasv          If <strong>TRUE</strong>, the passive mode is turned on, else it's turned off.
Turns on or off passive mode .