PHP Класс ftp\SIG_Upload

Performs an FTP upload of the given file(s) to the given host. Once all files are transfered it will emit a \ftp\SIG_Finished signal.
Наследование: extends XPSPL\SIG_Routine
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_files array Files to be uploaded.
$_options array Connection options
$_sig_complete object File complete signal.
$_sig_failure object File failure signal.
$_sig_finished object Upload finished signal.
$_uploaded array Files that have uploaded.
$_uploading array Files that are uploading

Открытые методы

Метод Описание
SIG_Complete ( ) : object Returns the SIG_Complete signal for this upload.
SIG_Failure ( ) : object Returns the SIG_Failure signal for this upload.
SIG_Finished ( ) : object Returns the SIG_Finished signal for this upload.
__construct ( array $files, array $options = [] ) : void Construct the routine that must be run.
get_uploaded_files ( ) : array Returns the files that were uploaded.
routine ( Routine $routine )

Защищенные методы

Метод Описание
_init_transfers ( ) : void Processes any files awaiting to upload and attempts to begin the upload transfer.

Описание методов

SIG_Complete() публичный Метод

Returns the SIG_Complete signal for this upload.
public SIG_Complete ( ) : object
Результат object

SIG_Failure() публичный Метод

Returns the SIG_Failure signal for this upload.
public SIG_Failure ( ) : object
Результат object

SIG_Finished() публичный Метод

Returns the SIG_Finished signal for this upload.
public SIG_Finished ( ) : object
Результат object

__construct() публичный Метод

Construct the routine that must be run.
public __construct ( array $files, array $options = [] ) : void
$files array Files to upload
$options array FTP Connection options.
Результат void

_init_transfers() защищенный Метод

Processes any files awaiting to upload and attempts to begin the upload transfer.
protected _init_transfers ( ) : void
Результат void

get_uploaded_files() публичный Метод

Returns the files that were uploaded.
public get_uploaded_files ( ) : array
Результат array

routine() публичный Метод

public routine ( Routine $routine )
$routine XPSPL\Routine

Описание свойств

$_files защищенное свойство

Files to be uploaded.
protected array $_files
Результат array

$_options защищенное свойство

Connection options
protected array $_options
Результат array

$_sig_complete защищенное свойство

File complete signal.
protected object $_sig_complete
Результат object

$_sig_failure защищенное свойство

File failure signal.
protected object $_sig_failure
Результат object

$_sig_finished защищенное свойство

Upload finished signal.
protected object $_sig_finished
Результат object

$_uploaded защищенное свойство

Files that have uploaded.
protected array $_uploaded
Результат array

$_uploading защищенное свойство

Files that are uploading
protected array $_uploading
Результат array