PHP Class FtpSocket, cakephp-ftp

Inheritance: extends CakeSocket
ファイルを表示 Open project: fotografde/cakephp-ftp

Public Properties

Property Type Description
$description string Object description

Protected Properties

Property Type Description
$_baseConfig array Base configuration settings for the socket connection
$_commands array Available FTP Commands
$_responses array Hold last x responseLength responses

Public Methods

Method Description
__call ( string $name, array $args ) : FtpSocket Call raw FTP commands
__get ( string $name ) : mixed Get properties
connect ( string $host = null, integer $port = null ) : FtpSocket Connect
login ( string $username = null, string $password = null ) : FtpSocket Login

Protected Methods

Method Description
_response ( string $data = null ) : boolean Manage responses buffer

Method Details

__call() public method

Call raw FTP commands
public __call ( string $name, array $args ) : FtpSocket
$name string
$args array
return FtpSocket

__get() public method

Get properties
public __get ( string $name ) : mixed
$name string
return mixed

_response() protected method

Manage responses buffer
protected _response ( string $data = null ) : boolean
$data string
return boolean

connect() public method

Connect
public connect ( string $host = null, integer $port = null ) : FtpSocket
$host string
$port integer
return FtpSocket

login() public method

Login
public login ( string $username = null, string $password = null ) : FtpSocket
$username string
$password string
return FtpSocket

Property Details

$_baseConfig protected_oe property

Base configuration settings for the socket connection
protected array $_baseConfig
return array

$_commands protected_oe property

Available FTP Commands
protected array $_commands
return array

$_responses protected_oe property

Hold last x responseLength responses
protected array $_responses
return array

$description public_oe property

Object description
public string $description
return string