RSI helpers  0.1
RSI helpers
Ftp Class Reference

FTP wrapper. More...

Public Member Functions

 __construct ($host, $port=21, $secure=false, $timeout=90)
 
 __destruct ()
 
 close ()
 
 putContents ($remote, $data, $mode=FTP_BINARY)
 
 getContents ($remote, $mode=FTP_BINARY)
 
 mkdir ($path, $mode=0777)
 
 isDir ($path)
 
 find ($path, $filters=null, $recursive=false)
 Find and filter files. More...
 
 dir ($path, $pattern=null, $recursive=false)
 Find files. More...
 
 __call ($func_name, $params)
 

Protected Attributes

 $_connection = null
 

Detailed Description

FTP wrapper.

Definition at line 8 of file Ftp.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $host,
  $port = 21,
  $secure = false,
  $timeout = 90 
)

Definition at line 12 of file Ftp.php.

◆ __destruct()

__destruct ( )

Definition at line 17 of file Ftp.php.

Member Function Documentation

◆ __call()

__call (   $func_name,
  $params 
)

Definition at line 115 of file Ftp.php.

◆ close()

close ( )

Definition at line 21 of file Ftp.php.

◆ dir()

dir (   $path,
  $pattern = null,
  $recursive = false 
)

Find files.

See also
\Rsi\File::dir

Definition at line 109 of file Ftp.php.

◆ find()

find (   $path,
  $filters = null,
  $recursive = false 
)

Find and filter files.

See also
\Rsi\File::find

Definition at line 69 of file Ftp.php.

◆ getContents()

getContents (   $remote,
  $mode = FTP_BINARY 
)

Definition at line 35 of file Ftp.php.

◆ isDir()

isDir (   $path)

Definition at line 56 of file Ftp.php.

◆ mkdir()

mkdir (   $path,
  $mode = 0777 
)

Definition at line 46 of file Ftp.php.

◆ putContents()

putContents (   $remote,
  $data,
  $mode = FTP_BINARY 
)

Definition at line 26 of file Ftp.php.

Field Documentation

◆ $_connection

$_connection = null
protected

Definition at line 10 of file Ftp.php.


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