PHP Class 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.
Inheritance: extends XPSPL\SIG_Routine
Datei anzeigen Open project: prggmr/xpspl

Protected Properties

Property Type Description
$_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

Public Methods

Method Description
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 )

Protected Methods

Method Description
_init_transfers ( ) : void Processes any files awaiting to upload and attempts to begin the upload transfer.

Method Details

SIG_Complete() public method

Returns the SIG_Complete signal for this upload.
public SIG_Complete ( ) : object
return object

SIG_Failure() public method

Returns the SIG_Failure signal for this upload.
public SIG_Failure ( ) : object
return object

SIG_Finished() public method

Returns the SIG_Finished signal for this upload.
public SIG_Finished ( ) : object
return object

__construct() public method

Construct the routine that must be run.
public __construct ( array $files, array $options = [] ) : void
$files array Files to upload
$options array FTP Connection options.
return void

_init_transfers() protected method

Processes any files awaiting to upload and attempts to begin the upload transfer.
protected _init_transfers ( ) : void
return void

get_uploaded_files() public method

Returns the files that were uploaded.
public get_uploaded_files ( ) : array
return array

routine() public method

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

Property Details

$_files protected_oe property

Files to be uploaded.
protected array $_files
return array

$_options protected_oe property

Connection options
protected array $_options
return array

$_sig_complete protected_oe property

File complete signal.
protected object $_sig_complete
return object

$_sig_failure protected_oe property

File failure signal.
protected object $_sig_failure
return object

$_sig_finished protected_oe property

Upload finished signal.
protected object $_sig_finished
return object

$_uploaded protected_oe property

Files that have uploaded.
protected array $_uploaded
return array

$_uploading protected_oe property

Files that are uploading
protected array $_uploading
return array