phpBB3


phpBB3\transfer
includes/functions_transfer.php at line 23

Class transfer

transfer

public class transfer

Transfer class, wrapper for ftp/sftp/ssh


Field Summary
mixed

$connection

mixed

$dir_perms

mixed

$file_perms

mixed

$host

mixed

$password

mixed

$port

mixed

$root_path

mixed

$timeout

mixed

$tmp_path

mixed

$username

Method Summary
void

__construct()

Constructor - init some basic values

void

close_session()

Close current session

void

copy_file(mixed from_loc, mixed to_loc)

Copy file from source location to destination location

void

delete_file(mixed file)

Remove file

void

file_exists(mixed directory, mixed filename)

Check if a specified file exist...

void

make_dir(mixed dir)

Create directory structure

void

methods()

Determine methods able to be used

void

open_session()

Open session

void

overwrite_file(mixed source_file, mixed destination_file)

Moving file into location.

void

remove_dir(mixed dir)

Remove directory

void

rename(mixed old_handle, mixed new_handle)

Rename a file or folder

void

write_file(str destination_file, str contents)

Write file to location

Field Detail

includes/functions_transfer.php at line 25

connection

public mixed $connection = false

includes/functions_transfer.php at line 34

dir_perms

public mixed $dir_perms

includes/functions_transfer.php at line 33

file_perms

public mixed $file_perms

includes/functions_transfer.php at line 26

host

public mixed $host

includes/functions_transfer.php at line 29

password

public mixed $password

includes/functions_transfer.php at line 27

port

public mixed $port

includes/functions_transfer.php at line 31

root_path

public mixed $root_path

includes/functions_transfer.php at line 30

timeout

public mixed $timeout

includes/functions_transfer.php at line 32

tmp_path

public mixed $tmp_path

includes/functions_transfer.php at line 28

username

public mixed $username

Method Detail

includes/functions_transfer.php at line 39

__construct

public void __construct()

Constructor - init some basic values


includes/functions_transfer.php at line 230

close_session

public void close_session()

Close current session


includes/functions_transfer.php at line 145

copy_file

public void copy_file(mixed from_loc, mixed to_loc)

Copy file from source location to destination location


includes/functions_transfer.php at line 165

delete_file

public void delete_file(mixed file)

Remove file


includes/functions_transfer.php at line 202

file_exists

public void file_exists(mixed directory, mixed filename)

Check if a specified file exist...


includes/functions_transfer.php at line 105

make_dir

public void make_dir(mixed dir)

Create directory structure


includes/functions_transfer.php at line 238

methods

public void methods()

Determine methods able to be used


includes/functions_transfer.php at line 222

open_session

public void open_session()

Open session


includes/functions_transfer.php at line 89

overwrite_file

public void overwrite_file(mixed source_file, mixed destination_file)

Moving file into location. If the destination file already exists it gets overwritten


includes/functions_transfer.php at line 178

remove_dir

public void remove_dir(mixed dir)

Remove directory

Todo:
remove child directories?

includes/functions_transfer.php at line 190

rename

public void rename(mixed old_handle, mixed new_handle)

Rename a file or folder


includes/functions_transfer.php at line 53

write_file

public void write_file(str destination_file, str contents)

Write file to location


phpBB3