CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
FTPClient Class Reference

Public Member Functions

 __construct ()
 
 __destruct ()
 
 __call ($method, $arguments)
 
 connect ($host, $ssl=false, $port=21, $timeout=60)
 
 ssl_connect ($host, $port=21, $timeout=60)
 
 write_content ($remoteFilePath, $content)
 

Private Attributes

 $connection
 Connection to server. More...
 

Detailed Description

FSFile class.

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Constructor & Destructor Documentation

FTPClient::__construct ( )

Class constructor.

Returns
void
FTPClient::__destruct ( )

Class destructor.

Returns
void

Member Function Documentation

FTPClient::__call (   $method,
  $arguments 
)

Magic method to catch all FTP commands from PHP.

Parameters
string$method
array$arguments
Returns
mixed
FTPClient::connect (   $host,
  $ssl = false,
  $port = 21,
  $timeout = 60 
)

Explicitly define connect method to get connection object.

Parameters
string$host
boolean$ssl
integer$port
integer$timeout
Returns
boolean success
FTPClient::ssl_connect (   $host,
  $port = 21,
  $timeout = 60 
)

Explicitly define ssl_connect method.

Parameters
string$host
integer$port
integer$timeout
Returns
boolean success
FTPClient::write_content (   $remoteFilePath,
  $content 
)

Write a file to the server directly from given content.

Parameters
string$remoteFilePath
string$content
Returns
boolean success

Member Data Documentation

Resource FTPClient::$connection
private

Connection to server.


The documentation for this class was generated from the following file: