ftp_base::SetType()publicWP 1.0

Метод класса: ftp_base{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ftp_base = new ftp_base();
$ftp_base->SetType( $mode );
$mode **
-
По умолчанию: FTP_AUTOASCII

Код ftp_base::SetType() WP 6.5.2

function SetType($mode=FTP_AUTOASCII) {
	if(!in_array($mode, $this->AuthorizedTransferMode)) {
		$this->SendMSG("Wrong type");
		return FALSE;
	}
	$this->_type=$mode;
	$this->SendMSG("Transfer type: ".($this->_type==FTP_BINARY?"binary":($this->_type==FTP_ASCII?"ASCII":"auto ASCII") ) );
	return TRUE;
}