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
파일 보기 프로젝트 열기: prggmr/xpspl

보호된 프로퍼티들

프로퍼티 타입 설명
$_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